fstabkey:label with lvm?

Rudy Gevaert rudy.gevaert at ugent.be
Fri Nov 27 09:01:30 CET 2009


Dear FAI list,

I'm new to the setup-storage tool and have some problems trying to  
configure the partitioning.

I want to use labels in my /etc/fstab.  Also I want to put several  
partitions on LVM.  The following doesn't work.  However adding  
createopts to the lvm volumes doesn't work too...

Any help is very well appreciated!

disk_config disk1  fstabkey:label bootable:1
primary /boot       200       ext3    rw createopts="-L boot"
primary swap        2048      swap    sw createopts="-L swap"
primary /           6000      ext3    rw createopts="-L root"
logical -           0-        -       -

disk_config lvm
vg      ugent        disk1.5
ugent-_tmp      /tmp    1000  ext3  rw,nosuid,nodev
ugent-_home     /home   2000  ext3  rw
ugent-_var      /var    20000 ext3  rw


Calling task_partition
Partitioning local harddisks using setup-storage
Starting setup-storage 1.0.3
Using config file: /var/lib/fai/config/disk_config/UGENT
Executing: parted -s /dev/sda unit TiB print
Executing: parted -s /dev/sda unit B print free
Executing: parted -s /dev/sda unit chs print free
Executing: vgdisplay --units m -s
Executing: vgdisplay --units m -v ugent
Executing: mdadm --detail --scan --verbose -c partitions
Executing: udevsettle --timeout 10 && true
Executing: udevsettle --timeout 10 && true
Executing: udevsettle --timeout 10 && parted -s /dev/sda mklabel msdos
Executing: udevsettle --timeout 10 && parted -s /dev/sda mklabel msdos
Executing: udevsettle --timeout 10 && parted -s /dev/sda mkpart  
primary ext3 32256B 205631999B
Executing: udevsettle --timeout 10 && parted -s /dev/sda mkpart  
primary linux-swap 205632000B 2352430079B
Executing: udevsettle --timeout 10 && parted -s /dev/sda mkpart  
primary ext3 2352430080B 8636543999B
Executing: udevsettle --timeout 10 && parted -s /dev/sda mkpart  
extended  8636544000B 299433093119B
Executing: udevsettle --timeout 10 && parted -s /dev/sda mkpart  
logical  8636576256B 299433093119B
Executing: udevsettle --timeout 10 && parted -s /dev/sda set 1 boot on
Executing: udevsettle --timeout 10 && mkfs.ext3 -L boot /dev/sda1
Executing: udevsettle --timeout 10 && mkswap -L swap /dev/sda2
Executing: udevsettle --timeout 10 && mkfs.ext3 -L root /dev/sda3
Executing: udevsettle --timeout 10 && parted -s /dev/sda set 5 lvm on
Executing: udevsettle --timeout 10 && pvcreate /dev/sda5
Command udevsettle --timeout 10 && pvcreate /dev/sda5 had exit code 5
Executing: udevsettle --timeout 10 && vgextend ugent /dev/sda5
Command udevsettle --timeout 10 && vgextend ugent /dev/sda5 had exit code 5
Executing: udevsettle --timeout 10 && true
Executing: udevsettle --timeout 10 && vgchange -a y ugent
Executing: udevsettle --timeout 10 && lvcreate -n _home -L 2000 ugent
Command udevsettle --timeout 10 && lvcreate -n _home -L 2000 ugent had  
exit code 3
Executing: udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_home
Command udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_home had exit code 1
Executing: udevsettle --timeout 10 && lvcreate -n _var -L 20000 ugent
Command udevsettle --timeout 10 && lvcreate -n _var -L 20000 ugent had  
exit code 3
Executing: udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_var
Command udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_var had exit code 1
Executing: udevsettle --timeout 10 && lvcreate -n _tmp -L 1000 ugent
Command udevsettle --timeout 10 && lvcreate -n _tmp -L 1000 ugent had  
exit code 3
Executing: udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_tmp
Command udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_tmp had exit code 1
Executing: readlink -f /dev/ugent/_home
Command readlink -f /dev/ugent/_home had exit code 1
Use of uninitialized value $fstab_key[0] in scalar chomp at  
/usr/share/fai/setup-storage//Fstab.pm line 207.
Use of uninitialized value $fstab_key[0] in -b at  
/usr/share/fai/setup-storage//Fstab.pm line 210.
Failed to resolve /dev/ugent/_home
Starting setup-storage 1.0.3
Using config file: /var/lib/fai/config/disk_config/UGENT
Executing: parted -s /dev/sda unit TiB print
Executing: parted -s /dev/sda unit B print free
Executing: parted -s /dev/sda unit chs print free
Executing: vgdisplay --units m -s
Executing: vgdisplay --units m -v ugent
Executing: mdadm --detail --scan --verbose -c partitions
Executing: udevsettle --timeout 10 && true
Executing: udevsettle --timeout 10 && true
Executing: udevsettle --timeout 10 && parted -s /dev/sda mklabel msdos
Executing: udevsettle --timeout 10 && parted -s /dev/sda mklabel msdos
Executing: udevsettle --timeout 10 && parted -s /dev/sda mkpart  
primary ext3 32256B 205631999B
Executing: udevsettle --timeout 10 && parted -s /dev/sda mkpart  
primary linux-swap 205632000B 2352430079B
Executing: udevsettle --timeout 10 && parted -s /dev/sda mkpart  
primary ext3 2352430080B 8636543999B
Executing: udevsettle --timeout 10 && parted -s /dev/sda mkpart  
extended  8636544000B 299433093119B
Executing: udevsettle --timeout 10 && parted -s /dev/sda mkpart  
logical  8636576256B 299433093119B
Executing: udevsettle --timeout 10 && parted -s /dev/sda set 1 boot on
Executing: udevsettle --timeout 10 && mkfs.ext3 -L boot /dev/sda1
Executing: udevsettle --timeout 10 && mkswap -L swap /dev/sda2
Executing: udevsettle --timeout 10 && mkfs.ext3 -L root /dev/sda3
Executing: udevsettle --timeout 10 && parted -s /dev/sda set 5 lvm on
Executing: udevsettle --timeout 10 && pvcreate /dev/sda5
Command udevsettle --timeout 10 && pvcreate /dev/sda5 had exit code 5
Executing: udevsettle --timeout 10 && vgextend ugent /dev/sda5
Command udevsettle --timeout 10 && vgextend ugent /dev/sda5 had exit code 5
Executing: udevsettle --timeout 10 && true
Executing: udevsettle --timeout 10 && vgchange -a y ugent
Executing: udevsettle --timeout 10 && lvcreate -n _home -L 2000 ugent
Command udevsettle --timeout 10 && lvcreate -n _home -L 2000 ugent had  
exit code 3
Executing: udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_home
Command udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_home had exit code 1
Executing: udevsettle --timeout 10 && lvcreate -n _var -L 20000 ugent
Command udevsettle --timeout 10 && lvcreate -n _var -L 20000 ugent had  
exit code 3
Executing: udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_var
Command udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_var had exit code 1
Executing: udevsettle --timeout 10 && lvcreate -n _tmp -L 1000 ugent
Command udevsettle --timeout 10 && lvcreate -n _tmp -L 1000 ugent had  
exit code 3
Executing: udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_tmp
Command udevsettle --timeout 10 && mkfs.ext3  /dev/ugent/_tmp had exit code 1
Executing: readlink -f /dev/ugent/_home
Command readlink -f /dev/ugent/_home had exit code 1
Use of uninitialized value $fstab_key[0] in scalar chomp at  
/usr/share/fai/setup-storage//Fstab.pm line 207.
Use of uninitialized value $fstab_key[0] in -b at  
/usr/share/fai/setup-storage//Fstab.pm line 210.
Failed to resolve /dev/ugent/_home
Save log files via ssh to  
fai at ugmailsb.ugent.be:g48zf4j/install-20091127_075248
Partitioning tool did not create /tmp/fai/disk_var.sh file.
bash: no job control in this shell






-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert          Rudy.Gevaert at UGent.be          tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur  Direction ICT, Infrastructure dept.
Groep Systemen                     Systems group
Universiteit Gent                  Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --




More information about the linux-fai mailing list