• 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. How To Add Standard Linux Users To Manage Print Jobs And Services in CentOS/RHEL
  2. Why Does “netstat” Output Show Many Connections in CLOSE_WAIT Status?
  3. sestatus Command Examples in Linux
  4. CentOS / RHEL : How to assemble a software RAID in Rescue mode
  5. CentOS / RHEL : How to delete a volume group in LVM
  6. RPM command examples to query, install, remove and upgrade packages
  7. How to disable Ctrl+Alt+Del causing system reboot in CentOS/RHEL 6
  8. CentOS / RHEL : How to prioritize the devices used for swap partition
  9. Cron Script does not Execute as Expected from crontab – Troubleshoot
  10. Unable to set a GRUB password on a Raspberry Pi 3 system

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright