View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: LVM question
PostPosted: Sat Nov 05, 2005 1:56 am 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
I followed the guide on the wiki to get LVM setup and it worked almost perfectly. The problem i have is now on boot up I get an device not found error as every possible hard drive combo is searched for.

IE: cannot find hda6
cannot find hda7
cannot find hda8

etc allthe way through the sda's

How do I stop it looking?

Craig


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 2:39 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Use bootsplash. :) You cannot stop it as far as I'm aware. It is non-fatal.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 3:54 am 
Offline
Joined: Fri May 21, 2004 11:55 pm
Posts: 1206
Location: Silicon Valley, CA
Actually, there IS a mechanism that lets you exclude devices from the search when starting LVM. This is from the lvm "man" command and the file /etc/lvm/lvm.conf. There is a "filter" array which lets you (a)ccept or (r)eject devices based on regular expressions. Here is a snippet from the file:

Code:
    # A filter that tells LVM2 to only use a restricted set of devices.
    # The filter consists of an array of regular expressions.  These
    # expressions can be delimited by a character of your choice, and
    # prefixed with either an 'a' (for accept) or 'r' (for reject).
    # The first expression found to match a device name determines if
    # the device will be accepted or rejected (ignored).  Devices that
    # don't match any patterns are accepted.

    # Be careful if there there are symbolic links or multiple filesystem
    # entries for the same device as each name is checked separately against
    # the list of patterns.  The effect is that if any name matches any 'a'
    # pattern, the device is accepted; otherwise if any name matches any 'r'
    # pattern it is rejected; otherwise it is accepted.

    # Remember to run vgscan after you change this parameter to ensure
    # that the cache file gets regenerated (see below).


I HAVE NOT tried this, but I would use this filter to exclude all drives except hda, hdc, and hdd (which happen to be my three drives in the LVM array).

Code:
    # Include only disks hda,hdc,hdd
    filter = [ "a|/dev/hd[acd]|", "r|.*|" ]


One further caveat in the files documentation:

Code:
    # The results of the filtering are cached on disk to avoid
    # rescanning dud devices (which can take a very long time).  By
    # default this cache file is hidden in the /etc/lvm directory.
    # It is safe to delete this file: the tools regenerate it.
    cache = "/etc/lvm/.cache"

    # You can turn off writing this cache file by setting this to 0.
    write_cache_state = 1

_________________
Do you code to live, or live to code?
Search LinHES forum through Google


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 10:08 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I just tried it. It works and seems to prevent that awful spew of mesages as it scans every device in the system... Thanks! I've been meaning to figure out how to fix this. ;-)

OBTW - Mine now looks like this:
Code:
    # Only scan hda and hdb
    filter = [ "a|/dev/hd[ab]|", "r|.*|" ]


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 12:53 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Nice! :)

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu