HP 3PAR SUSE Linux Enterprise Implementation Guide

3. On the iSCSI host, run ls /dev/mapper.
# ls /dev/mapper
350002AC0004B0079
4. On the iSCSI host, run showvlun -lvw -a |grep -i <LUN>.
# showvlun -lvw -a |grep -i 50002ac0004b0079
0 testvlun 50002AC0004B0079 susehost iqn.1994-05.com.suse:a3df53b0a32d 1:3:1 host
0 testvlun 50002AC0004B0079 susehost iqn.1994-05.com.suse:a3df53b0a32d 0:3:1 host
Creating Veritas Volume Manager Devices
If the Veritas Volume Manager is being used for multipathing, and new VLUNs are exported from
the storage server, complete the following steps to add new VLUNs without disrupting the I/O on
the existing VLUNs:
1. Add the new exported VLUN using any of the Discovery methods.
2. After verifying that the new VLUN is detected and the device instance is created, force the
Veritas layer to scan for new devices.
# vxdctl enable
3. Check that the new devices are seen by the Veritas Volume Manager. After device initialization,
the status will change from being in an error state to being online.
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
3PARDATA1_0 auto:cdsdisk testdg testdg online
3PARDATA1_1 auto - - error
The VLUNs discovered on the Linux host should be labeled using the Linux fdisk command
before they can be used by the Veritas Volume Manager.
If disks are admitted to the Volume Manager, never use the raw device paths /dev/sdX for
performing I/O, and instead use Veritas volume device paths /dev/vx/.
Removing a Storage Volume from the Host
Use one of the two following methods to remove a storage volume from the host if using
Device-mapper.
Method 1
Issue the following commands:
# kpartx -d /dev/mapper/<device node>
# dmsetup remove <device node>
# echo "1" > /sys/class/scsi_host/<host instance>/device/<rport-host instance>/ <target instance>/<device instance>/delete
Example:
# kpartx -d /dev/mapper/350002ac001b40031
# dmsetup remove 350002ac001b40031
# echo "1" > /sys/class/scsi_host/host0/device/target0\:0\:0/0\:0\:0\:0//delete
<target instance>/<device instance>/delete
Creating Veritas Volume Manager Devices 61