[linux-lvm] Hide volume group during startup
Bryn M. Reeves
bmr at redhat.com
Thu Apr 12 12:26:34 UTC 2012
On 04/12/2012 01:14 PM, Erik Schwalbe wrote:
> The symlink in /dev/data/ is:
>
> lrwxrwxrwx 1 root root 24 2012-04-05 12:51 kvm_disk0 -> ../mapper/data-kvm_disk0
OK, you're using an older LVM2/device-mapper that does not use udev to
manage the device nodes and symlinks in /dev.
> Should I be using this:
>
> filter = [ "r|/dev/mapper/data-kvm_disk0|", "r|/dev/kvm_disk0|", "a|.*|"]
Yes. Or use the alternate style I showed and only accept the PVs
belonging to the data VG.
As Lars said you may also need to rebuild your initramfs although if the
data VG doesn't contain your root file system, swap or other resources
normally set up in the initramfs this shouldn't be needed.
Regards,
Bryn.
More information about the linux-lvm
mailing list