On Tue, June 12, 2012 11:15, n43w79 wrote:
>> I'm trying to set up LVM with FAI 3.4.7 on Debian 6. The various
>> partitions are created, and things install fine, but on reboot all the
>> volume groups except the the one that has the root file system ("/") are
>> 'inactive'.
>>
> Please try:
> - disk_config cciss/c0d0 disklabel:msdos fstabkey:uuid
> + disk_config disk1 disklabel:msdos fstabkey:uuid
> ....
> - vg vgsys cciss/c0d0p2
> + vg vgsys disk1
"disk1" didn't work with the "vg" line; the correct value is "disk1.2".
Regardless, same result:
# lvscan
inactive '/dev/vgsys/var' [43.16 GiB] inherit
inactive '/dev/vgsys/swap' [8.00 GiB] inherit
ACTIVE '/dev/vgsys/root' [8.00 GiB] inherit
inactive '/dev/vgsys/tmp' [8.00 GiB] inherit
# vgscan
Reading all physical volumes. This may take a while...
Found volume group "vgsys" using metadata type lvm2
# pvscan
PV /dev/block/104:2 VG vgsys lvm2 [67.83 GiB / 692.00 MiB free]
Total: 1 [67.83 GiB] / in use: 1 [67.83 GiB] / in no VG: 0 [0 ]
# df -hP
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vgsys-root 7.9G 534M 7.0G 7% /
tmpfs 7.9G 0 7.9G 0% /lib/init/rw
udev 7.9G 96K 7.9G 1% /dev
tmpfs 7.9G 4.0K 7.9G 1% /dev/shm
# vgchange -a y vgsys
4 logical volume(s) in volume group "vgsys" now active
root@hcn50:~# lvscan
ACTIVE '/dev/vgsys/var' [43.16 GiB] inherit
ACTIVE '/dev/vgsys/swap' [8.00 GiB] inherit
ACTIVE '/dev/vgsys/root' [8.00 GiB] inherit
ACTIVE '/dev/vgsys/tmp' [8.00 GiB] inherit
# mount -a
root@hcn50:~# df -hP
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vgsys-root 7.9G 534M 7.0G 7% /
tmpfs 7.9G 0 7.9G 0% /lib/init/rw
udev 7.9G 108K 7.9G 1% /dev
tmpfs 7.9G 4.0K 7.9G 1% /dev/shm
/dev/cciss/c0d0p1 494M 28M 441M 6% /boot
/dev/mapper/vgsys-tmp 7.9G 147M 7.4G 2% /tmp
/dev/mapper/vgsys-var 43G 325M 41G 1% /var
Then on reboot I get the same issue: "inactive" volumes. Is it something
with the FAI config I'm trying, or some 'trick' that needs to be done to
set up the initrd image so that LVM activate all the volumes?