Scripted LPAR building

Scripted LPAR building

The following commands sequence creates the needed objects to start the lpar installation process.

On the NIM Server, let’s add the correct entries in /etc/hosts:

hostent -a 192.168.45.49 -h lparu01vir-int
hostent -a 192.168.45.50 -h lparu02vir-int
hostent -a 192.168.45.51 -h lparu03vir-int
hostent -a 192.168.45.52 -h lparu04vir-int
hostent -a 192.168.45.53 -h lparu05vir-int
hostent -a 192.168.45.54 -h lparu06vir-int
hostent -a 192.168.45.55 -h lparu07vir-int
hostent -a 192.168.45.56 -h lparu08vir-int

and let’s define the nim objects, the type is standalone:

nim -o define -t standalone -a platform=”chrp” -a netboot_kernel=”up” -a if1=”find_net lparu01vir-int 0″ -a cable_type1=”bnc” -a net_definition=”ent 255.255.255.0 gw1 gw_master” lparu01vir-int
nim -o define -t standalone -a platform=”chrp” -a netboot_kernel=”up” -a if1=”find_net lparu02vir-int 0″ -a cable_type1=”bnc” -a net_definition=”ent 255.255.255.0 gw1 gw_master” lparu02vir-int
nim -o define -t standalone -a platform=”chrp” -a netboot_kernel=”up” -a if1=”find_net lparu03vir-int 0″ -a cable_type1=”bnc” -a net_definition=”ent 255.255.255.0 gw1 gw_master” lparu03vir-int
nim -o define -t standalone -a platform=”chrp” -a netboot_kernel=”up” -a if1=”find_net lparu04vir-int 0″ -a cable_type1=”bnc” -a net_definition=”ent 255.255.255.0 gw1 gw_master” lparu04vir-int
nim -o define -t standalone -a platform=”chrp” -a netboot_kernel=”up” -a if1=”find_net lparu05vir-int 0″ -a cable_type1=”bnc” -a net_definition=”ent 255.255.255.0 gw1 gw_master” lparu05vir-int
nim -o define -t standalone -a platform=”chrp” -a netboot_kernel=”up” -a if1=”find_net lparu06vir-int 0″ -a cable_type1=”bnc” -a net_definition=”ent 255.255.255.0 gw1 gw_master” lparu06vir-int
nim -o define -t standalone -a platform=”chrp” -a netboot_kernel=”up” -a if1=”find_net lparu07vir-int 0″ -a cable_type1=”bnc” -a net_definition=”ent 255.255.255.0 gw1 gw_master” lparu07vir-int
nim -o define -t standalone -a platform=”chrp” -a netboot_kernel=”up” -a if1=”find_net lparu08vir-int 0″ -a cable_type1=”bnc” -a net_definition=”ent 255.255.255.0 gw1 gw_master” lparu08vir-int

In the hmc command line, we should define lpars’ profiles.

mksyscfg -r lpar -m “p8-850-one” -i “profile_name=lparu01vir,name=lparu01vir,lpar_id=10,lpar_env=aixlinux,all_resources=0,min_mem=8192,desired_mem=40960,max_mem=81920,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,mem_mode=ded,mem_expansion=0.0,hpt_ratio=1:64,proc_mode=shared,min_proc_units=0.2,desired_proc_units=1.6,max_proc_units=4.0,min_procs=2,desired_procs=8,max_procs=12,sharing_mode=cap,uncap_weight=0,shared_proc_pool_name=DefaultPool,affinity_group_id=none,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=200,\”virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1\”,\”virtual_scsi_adapters=6/client/1/vios71/30/1,7/client/2/vios72/30/0,8/client/1/vios71/31/0,9/client/2/vios72/31/0\”,\”virtual_eth_adapters=2/0/606//0/0/ETHERNET0//all/none,3/0/2//0/0/ETHERNET0//all/none,4/0/634//0/0/ETHERNET0//all/none\”,virtual_eth_vsi_profiles=none,virtual_fc_adapters=none,vnic_adapters=none,vtpm_adapters=none,boot_mode=norm,conn_monitoring=1,auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0,lpar_proc_compat_mode=default,sriov_eth_logical_ports=none,sriov_roce_logical_ports=none”
mksyscfg -r lpar -m “p8-850-one” -i “profile_name=lparu03vir,name=lparu03vir,lpar_id=11,lpar_env=aixlinux,all_resources=0,min_mem=8192,desired_mem=40960,max_mem=81920,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,mem_mode=ded,mem_expansion=0.0,hpt_ratio=1:64,proc_mode=shared,min_proc_units=0.2,desired_proc_units=1.6,max_proc_units=4.0,min_procs=2,desired_procs=8,max_procs=12,sharing_mode=cap,uncap_weight=0,shared_proc_pool_name=DefaultPool,affinity_group_id=none,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=200,\”virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1\”,\”virtual_scsi_adapters=6/client/1/vios71/32/1,7/client/2/vios72/32/0,8/client/1/vios71/33/0,9/client/2/vios72/33/0\”,\”virtual_eth_adapters=2/0/606//0/0/ETHERNET0//all/none,3/0/2//0/0/ETHERNET0//all/none,4/0/634//0/0/ETHERNET0//all/none\”,virtual_eth_vsi_profiles=none,virtual_fc_adapters=none,vnic_adapters=none,vtpm_adapters=none,boot_mode=norm,conn_monitoring=1,auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0,lpar_proc_compat_mode=default,sriov_eth_logical_ports=none,sriov_roce_logical_ports=none”
mksyscfg -r lpar -m “p8-850-one” -i “profile_name=lparu05vir,name=lparu05vir,lpar_id=12,lpar_env=aixlinux,all_resources=0,min_mem=8192,desired_mem=40960,max_mem=81920,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,mem_mode=ded,mem_expansion=0.0,hpt_ratio=1:64,proc_mode=shared,min_proc_units=0.2,desired_proc_units=1.6,max_proc_units=4.0,min_procs=2,desired_procs=8,max_procs=12,sharing_mode=cap,uncap_weight=0,shared_proc_pool_name=DefaultPool,affinity_group_id=none,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=200,\”virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1\”,\”virtual_scsi_adapters=6/client/1/vios71/34/1,7/client/2/vios72/34/0,8/client/1/vios71/35/0,9/client/2/vios72/35/0\”,\”virtual_eth_adapters=2/0/606//0/0/ETHERNET0//all/none,3/0/2//0/0/ETHERNET0//all/none,4/0/634//0/0/ETHERNET0//all/none\”,virtual_eth_vsi_profiles=none,virtual_fc_adapters=none,vnic_adapters=none,vtpm_adapters=none,boot_mode=norm,conn_monitoring=1,auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0,lpar_proc_compat_mode=default,sriov_eth_logical_ports=none,sriov_roce_logical_ports=none”
mksyscfg -r lpar -m “p8-850-one” -i “profile_name=lparu07vir,name=lparu07vir,lpar_id=13,lpar_env=aixlinux,all_resources=0,min_mem=8192,desired_mem=40960,max_mem=81920,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,mem_mode=ded,mem_expansion=0.0,hpt_ratio=1:64,proc_mode=shared,min_proc_units=0.2,desired_proc_units=1.6,max_proc_units=4.0,min_procs=2,desired_procs=8,max_procs=12,sharing_mode=cap,uncap_weight=0,shared_proc_pool_name=DefaultPool,affinity_group_id=none,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=200,\”virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1\”,\”virtual_scsi_adapters=6/client/1/vios71/36/1,7/client/2/vios72/36/0,8/client/1/vios71/37/0,9/client/2/vios72/37/0\”,\”virtual_eth_adapters=2/0/606//0/0/ETHERNET0//all/none,3/0/2//0/0/ETHERNET0//all/none,4/0/634//0/0/ETHERNET0//all/none\”,virtual_eth_vsi_profiles=none,virtual_fc_adapters=none,vnic_adapters=none,vtpm_adapters=none,boot_mode=norm,conn_monitoring=1,auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0,lpar_proc_compat_mode=default,sriov_eth_logical_ports=none,sriov_roce_logical_ports=none”

