LVM on FAI-installed computers

Andreas Sindermann sinder at thp.Uni-Koeln.DE
Sat Feb 25 10:47:30 CET 2006


Mathias Friman writes:
 > I have a volume group named "vg_data" and three lv's named "lv_home",
 > "lv_usr" and "lv_var" respectively, each with a ext3 filesystem.
 > 
 > I try to mount the lv's in fstab:
 > /dev/vg_data/lv_home /home ext3	defaults 0 0
 > 
 > I get as far as
 > Setting up LVM Volume Groups...
 >   Reading all physical volumes. This may take a while...
 >   Found volume group "vg_data" using metadata type lvm2
 >   /dev/vg_data: opendir failed: no such file or directory
 >   /dev/vg_data: opendir failed: no such file or directory
 >   /dev/vg_data: opendir failed: no such file or directory
 > 
 > and at the end of the boot, none of the volumes are being mounted.
 > 
 > I can manually run the lvm-script and mount the volumes from the command
 > line. 
 > 
 > "# vgchange -a y" says
 >  3 logical volume(s) in volume group "vg_data" now active
 > 
 > "lsmod" shows that dm_mod is loaded. 
 > and the devices mapped in /dev/vg_data is soft links
 > lv_home -> /dev/mapper/vg_data-lv_home .. etc.

Hm, perhaps as a workaround right before the lvm startup script you
simply add another script (with FAI) containing the vgchange line
mentioned above?

Andreas



More information about the linux-fai mailing list