Solved

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

Posted on 2012-04-13
2
1,249 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 500 total points
Comment Utility
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
Comment Utility
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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Having issues meeting security compliance criteria because of those pesky USB drives? Then I can help you! This article will explain how to disable USB Mass Storage devices in Windows Server 2008 R2.
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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now