• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Remove a Dead Mulitpath Device without Reboot in CentOS/RHEL

by admin

Once a multipath device is down, I/O to this device is blocked. That can cause hang when collecting a sosreport or scanning/refreshing a disk. An example of a Dead Multipath device is shown below:

360060e80166bac0000016bac000000da dm-49 HITACHI,OPEN-V
size=200G features='0' hwhandler='0' wp=rw
'-+- policy='round-robin 0' prio=0 status=enabled
|- 8:0:0:34 sdiq 135:160 failed faulty running
|- 8:0:1:34 sdix 8:272 failed faulty running
|- 9:0:1:34 sdjl 8:496 failed faulty running
|- 10:0:0:34 sdjs 65:352 failed faulty running
|- 10:0:1:34 sdjz 65:464 failed faulty running
|- 9:0:0:34 sdje 8:384 failed faulty running
|- 11:0:0:34 sdkg 66:320 failed faulty running
'- 11:0:1:34 sdkn 66:432 failed faulty running

Removing Dead Multipath Device Online

The dead multipath device can be forcefully removed by deleting the mapping even when processes are operating on the device and those processes are in status “uninterruptible sleep“. Steps to forcefully remove a dead multipath device are as below.

1. remove the device map and replace the table with one that fails all I/O.

# dmsetup remove -f [map name]

For example:

# dmesetup remove -f 360060e80166bac0000016bac000000da

2. remove the multipath device.

# multipath -f [LUN name]

For example:

# multipath -f 360060e80166bac0000016bac000000da

3. Verify the deletion of the dead multipath device.

# multipath -ll

Filed Under: CentOS/RHEL 5, CentOS/RHEL 6, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. Audit rules to log reboot command executions in CentOS/RHEL
  2. getopt: command not found
  3. How to activate and mount 2 Volume groups with same names in CentOS/RHEL
  4. nixos-container : Command Examples in Linux
  5. duc Command Examples in Linux
  6. UbuntuDDE new upcoming Linux distribution
  7. Honeypot Tutorials – Modes and Working of Honeypot
  8. lvremove Command Fails With Error “LVM – Can’t remove open logical volume”
  9. RedHat / CentOS : Managing software RAID with mdadm
  10. How to monitor the Mounting/Umounting of Mount Points Using Auditd on CentOS/RHEL 6,7

You May Also Like

Primary Sidebar

Recent Posts

  • raw: command not found
  • raw Command Examples in Linux
  • rankmirrors Command Examples in Linux
  • radeontop: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright