All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] LVM2: vgscan is long...
@ 2004-02-18 11:37 Daniel Chénard
  2004-02-18 12:05 ` Joe Thornber
  2004-02-18 12:07 ` Alasdair G Kergon
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Chénard @ 2004-02-18 11:37 UTC (permalink / raw)
  To: LVM-MaillingList

[-- Attachment #1: Type: text/plain, Size: 996 bytes --]

In my lvm.conf, I have set my filter 

filter = [ "a|hda*|", "a|hdb*|", "a|hdc*|" ]
filter = [ "r|cdrom|", "r|hdd*|" ]

but, when I do 

time lvm vgscan
  Reading all physical volumes.  This may take a while...
 
real    3m41.199s
user    0m0.889s
sys     0m1.088s

and ps -ef show me many modprobe -q -- block_major*

So, in my rc.sysinit,  I do 
"action $"Setting up Logical Volume Management:" /sbin/lvm vgscan
--mknodes && /sbin/lvm vgchange -a y"

So, 3m41.19 for a vgscan is too long for me.  Anybody could help me to
reduce this time??



Daniel Chénard 
Croesus Finansoft Inc.
Réputé pour créer de la richesse
 
Croesus Finansoft Inc.
2 Place Laval, Suite 510
Laval, Quebec
Canada H7N 5N6
Site Web: www.croesus.com
 
dchenard@croesus.com
Tel: +1 450-662-6101, 145
Fax: +1 450-662-3629

PS: The Light at the End of The Tunnel
     will be turned off until further
     notice due to budget cutbacks.
                             --The Management

[-- Attachment #2: Type: text/html, Size: 1717 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] LVM2: vgscan is long...
  2004-02-18 11:37 [linux-lvm] LVM2: vgscan is long Daniel Chénard
@ 2004-02-18 12:05 ` Joe Thornber
  2004-02-18 12:07 ` Alasdair G Kergon
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Thornber @ 2004-02-18 12:05 UTC (permalink / raw)
  To: linux-lvm

On Wed, Feb 18, 2004 at 11:37:38AM -0500, Daniel Ch?nard wrote:
> So, 3m41.19 for a vgscan is too long for me.  Anybody could help me to
> reduce this time??

If you are using 2.6 you could try the latest LVM2 tools from CVS.
There is a filter that uses sysfs to speed up vgscan (took a 35 second
scan to 2 seconds on my system).

- Joe

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] LVM2: vgscan is long...
  2004-02-18 11:37 [linux-lvm] LVM2: vgscan is long Daniel Chénard
  2004-02-18 12:05 ` Joe Thornber
@ 2004-02-18 12:07 ` Alasdair G Kergon
  1 sibling, 0 replies; 3+ messages in thread
From: Alasdair G Kergon @ 2004-02-18 12:07 UTC (permalink / raw)
  To: linux-lvm

On Wed, Feb 18, 2004 at 11:37:38AM -0500, Daniel Ch�nard wrote:
> In my lvm.conf, I have set my filter 
 
> filter = [ "a|hda*|", "a|hdb*|", "a|hdc*|" ]
> filter = [ "r|cdrom|", "r|hdd*|" ]
 
Only one filter applies: merge them into one line.
e.g. 
  filter = [ "a|hda*|", "a|hdb*|", "a|hdc*|", "r|.*|" ] 

And if this is 2.6, you may find the LVM2 source code in CVS runs faster.

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-18 17:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-18 11:37 [linux-lvm] LVM2: vgscan is long Daniel Chénard
2004-02-18 12:05 ` Joe Thornber
2004-02-18 12:07 ` Alasdair G Kergon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.