HP 3PAR Ubuntu Operating System Implementation Guide
where 350002ac001b40031p1 is a partition device of whole disk 350002ac001b40031.
WARNING! While using fdisk, make sure the correct underlying device is used. Use the
multipath command to identify the underlying device.
WARNING! All I/O creating the file system and mount points needs to be done using the
Device-mapper device nodes /dev/mapper/XXX.
Data corruption will occur if any I/O is attempted on /dev/sdX device nodes.
WARNING! Issuing the multipath -F command will flush out all the Device-mapper mapping
and can be very destructive if I/O is being served to any of the existing devices. Avoid using the
-F option.
Use kpartx to delete a Device-mapper instance and then use fdisk to delete the partition.
The Device-mapper node name represents the storage volume ID (excluding the first digit 3). Use
the HP 3PAR OS CLI showvv or showvlun commands to get the volume name it represents.
Example:
1. On your FC connected host run ls /dev/mapper.
# ls /dev/mapper
350002ac001b40031
2. Run the showvlun command on the HP 3PAR StoreServ Storage using the output above
(minus first digit).
# showvlun -lvw -a |grep -i 50002ac001b40031
0 testvlun 50002AC001B40031 ubuntuhost 2100001B321A0C63 0:4:1 host
0 testvlun 50002AC001B40031 ubuntuhost 2101001B323A0C63 1:5:1 host
3. On the iSCSI host, run ls /dev/mapper.
# ls /dev/mapper
350002AC0004B0079
4. On the HP 3PAR StoreServ Storage, run showvlun -lvw -a |grep -i <LUN>.
# showvlun -lvw -a |grep -i 50002ac0004b0079
0 testvlun 50002AC0004B0079 ubuntuhost iqn.1994-05.com.ubuntu:a3df53b0a32d 1:3:1
host
0 testvlun 50002AC0004B0079 ubuntuhost iqn.1994-05.com.ubuntu:a3df53b0a32d 0:3:1
host
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>
Removing a Storage Volume from the Host 31