Le jeudi 29 octobre 2009 à 16:09 +0100, Michael Tautschnig a écrit : > [...] > > > > > I have patched setup-storage to handle LVM on an entire disk like this: > > file: usr/share/fai/setup-storage/Parser.pm near lines 607 > > > > if ($dev =~ m/^disk(\d+)\.(\d+)/) { > > $dev = &FAI::make_device_name("/dev/" . $FAI::disks[ $1 > > - 1 ], $2); > > + } elsif ($dev =~ m/^disk(\d+)/) { > > + $dev = "/dev/" . $FAI::disks[ $1 - 1 ]; > > } else { > > $dev = "/dev/$dev"; > > } > > > > Hope this will (or has already) be(en) integrated in next release :) > > > > Did you actually test/use it like this? If so, I'll get it in in a few > moments. > > Best, > Michael >
However, this need to be fixed... Executing: udevsettle --timeout=10 && parted -s /dev/sdb set -1 lvm on Command udevsettle --timeout=10 && parted -s /dev/sdb set -1 lvm on had exit code 1 -- Mathieu Alorent Shell&Core Sophia-Antipolis AUSY Pour France Telecom – OPF/PORTAILS/DOP/HEBEX/SOPHIA Tél: 04 97 12 6226 malorent....@orange-ftgroup.com La signature de ce mail peut être vérifiée en installant les autorités de certifications CAcert suivantes : http://www.cacert.org/certs/root.crt http://www.cacert.org/certs/class3.crt
Starting setup-storage 1.0.5 Using config file: /mnt/disk_config/BACKUP 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: parted -s /dev/sdb unit TiB print Executing: parted -s /dev/sdb unit B print free Executing: parted -s /dev/sdb unit chs print free Finding all volume groups Executing: mdadm --detail --scan --verbose -c partitions Executing: udevsettle --timeout=10 && true Executing: udevsettle --timeout=10 && true Executing: udevsettle --timeout=10 && parted -s /dev/sdb mklabel msdos Executing: udevsettle --timeout=10 && parted -s /dev/sdb mklabel msdos 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 98703359B Executing: udevsettle --timeout=10 && parted -s /dev/sda mkpart primary linux-swap 98703360B 1167989759B Executing: udevsettle --timeout=10 && parted -s /dev/sda mkpart primary ext3 1167989760B 2237276159B Executing: udevsettle --timeout=10 && parted -s /dev/sda mkpart extended 2237276160B 2198995706879B Executing: udevsettle --timeout=10 && parted -s /dev/sda mkpart logical ext3 2237308416B 3808304639B Executing: udevsettle --timeout=10 && parted -s /dev/sda mkpart logical ext3 3808336896B 4877591039B Executing: udevsettle --timeout=10 && parted -s /dev/sda mkpart logical ext3 4877623296B 5412234239B Executing: udevsettle --timeout=10 && parted -s /dev/sda mkpart logical ext3 5412266496B 6481520639B Executing: udevsettle --timeout=10 && parted -s /dev/sda mkpart logical 6481552896B 2198995706879B Executing: udevsettle --timeout=10 && parted -s /dev/sda set 1 boot on Executing: udevsettle --timeout=10 && mkfs.ext3 /dev/sda1 Executing: udevsettle --timeout=10 && mkswap /dev/sda2 Executing: udevsettle --timeout=10 && mkfs.ext3 /dev/sda3 Executing: udevsettle --timeout=10 && mkfs.ext3 /dev/sda5 Executing: udevsettle --timeout=10 && mkfs.ext3 /dev/sda6 Executing: udevsettle --timeout=10 && mkfs.ext3 /dev/sda7 Executing: udevsettle --timeout=10 && mkfs.ext3 /dev/sda8 Executing: udevsettle --timeout=10 && parted -s /dev/sdb set -1 lvm on Command udevsettle --timeout=10 && parted -s /dev/sdb set -1 lvm on had exit code 1 Executing: udevsettle --timeout=10 && vgchange -an Executing: udevsettle --timeout=10 && pvremove -ff -y /dev/sdb Executing: udevsettle --timeout=10 && pvcreate /dev/sdb Executing: udevsettle --timeout=10 && vgchange -ay Executing: udevsettle --timeout=10 && vgcreate BACKUP /dev/sdb Executing: udevsettle --timeout=10 && vgchange -a y BACKUP Executing: udevsettle --timeout=10 && lvcreate -n BACKUP -L 1048576 BACKUP Executing: udevsettle --timeout=10 && mkfs.ext3 /dev/BACKUP/BACKUP Executing: udevsettle --timeout=10 && lvcreate -n BACKUP2 -L 11745423.6799991 BACKUP Executing: udevsettle --timeout=10 && mkfs.xfs -f /dev/BACKUP/BACKUP2 Executing: udevsettle --timeout=10 && parted -s /dev/sda set 9 lvm on Executing: udevsettle --timeout=10 && vgchange -an Executing: udevsettle --timeout=10 && pvremove -ff -y /dev/sda9 Executing: udevsettle --timeout=10 && pvcreate /dev/sda9 Executing: udevsettle --timeout=10 && vgchange -ay Executing: udevsettle --timeout=10 && vgcreate HEBEX /dev/sda9 Executing: udevsettle --timeout=10 && vgchange -a y HEBEX Executing: udevsettle --timeout=10 && lvcreate -n VAR_LOG_AMANDA -L 10240 HEBEX Executing: udevsettle --timeout=10 && mkfs.ext3 /dev/HEBEX/VAR_LOG_AMANDA Executing: udevsettle --timeout=10 && lvcreate -n VAR_LOG -L 3072 HEBEX Executing: udevsettle --timeout=10 && mkfs.ext3 /dev/HEBEX/VAR_LOG Executing: readlink -f /dev/BACKUP/BACKUP Executing: /lib/udev/vol_id -u /dev/mapper/BACKUP-BACKUP Executing: /lib/udev/vol_id -l /dev/mapper/BACKUP-BACKUP Command /lib/udev/vol_id -l /dev/mapper/BACKUP-BACKUP had exit code 3 Executing: readlink -f /dev/BACKUP/BACKUP2 Executing: /lib/udev/vol_id -u /dev/mapper/BACKUP-BACKUP2 Executing: /lib/udev/vol_id -l /dev/mapper/BACKUP-BACKUP2 Command /lib/udev/vol_id -l /dev/mapper/BACKUP-BACKUP2 had exit code 3 Executing: /lib/udev/vol_id -u /dev/sda6 Executing: /lib/udev/vol_id -l /dev/sda6 Command /lib/udev/vol_id -l /dev/sda6 had exit code 3 Executing: /lib/udev/vol_id -u /dev/sda3 Executing: /lib/udev/vol_id -l /dev/sda3 Command /lib/udev/vol_id -l /dev/sda3 had exit code 3 Executing: /lib/udev/vol_id -u /dev/sda7 Executing: /lib/udev/vol_id -l /dev/sda7 Command /lib/udev/vol_id -l /dev/sda7 had exit code 3 Executing: /lib/udev/vol_id -u /dev/sda2 Executing: /lib/udev/vol_id -l /dev/sda2 Command /lib/udev/vol_id -l /dev/sda2 had exit code 3 Executing: /lib/udev/vol_id -u /dev/sda8 Executing: /lib/udev/vol_id -l /dev/sda8 Command /lib/udev/vol_id -l /dev/sda8 had exit code 3 Executing: /lib/udev/vol_id -u /dev/sda1 Executing: /lib/udev/vol_id -l /dev/sda1 Command /lib/udev/vol_id -l /dev/sda1 had exit code 3 Executing: /lib/udev/vol_id -u /dev/sda5 Executing: /lib/udev/vol_id -l /dev/sda5 Command /lib/udev/vol_id -l /dev/sda5 had exit code 3 Executing: readlink -f /dev/HEBEX/VAR_LOG_AMANDA Executing: /lib/udev/vol_id -u /dev/mapper/HEBEX-VAR_LOG_AMANDA Executing: /lib/udev/vol_id -l /dev/mapper/HEBEX-VAR_LOG_AMANDA Command /lib/udev/vol_id -l /dev/mapper/HEBEX-VAR_LOG_AMANDA had exit code 3 Executing: readlink -f /dev/HEBEX/VAR_LOG Executing: /lib/udev/vol_id -u /dev/mapper/HEBEX-VAR_LOG Executing: /lib/udev/vol_id -l /dev/mapper/HEBEX-VAR_LOG Command /lib/udev/vol_id -l /dev/mapper/HEBEX-VAR_LOG had exit code 3
smime.p7s
Description: S/MIME cryptographic signature