LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2013, 10:59 PM   #1
hilou
Member
 
Registered: May 2013
Posts: 73

Rep: Reputation: Disabled
Filter disks that underlie the Multipath devices.


"When you create an LVM logical volume that uses active/passive multipath arrays as the underlying
physical devices, you should include filters in the lvm .conf to exclude the disks that underlie the
multipath devices. T his is because if the array automatically changes the active path to the passive path when it receives I/O, multipath will failover and failback whenever LVM scans the passive path if these
devices are not filtered. For active/passive arrays that require a command to make the passive path
active, LVM prints a warning message when this occurs."

I don't quite understand this. Why should we filter this since we have a blacklist in multipath.conf file and filter what?

Can anyone help me understand this?

And also how to configure multipath to active/passive or active/active mode? what is the default mode?


Thanks in advance.

Last edited by hilou; 08-05-2013 at 11:04 PM.
 
Old 08-07-2013, 11:50 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,632

Rep: Reputation: 704Reputation: 704Reputation: 704Reputation: 704Reputation: 704Reputation: 704Reputation: 704
When you have multipathing to a dual-controller RAID you will have two low-level SCSI devices, say /dev/sdc and /dev/sdd that are actually two paths to the same device. multipathd will create /dev/dm-0 on top of these two. The multipath.conf blacklist only prevents multipath from looking at certain drives.

Sending a read to /dev/sdc might cause it to be the active path on the RAID. If you don't have a filter, LVM might scan /dev/sdd causing the RAID to fail over and your performance to get terrible. The filter is to prevent lvmdiskscan from looking at the sd drives underlying /dev/dm-0.

That said, I don't think you need to write a filter. You just need to set multipath_component_detection correctly in /etc/lvm/lvm.conf. There's also a check for software RAID components md_component_detection.
 
Old 08-08-2013, 01:26 AM   #3
hilou
Member
 
Registered: May 2013
Posts: 73

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks!

Br,
 
Old 11-26-2013, 02:28 AM   #4
hilou
Member
 
Registered: May 2013
Posts: 73

Original Poster
Rep: Reputation: Disabled
Hi,

What about the second question?
how to configure multipath to active/passive or active/active mode? what is the default mode?

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
emcpower (or multipath) devices as your Physical volume stopped Suddenly . sanjay87 Linux - Server 2 05-13-2013 05:07 PM
Moving existing VG to multipath devices Foobsy Linux - Enterprise 4 05-15-2012 09:07 AM
[SOLVED] Multipath devices not showing up gunnerjoe Linux - Hardware 1 02-20-2012 04:20 PM
Mapping LUNs to multipath devices. larold Linux - Enterprise 9 02-20-2010 12:31 PM
Need to filter devices out from a firewall by MAC address bhenry Linux - Security 3 10-08-2004 12:29 AM


All times are GMT -5. The time now is 10:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration