Problems getting WWID recognized

Albert Chin ubuntu-users at mlists.thewrittenword.com
Wed Aug 26 14:23:21 UTC 2020


On Wed, Aug 26, 2020 at 09:53:09AM -0300, Rafael David Tinoco wrote:
> Are you able to inquiry VPD for the LUNs coming from the open solaris
> storage server ?

Nope. Info below. So what happens if "udevadm info -q all
--path=/sys/block/sdc" shows ID_SERIAL but "sg_vpd --page=sn
/dev/sdc" does not?

> 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

# sg_vpd /dev/sdc
Supported VPD pages VPD page:
  Supported VPD pages [sv]
  Unit serial number [sn]
  Device identification [di]
  Extended inquiry data [ei]
  Block limits (SBC) [bl]
  Logical block provisioning (SBC) [lbpv]

# sg_vpd --page=sn /dev/sdc
Unit serial number VPD page:
  Unit serial number:

> 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

# sg_inq -e /dev/sdc
VPD INQUIRY, page code=0x00:
   Supported VPD pages:
     0x0        Supported VPD pages
     0x80       Unit serial number
     0x83       Device identification
     0x86       Extended INQUIRY data
     0xb0       Block limits (sbc2)
     0xb2       Logical block provisioning (sbc3)

# sg_inq -e --page=0x80 /dev/sdc
VPD INQUIRY: Unit serial number page
  Unit serial number:     

> 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

# udevadm info -q all --path=/sys/block/sdc | grep ID_SERIAL
E: ID_SERIAL=3600144f0f4e106e711ff54b6b7820049
E: ID_SERIAL_SHORT=600144f0f4e106e711ff54b6b7820049

> ---
> 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).

Maybe "sg_vpd --page=sn /dev/sdc" not retrieving the serial number is
leading to the empty serial entries above.

-- 
albert chin (china at thewrittenword.com)




More information about the ubuntu-users mailing list