• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Why Does a Lun World Wide ID Starts with the Number 3 in Linux dm-multipath

By admin

Question: Why Does a Lun World Wide ID Starts with the Number 3?

When mapping a lun to the server with wwid -> 640xxxxxxxxxxxxxxxxxxxxxx, but from the `multipath -ll`, all wwid begin with 3 like 3640xxxxxxxxxxxxxxxxxxxxxx.

# multipath -ll

3640xxxxxxxxxxxxxxxxxxxxxx dm-27 HUAWEI,XSG1
size=400G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 14:0:0:28 sdbg 67:160 active ready running
|- 16:0:0:28 sdge 131:160 active ready running
|- 14:0:1:28 sdds 71:160 active ready running
`- 16:0:1:28 sdiq 135:160 active ready running

3640xxxxxxxxxxxxxxxxxxxxxx dm-95
size=88G features='1 queue_if_no_path' hwhandler='0' wp=rw
3640xxxxxxxxxxxxxxxxxxxxxx dm-74 HUAWEI,XSG1
size=200G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 14:0:0:75 sdkl 66:400 active ready running
|- 16:0:0:75 sdlj 68:272 active ready running
|- 14:0:1:75 sdkx 67:336 active ready running
`- 16:0:1:75 sdlv 68:464 active ready running

This issue has been explained in the man page of scsi_id:

– scsi_id queries a SCSI device via the SCSI INQUIRY vital product data (VPD) page 0x80 or 0x83 and uses the resulting data to generate a value that is unique across all SCSI devices that properly support page 0x80 or page 0x83.
– If a result is generated it is sent to standard output, and the program exits with a zero value. If no identifier is output, the program exits with a non-zero value.
– scsi_id is primarily for use by other utilities such as udev that require a unique SCSI identifier.
– By default all devices are assumed blacklisted, the –whitelisted option must be specified on the command line or in the config file for any useful behavior.
– SCSI commands are sent directly to the device via the SG_IO ioctl interface.
– In order to generate unique values for either page 0x80 or page 0x83, the serial numbers or worldwide names are prefixed as follows.

Identifiers based on page 0x80 are prefixed by the character ‘S’, the SCSI vendor, the SCSI product (model) and then the the serial number returned by page 0x80. For example:

# /lib/udev/scsi_id --page=0x80 --whitelisted --device=/dev/sda
SIBM 3542 1T05078453

Identifiers based on page 0x83 are prefixed by the identifier type followed by the page 0x83 identifier. For example, a device with a NAA (Name Address Authority) type of 3 (also in this case the page 0x83 identifier starts with the NAA value of 6):

# /lib/udev/scsi_id --page=0x83 --whitelisted --device=/dev/sda
3600a0b80000b174b000000d63efc5c8c

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to tar, untar files and view contents of tar file under Linux
  2. 3 Ways of Increasing Swap Space on Linux
  3. How To Force User/Group Ownership Of Files On A Samba Share
  4. CentOS / RHEL : How to get the date and time of executed command in the history command output
  5. Configuring Persistent Storage in CentOS/RHEL 5,6 for Single Path using udev rules
  6. How to Disable NetworkManager in CentOS/RHEL 8
  7. How to check the PHP version on Linux
  8. Linux OS service ‘nfs’
  9. How to prevent non-root user from creating crontab entry
  10. How to disable write access to USB devices using “hdparm” tool

You May Also Like

Primary Sidebar

Recent Posts

  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  • Unable to Start RDMA Services on CentOS/RHEL 7
  • How to rename a KVM VM with virsh
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary