How to remove the os device handles (LUNs) on Linux

book

Article ID: 100037867

calendar_today

Updated On:

Description

Description

1.] vxdisk rm

 

Example:

 

Veritas Disk Access (DA) name is emc_clariion0_281 in this instance.

 

 

The following Veritas CLI command can be used to display the multipathing content for emc_clariion0_281

 

# /opt/VRTS/bin/vxdmpadm getsubpaths dmpnodename=emc_clariion0_281

 

 

sdr and sds are the related paths for emc_clariion0_281

 

emc_clariion0_281 auto           -            -           online               sds              lun RAID_5

 

2.] Mask the LUN(s) at the Storage Layer

 

 

3.] Linux os device handle removal process

 

 

The OS is presenting the following CLARiiON devices, prior to the removal of the EMC luns.

Sample output


# lsscsi | grep DGC
[2:0:2:0]    disk    DGC      RAID 5           0326  /dev/sdp
[2:0:2:1]    disk    DGC      RAID 5           0326  /dev/sdr
[2:0:3:0]    disk    DGC      RAID 5           0326  /dev/sdq
[2:0:3:1]    disk    DGC      RAID 5           0326  /dev/sds

 

 

 

Deleting device [sdr] using cmd

 

echo 1 > /sys/block/sdr/device/delete]

Deleting device [sds] using cmd

 

echo 1 > /sys/block/sds/device/delete]

 

Linux device tree output :/usr/bin/lsscsi | /bin/grep DGC
[2:0:2:0]    disk    DGC      RAID 5           0326  /dev/sdp
[2:0:3:0]    disk    DGC      RAID 5           0326  /dev/sdq

 

 

4.]

 

Refresh VxVM/DMP

 

# vxdisk scandisks

 

 

5.]   Refresh the /etc/vx/disk.info:

 

/usr/sbin/vxddladm assign names

 

Issue/Introduction

How to remove the os device handles (LUNs) on Linux