[Gllug] Removing LVM (RHEL4)

Rich Walker rw at shadow.org.uk
Wed Oct 19 16:15:37 UTC 2005


"Daniel P. Berrange" <dan at berrange.com> writes:
>
> With LVM-2 at least, you can edit /etc/lvm/lvm.conf and add
> explicit exclusions for certain block devices. The default is
> to allow scanning of all devices, with something like
>
>   # This section allows you to configure which block devices should
>   # be used by the LVM system.
>   devices {
>
>     # Where do you want your volume groups to appear ?
>     dir = "/dev"
>
>     # An array of directories that contain the device nodes you wish
>     # to use with LVM2.
>     scan = [ "/dev" ]
>
>     # By default we accept every block device:
>     filter = [ "a/.*/" ]
>   }
>
> But, if you have some devices RAID'd or managed by another layer
> in device-mapper, for safety sake, its a good idea to add excludes
> for them. In your example, I believe something like this would
> do the job:
>
>     filter = [ "r|^/dev/hdg2$|" ];

I ended up with:

    filter = [ "r|/dev/cdrom|", "r|/dev/dvd|",  "r|^/dev/hd.*2$|", "r|/dev/sd.*|" ]

which seems to do the job...

Thanks for that.

cheers, Rich.

-- 
rich walker         |  Shadow Robot Company | rw at shadow.org.uk
technical director     251 Liverpool Road   |
need a Hand?           London  N1 1LX       | +UK 20 7700 2487
www.shadow.org.uk/products/newhand.shtml
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list