Anaconda storage module does not see LVM
On Mon, 2012-05-28 at 10:27 +0200, Jan Safranek wrote:
> Hi,
>
> I have one volume group /dev/vgMine with one logical volume
> /dev/vgMine/lvMine and I have troubles seeing these devices in Anaconda
> storage module. E.g. this simple program does not list them:
Probably you need to inject ANACONDA=1 into the udev environment and
trigger a change event afterwards to get the info anaconda requires into
the udev database:
import os
os.system("udevadm control --env=ANACONDA=1")
os.system("udevadm trigger --subsystem-match block")
os.system("udevadm settle")
Then, when you're done, you can optionally disable the anaconda-specific
rules:
os.system("udevadm control --env=ANACONDA=0")
This assumes you have the anaconda rpm installed on your system. If you
do not, you will need to place data/70-anaconda.rules
into /etc/udev.rules.d/ or somewhere else udev can find them.
David
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|