Overview: The Next Generation Mass Storage Stack (September 2009)

Table Of Contents
56
Assigning Aliases to LUNs
There are two methods of assigning a user-friendly name to a LUN.
The first method is to set the alias attribute for a LUN. To assign the name fast_disk to a LUN, use the
following command:
# scsimgr set_attr –H 64000/0xfa00/0x3 -a alias=fast_disk
Value of attribute alias set successfully
To retrieve the alias attribute, use either of the following commands:
# scsimgr -p get_attr -H 64000/0xfa00/0x3 -a alias
fast_disk
# scsimgr -p get_attr -D /dev/rdisk/disk49 -a alias
fast_disk
The second method is to set the device identifier on the LUN. The device identifier is stored on the device, so it
remains available if the disk is moved to a different system or connected to multiple systems.
To set the device identifier, use the scsimgr set_devid command as follows:
# scsimgr set_devid -D /dev/rdisk/disk49 my_disk
Do you really want to set device id? (y/n)? y
scsimgr: Device Identifier successfully set
To retrieve the device identifier, use the scsimgr get_devid command with either the DSF or LUN hardware
path as follows:
# scsimgr get_devid -D /dev/rdisk/disk49
Device Identifier for /dev/rdisk/disk49 = my_disk
# scsimgr get_devid -H 64000/0xfa00/0x3
Device Identifier for /dev/rdisk/disk49 = my_disk