Problems getting WWID recognized

Rafael David Tinoco rafaeldtinoco at ubuntu.com
Wed Aug 26 12:53:09 UTC 2020


Are you able to inquiry VPD for the LUNs coming from the open solaris
storage server ?

Try querying the LUNs with:

$ sudo sg_vpd /dev/sda
Supported VPD pages VPD page:
  Supported VPD pages [sv]
  Unit serial number [sn]
  Device identification [di]

$ sudo sg_vpd --page=sn /dev/sda
Unit serial number VPD page:
  Unit serial number: 4C532000040912113260

OR

$ sudo sg_inq -e /dev/sda
VPD INQUIRY, page code=0x00:
   Supported VPD pages:
     0x0 Supported VPD pages
     0x80 Unit serial number
     0x83 Device identification

$ sudo sg_inq -e --page=0x80 /dev/sda
VPD INQUIRY: Unit serial number page
  Unit serial number: 4C532000040912113260

Make sure you're able to see the SCSI VPDs 0x80 and 0x83 for all
online paths (/dev/sd..). Then compare those VPDs with the ID_SERIAL
attribute for the device in question (/dev/sd..):

$ sudo sg_inq -e --page=0x80 /dev/sda
VPD INQUIRY: Unit serial number page
  Unit serial number: 4C532000040912113260

$ udevadm info -q all --path=/sys/block/sda | grep ID_SERIAL
E: ID_SERIAL=4C532000040912113260

---
Then check if ID_SERIAL is the same as the unit serial number set into
udev ID_SERIAL. It seems some paths didn't have the ID_SERIAL
correctly identified by udev (only /dev/sda had, possibly your
internal disk ?).

Aug 24 16:00:01 | sdc: serial =
Aug 24 16:00:01 | sdd: serial =
Aug 24 16:00:01 | sdm: serial =
Aug 24 16:00:01 | sdn: serial =
Aug 24 16:00:01 | sdo: serial =
--

If everything went far, check "multipath -T" for "uid_attribute" and
make sure it is set to ID_SERIAL (the udev parameter containing the
serial number for the disks).




More information about the ubuntu-users mailing list