LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-16-2015, 01:53 AM   #1
linuxbeez
LQ Newbie
 
Registered: Apr 2014
Posts: 12

Rep: Reputation: Disabled
lvm filter and pvscan


I have configured multipath and in lvm.conf I have added

filter = [ "^/dev/mpath/*/", "r/.*/" ]
preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]

line for filter, after going through some posts I found that pvscan need to be given before rebooting the server. Can anyone tell me the desired output I should get for pvscan and is it necessary to give it, if so why.
 
Old 03-16-2015, 08:18 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
pvscan will simply ouput the physical volumes (PVs) it finds:
Example:
PV /dev/sdb1 VG vg_Database lvm2 [1.64 TiB / 0 free]
PV /dev/mapper/mpathd VG vg_pgpdb lvm2 [1.47 TiB / 0 free]
PV /dev/mapper/mpathe VG vg_pgparch lvm2 [249.97 GiB / 0 free]
PV /dev/sda2 VG VolGroup00 lvm2 [557.88 GiB / 319.79 GiB free]
Total: 4 [3.89 TiB] / in use: 4 [3.89 TiB] / in no VG: 0 [0 ]

However, your filter is:
a) Incorrect because you would need to prepend with a/ to tell it to accept.
b) Unnecessary when using multipath devices. You should focus instead on the multipath.conf. For our systems with mutlipath we use the default filter:
filter = [ "a/.*/" ]
 
Old 03-18-2015, 06:53 AM   #3
linuxbeez
LQ Newbie
 
Registered: Apr 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
I have now configured as below

filter = [ "r/disk/", "r/sd.*/", "a/.*/" ]
preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
 
  


Reply



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
lvm.conf filter Fracker Linux - Server 1 03-11-2015 02:08 PM
lvm.conf filter Fracker Linux - Server 1 03-05-2015 05:56 AM
Problem recovering LVM paritions using pvscan etc "File descriptor 20 left open" elmaccco Linux - Server 17 02-12-2012 09:09 AM
[SOLVED] pvscan failed to read LUN malayo Linux - Distributions 10 02-11-2012 06:26 AM
Powerpath and lvm.conf filter SpLaSh212 Linux - Server 1 05-04-2009 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:20 AM.

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
Open Source Consulting | Domain Registration