• 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 the multipath device after unmapping the storage LUN from server

by admin

Question: How To remove the Multipath Device after Unmapping the LUN from the Server?

For example the “mpath4” in below output is not in use and needs to be removed.

# multipath -ll
sda: checker msg is "tur checker reports path is down"
sdd: checker msg is "tur checker reports path is down"
1_oracle_index ( Unique WWID ) dm-10 HP,MSA2012fc
[size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 0:0:1:13 sdc        8:32  [active][ready]
\_ 1:0:1:13 sdf        8:80  [active][ready]
1_oracle_data ( Unique WWID ) dm-9 HP,MSA2012fc
[size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 0:0:1:12 sdb        8:16  [active][ready]
\_ 1:0:1:12 sde        8:64  [active][ready]
mpath4 ( Unique WWID ) dm-8 HP,MSA2012fc
[size=1.0G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=0][enabled]
\_ 0:0:1:10 sda        8:0   [failed][faulty]
\_ 1:0:1:10 sdd        8:48  [failed][faulty]

Follow the steps outlined below to remove the failed/faulty device from multipath.

1. Flush the multipath device “mpath4” or wwid if different from alias. in this example alias is “mpath4”. Use “-f” to flush the multipath map.

# multipath -f mpath4

2. Run the multipath command again to confirm.

# multipath -ll
sda: checker msg is "tur checker reports path is down"
sdd: checker msg is "tur checker reports path is down"
1_oracle_index ( Unique WWID ) dm-10 HP,MSA2012fc
[size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 0:0:1:13 sdc        8:32  [active][ready]
\_ 1:0:1:13 sdf        8:80  [active][ready]
1_oracle_data ( Unique WWID ) dm-9 HP,MSA2012fc
[size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 0:0:1:12 sdb        8:16  [active][ready]
\_ 1:0:1:12 sde        8:64  [active][ready]

As seen from the output above, the multipath device mpath4 is now removed from the server.

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

Some more articles you might also be interested in …

  1. iw: command not found
  2. mkfs.ntfs: command not found
  3. cpio: command not found
  4. test: command not found
  5. inxi Command Examples in Linux
  6. bspc: command not found
  7. CentOS / RHEL 7 : Beginners guide to systemd
  8. pi Command Examples in Linux
  9. Linux OS Service ‘hplip’
  10. pactree Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright