Wwid - Red Hat ENTERPRISE LINUX 5.5 - ONLINE STORAGE GUIDE Manual

Hide thumbs Also See for ENTERPRISE LINUX 5.5 - ONLINE STORAGE GUIDE:
Table of Contents

Advertisement

For iSCSI devices, by-path/ names map from the target name and portal information to the sd
name.
It is generally not appropriate for applications to use these path-based names. This is because the
storage device these paths reference may change, potentially causing incorrect data to be written
to the device. Path-based names are also not appropriate for multipath devices, because the path-
based names may be mistaken for separate storage devices, leading to uncoordinated access and
unintended modifications of the data.
In addition, path-based names are system-specific. This can cause unintended data changes when
the device is accessed by multiple systems, such as in a cluster.
For these reasons, several persistent, system-independent, methods for identifying devices have been
developed. The following sections discuss these in detail.

4.1. WWID

The World Wide Identifier (WWID) can be used in reliably identifying devices. It is a persistent,
system-independent ID that the SCSI Standard requires from all SCSI devices. The WWID identifier is
guaranteed to be unique for every storage device, and independent of the path that is used to access
the device.
This identifier can be obtained by issuing a SCSI Inquiry to retrieve the Device Identification Vital
Product Data (page 0x83) or Unit Serial Number (page 0x80). The mappings from these WWIDs
to the current /dev/sd names can be seen in the symlinks maintained in the /dev/disk/by-id/
directory.
For example, a device with a page 0x83 identifier would have:
scsi-3600508b400105e210000900000490000 -> ../../sda
Or, a device with a page 0x80 identifier would have:
scsi-SSEAGATE_ST373453LW_3HW1RHM6 -> ../../sda
Red Hat Enterprise Linux 5 automatically maintains the proper mapping from the WWID-based device
name to a current /dev/sd name on that system. Applications can use the /dev/disk/by-id/
name to reference the data on the disk, even if the path to the device changes, and even when
accessing the device from different systems.
If there are multiple paths from a system to a device, device-mapper-multipath uses the WWID to
detect this. Device-mapper-multipath then presents a single "pseudo-device" in /dev/mapper/
wwid, such as /dev/mapper/3600508b400105df70000e00000ac0000.
The command multipath -l shows the mapping to the non-persistent identifiers:
Host:Channel:Target:LUN, /dev/sd name, and the major:minor number.
3600508b400105df70000e00000ac0000 dm-2 vendor,product
[size=20G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 5:0:1:1 sdc 8:32
\_ 6:0:1:1 sdg 8:96
\_ round-robin 0 [prio=0][enabled]
\_ 5:0:0:1 sdb 8:16
[active][undef]
[active][undef]
[active][undef]
WWID
9

Advertisement

Table of Contents
loading

Table of Contents