Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM and udev awfully slow at boot time [FIXED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
davidc
n00b
n00b


Joined: 30 Nov 2003
Posts: 60

PostPosted: Wed Sep 15, 2004 3:02 pm    Post subject: LVM and udev awfully slow at boot time [FIXED] Reply with quote

I have recently reinstalled my Gentoo machine and used udev instead of devfs. When I boot, it is awfully slow at the "Setting up the Logical Volume Manager" prompt and I get a number of errors about /dev/hdc being a read only device (it's a DVD drive, so that's not surprising).

At a guess this could be anything in /etc/init.d/checkfs slowing the boot time down but once past this stage everything is as fast as it should be and access to the LVM partitions is normal.

Any ideas?


Last edited by davidc on Wed Sep 15, 2004 5:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
Moloch
Apprentice
Apprentice


Joined: 17 Mar 2003
Posts: 293
Location: Albuquerque, NM, US

PostPosted: Wed Sep 15, 2004 4:02 pm    Post subject: Reply with quote

From the Gentoo LVM2 docs, you want to tell your lvm config to ignore CD devices.

Code:
echo 'devices { filter=["r/cdrom/"] }' >> /etc/lvm/lvm.conf
Back to top
View user's profile Send private message
davidc
n00b
n00b


Joined: 30 Nov 2003
Posts: 60

PostPosted: Wed Sep 15, 2004 4:31 pm    Post subject: Reply with quote

My apologies, I should have read that again when I updated. I'll give it a go, thanks.
Back to top
View user's profile Send private message
Moloch
Apprentice
Apprentice


Joined: 17 Mar 2003
Posts: 293
Location: Albuquerque, NM, US

PostPosted: Wed Sep 15, 2004 4:43 pm    Post subject: Reply with quote

NP... I always like to know when I miss something obvious in the documentation. :roll:
This is Gentoo, no RTFM crap, just help each other out.
Back to top
View user's profile Send private message
davidc
n00b
n00b


Joined: 30 Nov 2003
Posts: 60

PostPosted: Wed Sep 15, 2004 5:09 pm    Post subject: Reply with quote

Moloch wrote:
From the Gentoo LVM2 docs, you want to tell your lvm config to ignore CD devices.

Code:
echo 'devices { filter=["r/cdrom/"] }' >> /etc/lvm/lvm.conf


Why does the HOWTO use r/cdrom/ when `man lvm.conf` shows r|cdrom|? Seems slightly strange to me.
Back to top
View user's profile Send private message
davidc
n00b
n00b


Joined: 30 Nov 2003
Posts: 60

PostPosted: Wed Sep 15, 2004 5:25 pm    Post subject: Reply with quote

To fix this, I've now put the following in /etc/lvm/lvm.conf:

Code:
devices { filter=["a|hda3|", "r|.*|", "r|cdrom|", "r|cdroms|"] }


This works fine, thanks very much for the pointer. For some reason, vgscan still scans /dev/anythingthatisadirectory/*, but that's ignorable as it now doesn't slow boot time down. Perhaps my regex is wrong.
Back to top
View user's profile Send private message
Moloch
Apprentice
Apprentice


Joined: 17 Mar 2003
Posts: 293
Location: Albuquerque, NM, US

PostPosted: Wed Sep 15, 2004 5:35 pm    Post subject: Reply with quote

I've hardly played with it. Just recently switched to LVM and added that line like the docs said and I don't have any delay on startup. I haven't really paid much attention to what's going on in the background :?

Sorry, after much Perl programming I still never fully grasped regex's.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum