Obtaining Worldwide Numbers
Use the ldm list-hba -u
command to view a device's WWN and all the paths that reference the device's WWN.
The following example shows information about the physical devices in the primary
domain. The example output shows both the paths that reference the naa.600c0ff0000000000089d513107ecb00
WWN of the physical device.
primary# ldm list-hba -u primary DOMAIN primary naa.600c0ff0000000000089d513107ecb00 /SYS/MB/RISER1/PCIE4/SUNW,qlc@0/fp@0,0/w216000c0ff8089d5,0 /SYS/MB/RISER1/PCIE4/SUNW,qlc@0,1/fp@0,0/w216000c0ff8089d5,0 ...
By including the -l
option, the ldm list-hba -u -l
command shows per-path and per-device metadata that you can use to identify a specific physical device within your system's topology.
primary# ldm list-hba -u -l primary DOMAIN primary naa.600c0ff0000000000089d513107ecb00 /SYS/MB/RISER1/PCIE4/SUNW,qlc@0/fp@0,0/w216000c0ff8089d5,0 [/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w216000c0ff8089d5,0] (c0t600C0FF0000000000089D513107ECB00d0s0) /SYS/MB/RISER1/PCIE4/SUNW,qlc@0,1/fp@0,0/w216000c0ff8089d5,0 [/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0/ssd@w216000c0ff8089d5,0] (c0t600C0FF0000000000089D513107ECB00d0s0) ...
By using the metadata in the previous example output, you can add the device associated with this WWN to the my_vsan
virtual SAN.
In the following example, first create the my_vsan
virtual SAN on the my_domain
domain. Then, add the physical device associated with the naa.600c0ff0000000000089d513107ecb00
WWN to the my_vsan
virtual SAN:
primary# ldm add-vsan mask=on $iport_path my_vsan my_domain primary# ldm add-vsan-dev my_vsan naa.600c0ff0000000000089d513107ecb00