HP 3PAR SUSE Linux Enterprise Implementation Guide

NOTE: When using the echo command, make sure the devices are removed from each of the
host HBA instances.
Method 2
Issue the following commands:
# kpartx -d /dev/mapper/<device node>
#dmsetup remove <device node>
#echo "scsi remove-single-device X X X X " > /proc/scsi/scsi
where <h> is the HBA number, <c> is the channel on the HBA, <t> is the SCSI target ID, and
<l> is the LUN.
Example: Remove LUN 2
# multipath -ll
350002ac000160121 dm-3 3PARdata,VV
size=5.0G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 0:0:0:2 sdb 8:16 active ready running
|- 0:0:1:2 sdk 8:160 active ready running
|- 1:0:0:2 sdt 65:48 active ready running
`- 1:0:1:2 sdac 65:192 active ready running
# kpartx -d /dev/mapper/350002ac000160121
# dmsetup remove 350002ac000160121
# echo "scsi remove-single-device 0 0 0 2" > /proc/scsi/scsi
# echo "scsi remove-single-device 0 0 1 2" > /proc/scsi/scsi
# echo "scsi remove-single-device 1 0 0 2" > /proc/scsi/scsi
# echo "scsi remove-single-device 1 0 1 2" > /proc/scsi/scsi
NOTE: When using the echo command, make sure the devices are removed from each of the
host HBA instances.
After removing the storage volume from the host using one of the two methods, remove the VLUN
from the HP 3PAR StoreServ Storage by issuing removevlun <VVname> <LUN> <host>.
# removevlun testvlun 0 susehost
WARNING! While removing the device, make sure the correct underlying device is used. Use
the multipath command to identify the underlying device.
CAUTION: For iSCSI devices, do not remove the last iSCSI device in / proc/scsi/scsi
without first stopping the iSCSI daemon /etc/init.d/iscsi stop, otherwise data corruption
can occur and the host will hang.
Any change to the /etc/multipath configuration file requires running the multipath command
to be effective. If the change is not reflected, try stopping and starting the multipathd script.
# /etc/init.d/multipathd stop
# /etc/init.d/multipaths start
62 Modifying HP 3PAR Devices on the Host