[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2012-04-13
2
Medium Priority
?
1,299 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
2 Comments
 
LVL 8

Accepted Solution

by:
Pepe2323 earned 2000 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
 
LVL 1

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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

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.
In the below post we have mentioned the best hosting type for startups. Also, check out some of the superlative web hosting companies that are proposing affordable web hosting solutions to host your startup website.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month19 days, 15 hours left to enroll

872 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