[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Hide volume group during startup



Hi,

sorry but it did not work:

I deactivate the VG kvm_disk0 with vgchange -an kvm_disk0, after that I set the filter and do a update-initramfs -u -k all
But after reboot the VG is always activate. 

...
kvm_disk0                   data      -wi-ao 400.00g                                                                            
  vm-203-disk-1               kvm_disk0 -wi-a-  28.01g                                      
  vm-203-disk-2               kvm_disk0 -wi-a-  80.00g
...

Regards,
Erik


----- Original Message -----
From: "Bryn M. Reeves" <bmr redhat com>
To: "LVM general discussion and development" <linux-lvm redhat com>
Cc: "Erik Schwalbe" <erik schwalbe canoo com>
Sent: Thursday, 12 April, 2012 2:26:34 PM
Subject: Re: [linux-lvm] Hide volume group during startup

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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]