04-16-2012 10:44 AM
Hi,
This question is for SF on Solaris, I'd like to know how to map the drive name as given by vxdisk list to the actual drive in cxtxdx format?
For instance, my output of vxdisk list is:
bash-3.2# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 auto:ZFS - - ZFS
disk_14 auto:cdsdisk - - online
disk_15 auto:cdsdisk - - online
disk_16 auto:cdsdisk - - online
disk_17 auto:cdsdisk - - online
disk_18 auto:cdsdisk - - online
And my output of format is:
bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 19146 alt 2 hd 16 sec 255>
/pci@1e,600000/ide@d/dad@0,0
1. c1t52d0 <SEAGATE-ST336605FSUN36G-0638 cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,700000/SUNW,qlc@3/fp@0,0/ssd@w21000004cf99e36a,0
2. c1t53d0 <SEAGATE-ST39102FCSUN9.0G-0D29 cyl 4924 alt 2 hd 27 sec 133>
/pci@1f,700000/SUNW,qlc@3/fp@0,0/ssd@w2100002037224d78,0
3. c1t54d0 <SEAGATE-ST39102FCSUN9.0G-1129 cyl 4924 alt 2 hd 27 sec 133>
/pci@1f,700000/SUNW,qlc@3/fp@0,0/ssd@w21000020371b9af1,0
4. c1t55d0 <SEAGATE-ST39102FCSUN9.0G-0D29 cyl 4924 alt 2 hd 27 sec 133>
/pci@1f,700000/SUNW,qlc@3/fp@0,0/ssd@w21000020372251db,0
5. c1t57d0 <SEAGATE-ST336605FSUN36G-0538 cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,700000/SUNW,qlc@3/fp@0,0/ssd@w21000004cf62cb72,0
How do I establish a mapping between drive names?
Also, what exactly does the command "vxdctl enable" do?
Thanks in advance.
Solved! Go to Solution.
04-16-2012 01:45 PM
vxdisk -e list
About "vxdctl enable" - do you feel that the description in man pages is not descriptive enough?
from man pages (my bold):
Requests that vxconfigd enter enabled mode, import all disk groups, and rebuild the volume device node directories. This operation can be used even if vxconfigd is already in enabled mode. The primary purpose for using this operation when in enabled mode is to rebuild the volume device nodes. This operation causes vxconfigd to scan for any disks that were newly added since vxconfigd was last started. In this manner, disks can be dynamically configured to the system and then recognized by VxVM. If the multipathing support is available, this option also causes vxconfigd to rebuild the DMP internal database to reflect the new state of the system after addition of the disk devices. The new disk devices detected by vxconfigd are added in the DMP database with their associated subpaths and parent DMP device.
By default, VxVM performs a full scan of the device tree when performing device discovery. To discover only newly added disks that are not already known to VxVM, specify the -f option.
04-16-2012 01:45 PM
vxdisk -e list
About "vxdctl enable" - do you feel that the description in man pages is not descriptive enough?
from man pages (my bold):
Requests that vxconfigd enter enabled mode, import all disk groups, and rebuild the volume device node directories. This operation can be used even if vxconfigd is already in enabled mode. The primary purpose for using this operation when in enabled mode is to rebuild the volume device nodes. This operation causes vxconfigd to scan for any disks that were newly added since vxconfigd was last started. In this manner, disks can be dynamically configured to the system and then recognized by VxVM. If the multipathing support is available, this option also causes vxconfigd to rebuild the DMP internal database to reflect the new state of the system after addition of the disk devices. The new disk devices detected by vxconfigd are added in the DMP database with their associated subpaths and parent DMP device.
By default, VxVM performs a full scan of the device tree when performing device discovery. To discover only newly added disks that are not already known to VxVM, specify the -f option.
04-17-2012 12:15 AM
Good morning,
Maybe you need is to change the naming scheme.
Surely you have Enclosure Based scheme and need the OS Native scheme.
Here I leave you the way to change the schema:
# vxddladm set namingscheme=ebn
# vxddladm get namingscheme
NAMING_SCHEME PERSISTENCE LOWERCASE USE_AVID
============================================================
Enclosure Based Yes Yes Yes
#
#
# vxddladm set namingscheme=osn
# vxddladm get namingscheme
NAMING_SCHEME PERSISTENCE LOWERCASE USE_AVID
============================================================
OS Native No Yes Yes
itacatest@root:/#
04-17-2012 09:48 PM
"vxdisk -e list" is the perfect command to map OS drives with veritas DA names.
First coulmn of output will result in veritas DA names while last coulmn of output will indicate corresponding OS names ..
Gaurav
05-11-2012 01:15 PM
Also, if you have multiple paths to one LUN, you can specify the name with vxdisk list. You can also script (below) to get the 2 lines of output from format. I would suggest putting all format output into a file and using the awk statement on the file instead, if you have a lot of LUNs and every format call takes a long time.