mksyscfg -r lpar -m “p8-850-two” -i “profile_name=lparu02vir,name=lparu02vir,lpar_id=10,lpar_env=aixlinux,all_resources=0,min_mem=8192,desired_mem=40960,max_mem=81920,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,mem_mode=ded,mem_expansion=0.0,hpt_ratio=1:64,proc_mode=shared,min_proc_units=0.2,desired_proc_units=1.6,max_proc_units=4.0,min_procs=2,desired_procs=8,max_procs=12,sharing_mode=cap,uncap_weight=0,shared_proc_pool_name=DefaultPool,affinity_group_id=none,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=200,\”virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1\”,\”virtual_scsi_adapters=6/client/1/vios81/30/1,7/client/2/vios82/30/0,8/client/1/vios81/31/0,9/client/2/vios82/31/0\”,\”virtual_eth_adapters=2/0/606//0/0/ETHERNET0//all/none,3/0/2//0/0/ETHERNET0//all/none,4/0/634//0/0/ETHERNET0//all/none\”,virtual_eth_vsi_profiles=none,virtual_fc_adapters=none,vnic_adapters=none,vtpm_adapters=none,boot_mode=norm,conn_monitoring=1,auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0,lpar_proc_compat_mode=default,sriov_eth_logical_ports=none,sriov_roce_logical_ports=none”
mksyscfg -r lpar -m “p8-850-two” -i “profile_name=lparu04vir,name=lparu04vir,lpar_id=11,lpar_env=aixlinux,all_resources=0,min_mem=8192,desired_mem=40960,max_mem=81920,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,mem_mode=ded,mem_expansion=0.0,hpt_ratio=1:64,proc_mode=shared,min_proc_units=0.2,desired_proc_units=1.6,max_proc_units=4.0,min_procs=2,desired_procs=8,max_procs=12,sharing_mode=cap,uncap_weight=0,shared_proc_pool_name=DefaultPool,affinity_group_id=none,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=200,\”virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1\”,\”virtual_scsi_adapters=6/client/1/vios81/32/1,7/client/2/vios82/32/0,8/client/1/vios81/33/0,9/client/2/vios82/33/0\”,\”virtual_eth_adapters=2/0/606//0/0/ETHERNET0//all/none,3/0/2//0/0/ETHERNET0//all/none,4/0/634//0/0/ETHERNET0//all/none\”,virtual_eth_vsi_profiles=none,virtual_fc_adapters=none,vnic_adapters=none,vtpm_adapters=none,boot_mode=norm,conn_monitoring=1,auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0,lpar_proc_compat_mode=default,sriov_eth_logical_ports=none,sriov_roce_logical_ports=none”
mksyscfg -r lpar -m “p8-850-two” -i “profile_name=lparu06vir,name=lparu06vir,lpar_id=12,lpar_env=aixlinux,all_resources=0,min_mem=8192,desired_mem=40960,max_mem=81920,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,mem_mode=ded,mem_expansion=0.0,hpt_ratio=1:64,proc_mode=shared,min_proc_units=0.2,desired_proc_units=1.6,max_proc_units=4.0,min_procs=2,desired_procs=8,max_procs=12,sharing_mode=cap,uncap_weight=0,shared_proc_pool_name=DefaultPool,affinity_group_id=none,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=200,\”virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1\”,\”virtual_scsi_adapters=6/client/1/vios81/34/1,7/client/2/vios82/34/0,8/client/1/vios81/35/0,9/client/2/vios82/35/0\”,\”virtual_eth_adapters=2/0/606//0/0/ETHERNET0//all/none,3/0/2//0/0/ETHERNET0//all/none,4/0/634//0/0/ETHERNET0//all/none\”,virtual_eth_vsi_profiles=none,virtual_fc_adapters=none,vnic_adapters=none,vtpm_adapters=none,boot_mode=norm,conn_monitoring=1,auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0,lpar_proc_compat_mode=default,sriov_eth_logical_ports=none,sriov_roce_logical_ports=none”
mksyscfg -r lpar -m “p8-850-two” -i “profile_name=lparu08vir,name=lparu08vir,lpar_id=13,lpar_env=aixlinux,all_resources=0,min_mem=8192,desired_mem=40960,max_mem=81920,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,mem_mode=ded,mem_expansion=0.0,hpt_ratio=1:64,proc_mode=shared,min_proc_units=0.2,desired_proc_units=1.6,max_proc_units=4.0,min_procs=2,desired_procs=8,max_procs=12,sharing_mode=cap,uncap_weight=0,shared_proc_pool_name=DefaultPool,affinity_group_id=none,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=200,\”virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1\”,\”virtual_scsi_adapters=6/client/1/vios81/36/1,7/client/2/vios82/36/0,8/client/1/vios81/37/0,9/client/2/vios82/37/0\”,\”virtual_eth_adapters=2/0/606//0/0/ETHERNET0//all/none,3/0/2//0/0/ETHERNET0//all/none,4/0/634//0/0/ETHERNET0//all/none\”,virtual_eth_vsi_profiles=none,virtual_fc_adapters=none,vnic_adapters=none,vtpm_adapters=none,boot_mode=norm,conn_monitoring=1,auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0,lpar_proc_compat_mode=default,sriov_eth_logical_ports=none,sriov_roce_logical_ports=none”

and dynamically assign the new server adapters that will match with lpars’ client adapters.

This is a DLPAR operation so make sure if the profile synchronization is enabled (Save configuration changes to profile:), otherwise you must manually save the current config to profile, in order not to lose the dynamically added resources in case of poweroff/poweron.

chhwres -m “p8-850-one” -o a –id 1 -r virtualio –rsubtype scsi -s 30 -a “adapter_type=server,remote_lpar_id=10,remote_slot_num=6”
chhwres -m “p8-850-one” -o a –id 2 -r virtualio –rsubtype scsi -s 30 -a “adapter_type=server,remote_lpar_id=10,remote_slot_num=7”
chhwres -m “p8-850-one” -o a –id 1 -r virtualio –rsubtype scsi -s 31 -a “adapter_type=server,remote_lpar_id=10,remote_slot_num=8”
chhwres -m “p8-850-one” -o a –id 2 -r virtualio –rsubtype scsi -s 31 -a “adapter_type=server,remote_lpar_id=10,remote_slot_num=9”

chhwres -m “p8-850-one” -o a –id 1 -r virtualio –rsubtype scsi -s 32 -a “adapter_type=server,remote_lpar_id=11,remote_slot_num=6”
chhwres -m “p8-850-one” -o a –id 2 -r virtualio –rsubtype scsi -s 32 -a “adapter_type=server,remote_lpar_id=11,remote_slot_num=7”
chhwres -m “p8-850-one” -o a –id 1 -r virtualio –rsubtype scsi -s 33 -a “adapter_type=server,remote_lpar_id=11,remote_slot_num=8”
chhwres -m “p8-850-one” -o a –id 2 -r virtualio –rsubtype scsi -s 33 -a “adapter_type=server,remote_lpar_id=11,remote_slot_num=9”

chhwres -m “p8-850-one” -o a –id 1 -r virtualio –rsubtype scsi -s 34 -a “adapter_type=server,remote_lpar_id=12,remote_slot_num=6”
chhwres -m “p8-850-one” -o a –id 2 -r virtualio –rsubtype scsi -s 34 -a “adapter_type=server,remote_lpar_id=12,remote_slot_num=7”
chhwres -m “p8-850-one” -o a –id 1 -r virtualio –rsubtype scsi -s 35 -a “adapter_type=server,remote_lpar_id=12,remote_slot_num=8”
chhwres -m “p8-850-one” -o a –id 2 -r virtualio –rsubtype scsi -s 35 -a “adapter_type=server,remote_lpar_id=12,remote_slot_num=9”

