Below are the list of Pre-check, Implementation & Back out commands, which will help you to complete the Lun allocation easy and without any effort. Do follow the procedure and feel free to post your comments in case of any queries or suggestions.
Pre-check Commands:
1. Command to check the Mdisk Group Capacity.
svcinfo lsmdiskgrp
2. Command to check number of Vdisk associated per IOGrp.
svcinfo lsiogrp
3. Command to check the IOGrp associated for a host in case, you are assigning a lun to an existing host.
svcinfo lshostiogrp <Host ID/Name>
Note:- Below commands to get the Vdisk information of existing host.
4. Command to check the luns assigned to a host incase of naming convention.
svcinfo lshostvdiskmap <Host ID/Name>
5. Command to check the Vdisk information in detailed, which shows the individual disk IOGrp, MdiskGrp & Other information.
svcinfo lsvdisk <Vdisk name/id>
Implementation Commands:
1. Command to create a Vdisk.
svctask mkvdisk -mdiskgrp <mdisk group Name/ID> -iogrp <IOGrp Name/ID> -size <Vdisk Capacity> -unit <gb/mb/tb> -name <Vdisk Name>
2. Command to map the Vdisk to a Host.
svctask mkvdiskhostmap -host <Host Name/ID> <Vdisk Name/ID>
3. Command to map the same lun to multiple host.
svctask mkvdiskhostmap -force -host <Host Name/ID> <Vdisk Name/ID>
Back out Plan:
1. Command to unmap the same lun to multiple host.
svctask rmvdiskhostmap -host <Host Name/ID> <Vdisk Name/ID>
2. Command to delete the disk.
svctask rmvdisk <Vdisk Name/ID>
Pre-check Commands:
1. Command to check the Mdisk Group Capacity.
svcinfo lsmdiskgrp
2. Command to check number of Vdisk associated per IOGrp.
svcinfo lsiogrp
3. Command to check the IOGrp associated for a host in case, you are assigning a lun to an existing host.
svcinfo lshostiogrp <Host ID/Name>
Note:- Below commands to get the Vdisk information of existing host.
svcinfo lshostvdiskmap <Host ID/Name>
5. Command to check the Vdisk information in detailed, which shows the individual disk IOGrp, MdiskGrp & Other information.
svcinfo lsvdisk <Vdisk name/id>
Implementation Commands:
1. Command to create a Vdisk.
svctask mkvdisk -mdiskgrp <mdisk group Name/ID> -iogrp <IOGrp Name/ID> -size <Vdisk Capacity> -unit <gb/mb/tb> -name <Vdisk Name>
2. Command to map the Vdisk to a Host.
svctask mkvdiskhostmap -host <Host Name/ID> <Vdisk Name/ID>
3. Command to map the same lun to multiple host.
svctask mkvdiskhostmap -force -host <Host Name/ID> <Vdisk Name/ID>
Back out Plan:
1. Command to unmap the same lun to multiple host.
svctask rmvdiskhostmap -host <Host Name/ID> <Vdisk Name/ID>
2. Command to delete the disk.
svctask rmvdisk <Vdisk Name/ID>