Solved

How do you take a local drive out of mulitpath in Linux?

Posted on 2012-04-13
2
1,274 Views
Last Modified: 2012-04-15
I have a new system I just built that has somehow added a local drive /dev/sdb1 into multipath:

[root@server /]# multipath -ll
multipath.conf line 114, invalid keyword: polling_interval
multipath.conf line 126, invalid keyword: polling_interval
multipath.conf line 140, invalid keyword: polling_interval
multipath.conf line 141, invalid keyword: selector
multipath.conf line 145, invalid keyword: max_fds
mpath0 (36782bcb0624a720016aa6bcd12321c25) dm-5 DELL,PERC 6/i
[size=279G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 0:2:1:0 sdb 8:16  [active][ready]

Open in new window


It does not need to be in there and should be treated as a normal local drive. How can I remove it from multipath?
0
Comment
Question by:Thaidog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
Pepe2323 earned 500 total points
ID: 37844159
Hi

If you don't have storge like SAN that can have more than 1 path there is no sense you have multipath running

So you can disable it, this is a service running

Also you can black list specific devices into /etc/multipath.conf

blacklist {
      wwid SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1 -----> this is id of the disk
}

you can get it with this command


# multipath -v2
create: SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1 undef WINSYS,SF2372 ----->  id listed here
size=33 GB features="0" hwhandler="0" wp=undef
`-+- policy='round-robin 0' prio=1 status=undef
  |- 0:0:0:0 sda 8:0  [---------

you can get more details on this link http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/DM_Multipath/ignore_localdisk_procedure.html
0
 

Author Comment

by:Thaidog
ID: 37847883
Well I did a chkconfig multipathd off but the local disk was still getting listed with multipath -ll even with the daemon off... I'm guessing due to the driver being loaded. I blacklisted the sd[a/z] devices in multipath.conf and so far so good. Thanks for your help!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question