chhwres -m “p8-850-one” -o a –id 1 -r virtualio –rsubtype scsi -s 36 -a “adapter_type=server,remote_lpar_id=13,remote_slot_num=6”
chhwres -m “p8-850-one” -o a –id 2 -r virtualio –rsubtype scsi -s 36 -a “adapter_type=server,remote_lpar_id=13,remote_slot_num=7”
chhwres -m “p8-850-one” -o a –id 1 -r virtualio –rsubtype scsi -s 37 -a “adapter_type=server,remote_lpar_id=13,remote_slot_num=8”
chhwres -m “p8-850-one” -o a –id 2 -r virtualio –rsubtype scsi -s 37 -a “adapter_type=server,remote_lpar_id=13,remote_slot_num=9”

chhwres -m “p8-850-one” -o a –id 1 -r virtualio –rsubtype scsi -s 38 -a “adapter_type=server,remote_lpar_id=14,remote_slot_num=6”
chhwres -m “p8-850-one” -o a –id 2 -r virtualio –rsubtype scsi -s 38 -a “adapter_type=server,remote_lpar_id=14,remote_slot_num=7”
chhwres -m “p8-850-one” -o a –id 1 -r virtualio –rsubtype scsi -s 39 -a “adapter_type=server,remote_lpar_id=14,remote_slot_num=8”
chhwres -m “p8-850-one” -o a –id 2 -r virtualio –rsubtype scsi -s 39 -a “adapter_type=server,remote_lpar_id=14,remote_slot_num=9”

chhwres -m “p8-850-two” -o a –id 1 -r virtualio –rsubtype scsi -s 30 -a “adapter_type=server,remote_lpar_id=10,remote_slot_num=6”
chhwres -m “p8-850-two” -o a –id 2 -r virtualio –rsubtype scsi -s 30 -a “adapter_type=server,remote_lpar_id=10,remote_slot_num=7”
chhwres -m “p8-850-two” -o a –id 1 -r virtualio –rsubtype scsi -s 31 -a “adapter_type=server,remote_lpar_id=10,remote_slot_num=8”
chhwres -m “p8-850-two” -o a –id 2 -r virtualio –rsubtype scsi -s 31 -a “adapter_type=server,remote_lpar_id=10,remote_slot_num=9”

chhwres -m “p8-850-two” -o a –id 1 -r virtualio –rsubtype scsi -s 32 -a “adapter_type=server,remote_lpar_id=11,remote_slot_num=6”
chhwres -m “p8-850-two” -o a –id 2 -r virtualio –rsubtype scsi -s 32 -a “adapter_type=server,remote_lpar_id=11,remote_slot_num=7”
chhwres -m “p8-850-two” -o a –id 1 -r virtualio –rsubtype scsi -s 33 -a “adapter_type=server,remote_lpar_id=11,remote_slot_num=8”
chhwres -m “p8-850-two” -o a –id 2 -r virtualio –rsubtype scsi -s 33 -a “adapter_type=server,remote_lpar_id=11,remote_slot_num=9”

chhwres -m “p8-850-two” -o a –id 1 -r virtualio –rsubtype scsi -s 34 -a “adapter_type=server,remote_lpar_id=12,remote_slot_num=6”
chhwres -m “p8-850-two” -o a –id 2 -r virtualio –rsubtype scsi -s 34 -a “adapter_type=server,remote_lpar_id=12,remote_slot_num=7”
chhwres -m “p8-850-two” -o a –id 1 -r virtualio –rsubtype scsi -s 35 -a “adapter_type=server,remote_lpar_id=12,remote_slot_num=8”
chhwres -m “p8-850-two” -o a –id 2 -r virtualio –rsubtype scsi -s 35 -a “adapter_type=server,remote_lpar_id=12,remote_slot_num=9”

chhwres -m “p8-850-two” -o a –id 1 -r virtualio –rsubtype scsi -s 36 -a “adapter_type=server,remote_lpar_id=13,remote_slot_num=6”
chhwres -m “p8-850-two” -o a –id 2 -r virtualio –rsubtype scsi -s 36 -a “adapter_type=server,remote_lpar_id=13,remote_slot_num=7”
chhwres -m “p8-850-two” -o a –id 1 -r virtualio –rsubtype scsi -s 37 -a “adapter_type=server,remote_lpar_id=13,remote_slot_num=8”
chhwres -m “p8-850-two” -o a –id 2 -r virtualio –rsubtype scsi -s 37 -a “adapter_type=server,remote_lpar_id=13,remote_slot_num=9”

chhwres -m “p8-850-two” -o a –id 1 -r virtualio –rsubtype scsi -s 38 -a “adapter_type=server,remote_lpar_id=14,remote_slot_num=6”
chhwres -m “p8-850-two” -o a –id 2 -r virtualio –rsubtype scsi -s 38 -a “adapter_type=server,remote_lpar_id=14,remote_slot_num=7”
chhwres -m “p8-850-two” -o a –id 1 -r virtualio –rsubtype scsi -s 39 -a “adapter_type=server,remote_lpar_id=14,remote_slot_num=8”
chhwres -m “p8-850-two” -o a –id 2 -r virtualio –rsubtype scsi -s 39 -a “adapter_type=server,remote_lpar_id=14,remote_slot_num=9”

Now, we must verify that the vios servers are able to see and manage the disks; let’s create the vdevs to allow the disk mapping.

on p8-850-one VIOs
mkvdev -vdev hdisk6 -vadapter vhost12 -dev EMC_lparu01_r0
mkvdev -vdev hdisk7 -vadapter vhost13 -dev EMC_lparu01_d0
mkvdev -vdev hdisk8 -vadapter vhost14 -dev EMC_lparu03_r0
mkvdev -vdev hdisk9 -vadapter vhost15 -dev EMC_lparu03_d0
mkvdev -vdev hdisk10 -vadapter vhost16 -dev EMC_lparu05_r0
mkvdev -vdev hdisk11 -vadapter vhost17 -dev EMC_lparu05_d0
mkvdev -vdev hdisk12 -vadapter vhost18 -dev EMC_lparu07_r0
mkvdev -vdev hdisk13 -vadapter vhost19 -dev EMC_lparu07_d0
mkvdev -vdev hdisk14 -vadapter vhost20 -dev EMC_wnd8u01_r0
mkvdev -vdev hdisk15 -vadapter vhost21 -dev EMC_wnd8u01_d0

on p8-850-two VIOs
mkvdev -vdev hdisk6 -vadapter vhost12 -dev EMC_lparu02_r0
mkvdev -vdev hdisk7 -vadapter vhost13 -dev EMC_lparu02_d0
mkvdev -vdev hdisk8 -vadapter vhost14 -dev EMC_lparu04_r0
mkvdev -vdev hdisk9 -vadapter vhost15 -dev EMC_lparu04_d0
mkvdev -vdev hdisk10 -vadapter vhost16 -dev EMC_lparu06_r0
mkvdev -vdev hdisk11 -vadapter vhost17 -dev EMC_lparu06_d0
mkvdev -vdev hdisk12 -vadapter vhost18 -dev EMC_lparu08_r0
mkvdev -vdev hdisk13 -vadapter vhost19 -dev EMC_lparu08_d0
mkvdev -vdev hdisk14 -vadapter vhost20 -dev EMC_wnd8u02_r0
mkvdev -vdev hdisk15 -vadapter vhost21 -dev EMC_wnd8u02_d0

Again, on the NIM server to execute the bos_inst operation and allocate all the needed resources :
nim -o bos_inst -a source=mksysb -a spot=spot-aix720303 -a mksysb=mksysb-lparv01vir-int -a accept_licenses=yes -a installp_flags=-acNgXY -a no_client_boot=yes -a preserve_res=yes lparu01vir-int
nim -o bos_inst -a source=mksysb -a spot=spot-aix720303 -a mksysb=mksysb-lparv02vir-int -a accept_licenses=yes -a installp_flags=-acNgXY -a no_client_boot=yes -a preserve_res=yes lparu02vir-int
nim -o bos_inst -a source=mksysb -a spot=spot-aix720303 -a mksysb=mksysb-lparv03vir-int -a accept_licenses=yes -a installp_flags=-acNgXY -a no_client_boot=yes -a preserve_res=yes lparu03vir-int
nim -o bos_inst -a source=mksysb -a spot=spot-aix720303 -a mksysb=mksysb-lparv04vir-int -a accept_licenses=yes -a installp_flags=-acNgXY -a no_client_boot=yes -a preserve_res=yes lparu04vir-int
nim -o bos_inst -a source=mksysb -a spot=spot-aix720303 -a mksysb=mksysb-lparv05vir-int -a accept_licenses=yes -a installp_flags=-acNgXY -a no_client_boot=yes -a preserve_res=yes lparu05vir-int
nim -o bos_inst -a source=mksysb -a spot=spot-aix720303 -a mksysb=mksysb-lparv06vir-int -a accept_licenses=yes -a installp_flags=-acNgXY -a no_client_boot=yes -a preserve_res=yes lparu06vir-int
nim -o bos_inst -a source=mksysb -a spot=spot-aix720303 -a mksysb=mksysb-lparv07vir-int -a accept_licenses=yes -a installp_flags=-acNgXY -a no_client_boot=yes -a preserve_res=yes lparu07vir-int
nim -o bos_inst -a source=mksysb -a spot=spot-aix720303 -a mksysb=mksysb-lparv08vir-int -a accept_licenses=yes -a installp_flags=-acNgXY -a no_client_boot=yes -a preserve_res=yes lparu08vir-int
nim -o bos_inst -a source=mksysb -a spot=spot-aix720303 -a mksysb=mksysb-wnd8v01vir-int -a accept_licenses=yes -a installp_flags=-acNgXY -a no_client_boot=yes -a preserve_res=yes wnd8u01vir-int
nim -o bos_inst -a source=mksysb -a spot=spot-aix720303 -a mksysb=mksysb-wnd8v02vir-int -a accept_licenses=yes -a installp_flags=-acNgXY -a no_client_boot=yes -a preserve_res=yes wnd8u02vir-int

Power on the lpars via the HMC command line interface:

chsysstate -r lpar -o on -b sms -f “lparu01vir” -m “p8-850-one” -n “lparu01vir”

chsysstate -r lpar -o on -b sms -f “lparu02vir” -m “p8-850-two” -n “lparu02vir”

chsysstate -r lpar -o on -b sms -f “lparu03vir” -m “p8-850-one” -n “lparu03vir”

chsysstate -r lpar -o on -b sms -f “lparu04vir” -m “p8-850-two” -n “lparu04vir”

chsysstate -r lpar -o on -b sms -f “lparu05vir” -m “p8-850-one” -n “lparu05vir”

chsysstate -r lpar -o on -b sms -f “lparu06vir” -m “p8-850-two” -n “lparu06vir”

chsysstate -r lpar -o on -b sms -f “lparu07vir” -m “p8-850-one” -n “lparu07vir”

chsysstate -r lpar -o on -b sms -f “lparu08vir” -m “p8-850-two” -n “lparu08vir”

chsysstate -r lpar -o on -b sms -f “wnd8u01vir” -m “p8-850-one” -n “wnd8u01vir”

chsysstate -r lpar -o on -b sms -f “wnd8u02vir” -m “p8-850-two” -n “wnd8u02vir”

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.

%d blogger hanno fatto clic su Mi Piace per questo: