Re: what's the correct way to declare LVM on entire disk ?
Hi Mât, [...] > > Unfortunately, there's still something wrong. > Could you re-try with the same config but updating to 4.0~beta2+experimental48? If it does work, could you send debug logs nevertheless? I'm trying to cleanup a bit of the dependency mess between commands I've created over time. Thanks a lot, Michael pgpKm4HhgsM31.pgp Description: PGP signature
Re: setup-storage fails when preserving LVM volume
Hi Nicolas, First of all thank you very much for quickly sending the logs! [...] > > [...] > Use of uninitialized value $p in concatenation (.) or string at > /usr/share/fai/setup-storage//Init.pm line 289. > /dev/sda2 will be preserved > vg0/local will be preserved > [...] > (CMD) parted -s /dev/sda mklabel msdos 1> /tmp/A_p3dpsLFC 2> /tmp/ZQLJLH5omp > Executing: parted -s /dev/sda mklabel msdos > Command had non-zero exit code > (STDOUT) Error: Partition(s) 2 on /dev/sda have been written, but we > have been unable to inform the kernel of the change, probably > because it/they are in use. As a result, the old partition(s) will > remain in use. You should reboot now before making further changes. > [...] I hope to have addressed all the above problems in 4.0~beta2+experimental48. Could you please give that one another try and report back? Could you please even send debug logs in case it works fine? As said in the other thread just moments ago, I'm trying to to a bit of cleanup work as well. Thanks a lot, Michael pgpPy4DujZUAH.pgp Description: PGP signature
Re: Software RAID + LVM2
Hi Fredrik, [...] > >It seems there > >is some bug that needs fixing, and I'm currently extremely busy with > >real-life, > >with little hope of finding time for finding sufficient time before > >Christmas. > >Would that still be an acceptable deadline? Would you also be prepared to do > >some early testing of a bugfixed version? I guess I'll also need testers... > As long as you can stall the Squeeze release. ;) > Naw, just kiddin'. I would gladly do some testing, I have at least > one test client system that I install several times a day to see > that my tuning and changes work properly. We are currently able to > install a fully operational 32bit and 64bit developer environment > running both Lenny and Squeeze at close to fifteen minutes, with > Squeeze + FAI 3.4.5 in our test environment, with this RAID + LVM2 > setup, but haven't managed to get the preservation bit working. > I'm not used to Perl, but point me in the right direction and we'll > probably figure this out. > Could you give 4.0~beta2+experimental48 a try on this test system of yours? I've already asked Mât and Nicolas to test this version as you might have just seen, but the more testers we get, the better :-) Thanks a lot, Michael pgpgAZNqv1CUD.pgp Description: PGP signature
Re: what's the correct way to declare LVM on entire disk ?
Hi Michael ! Le vendredi 17 décembre 2010 à 09:19 +0100, Michael Tautschnig a écrit : > Could you re-try with the same config but updating to > 4.0~beta2+experimental48? > If it does work, could you send debug logs nevertheless? I'm trying to > cleanup a > bit of the dependency mess between commands I've created over time. I've just tested 4.0~beta2+experimental48, and this has solved the "LVM on entire disk" issue :) Great work ! (I'll send you the output logs by PM as requested.) Bests Mât
Re: setup-storage fails when preserving LVM volume
Le 17/12/2010 09:23, Michael Tautschnig a écrit : [...] Use of uninitialized value $p in concatenation (.) or string at /usr/share/fai/setup-storage//Init.pm line 289. /dev/sda2 will be preserved vg0/local will be preserved [...] (CMD) parted -s /dev/sda mklabel msdos 1> /tmp/A_p3dpsLFC 2> /tmp/ZQLJLH5omp Executing: parted -s /dev/sda mklabel msdos Command had non-zero exit code (STDOUT) Error: Partition(s) 2 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. [...] I hope to have addressed all the above problems in 4.0~beta2+experimental48. Could you please give that one another try and report back? Could you please even send debug logs in case it works fine? As said in the other thread just moments ago, I'm trying to to a bit of cleanup work as well. This new version does fix the issue, thanks. I send you the format.log in a private mail. -- Nicolas
Re: setup-storage fails when preserving LVM volume
Hi Nicolas, Mika, [...] > > This new version does fix the issue, thanks. I send you the > format.log in a private mail. > Cool, thanks a lot, and thanks for the logs as well!! Mika, it seems we have a proper fix for #606113 - I'll see what needs to merged into trunk and then you could just cherry-pick for 3.4.6. I'll try to get that done in the next hours as I'll be offline until Tuesday. Best regards and many thanks everyone, Michael pgpCmcSCn7slj.pgp Description: PGP signature
Re: setup-storage fails when preserving LVM volume
* Michael Tautschnig [Fri Dec 17, 2010 at 11:41:12AM +0100]: > > This new version does fix the issue, thanks. I send you the > > format.log in a private mail. > Cool, thanks a lot, and thanks for the logs as well!! > Mika, it seems we have a proper fix for #606113 - I'll see what needs to > merged > into trunk and then you could just cherry-pick for 3.4.6. I'll try to get that > done in the next hours as I'll be offline until Tuesday. Excellent, thanks. Just let me know which revisions from trunk you'd like to see in 3.4.6 and I'll take care of it. Thanks! regards, -mika- signature.asc Description: Digital signature
Re: setup-storage fails when preserving LVM volume
I hope to have addressed all the above problems in 4.0~beta2+experimental48. Could you please give that one another try and report back? Could you please even send debug logs in case it works fine? As said in the other thread just moments ago, I'm trying to to a bit of cleanup work as well. This new version does fix the issue, thanks. I send you the format.log in a private mail. Well well, I finally happen to have another problem with this new version, setup-storage prints the following sentence and then quits quickly: Executing: mdadm --examine --scan --verbose -c partitions Previous partitions overflow begin of preserved partition /dev/sda2 I tried several values for the /local volume, but always get the same message. Here's the debug format.log, which happens to be pretty short. -- Nicolas Starting setup-storage 1.3+exp disklist: sda Using config file: /var/lib/fai/config/disk_config/auzon Input was: # Configuration LVM standard : les partitions sont extensibles disk_config disk1 primary /boot 512 ext3 rw primary - 32000- - - disk_config lvm fstabkey:uuid preserve_reinstall:vg0-local #disk_config lvm fstabkey:uuid vg vg0 disk1.2 vg0-swapswap2GiBswapsw vg0-root/ 1GiBext3rw vg0-var /var4GiBext3rw vg0-usr /usr8GiBext3rw vg0-opt /opt2GiBext3rw vg0-local /local 20GiB- ext3rw (CMD) parted -s /dev/sda unit TiB print 1> /tmp/VoENpO9GP9 2> /tmp/iAyirJMaGs Executing: parted -s /dev/sda unit TiB print (STDOUT) Model: ATA WDC WD1600AAJS-6 (scsi) (STDOUT) Disk /dev/sda: 0.15TiB (STDOUT) Sector size (logical/physical): 512B/512B (STDOUT) Partition Table: msdos (STDOUT) (STDOUT) Number StartEnd Size Type File system Flags (STDOUT) 1 0.00TiB 0.00TiB 0.00TiB primary ext3 boot (STDOUT) 2 0.00TiB 0.15TiB 0.15TiB primary lvm (STDOUT) (CMD) parted -s /dev/sda unit B print free 1> /tmp/eKm1feG9g2 2> /tmp/QoiYnqPQxE Executing: parted -s /dev/sda unit B print free (STDOUT) Model: ATA WDC WD1600AAJS-6 (scsi) (STDOUT) Disk /dev/sda: 160041885696B (STDOUT) Sector size (logical/physical): 512B/512B (STDOUT) Partition Table: msdos (STDOUT) (STDOUT) Number Start EndSize Type File system Flags (STDOUT) 1 32256B 534643199B 534610944B primary ext3 boot (STDOUT) 2 534643200B 160039272959B 159504629760B primary lvm (STDOUT) 160039272960B 160041885695B 2612736BFree Space (STDOUT) (CMD) parted -s /dev/sda unit chs print free 1> /tmp/ECQg6UZJU_ 2> /tmp/P1410qoz1z Executing: parted -s /dev/sda unit chs print free (STDOUT) Model: ATA WDC WD1600AAJS-6 (scsi) (STDOUT) Disk /dev/sda: 19457,80,62 (STDOUT) Sector size (logical/physical): 512B/512B (STDOUT) BIOS cylinder,head,sector geometry: 19457,255,63. Each cylinder is 8225kB. (STDOUT) Partition Table: msdos (STDOUT) (STDOUT) Number Start End Type File system Flags (STDOUT) 1 0,1,0 64,254,62 primary ext3 boot (STDOUT) 2 65,0,0 19456,254,62 primary lvm (STDOUT) 19457,0,0 19457,80,62Free Space (STDOUT) Finding all volume groups Finding volume group "vg0" Creating directory "/etc/lvm/archive" Archiving volume group "vg0" metadata (seqno 11). Creating directory "/etc/lvm/backup" Creating volume group backup "/etc/lvm/backup/vg0" (seqno 11). Finding all volume groups Finding volume group "vg0" Finding all volume groups Finding volume group "vg0" Finding all volume groups Finding volume group "vg0" (CMD) mdadm --examine --scan --verbose -c partitions 1> /tmp/JPF0vBUYns 2> /tmp/jxNtkFqh_Z Executing: mdadm --examine --scan --verbose -c partitions Previous partitions overflow begin of preserved partition /dev/sda2 Current disk layout $VAR1 = { '/dev/sda' => { 'bios_heads' => '255', 'disklabel' => 'msdos', 'partitions' => { '1' => { 'count_byte' => '534610944', 'filesystem' => 'ext3', 'begin_byte' => '32256', 'is_extended' => 0, 'end_byte' => '534643199' }, '2' => { 'count_byte' => '159504629760', 'filesystem' => '', 'begin_byte' => '534643200',
Re: setup-storage fails when preserving LVM volume
Hi Nicolas, [...] > > Well well, I finally happen to have another problem with this new > version, setup-storage prints the following sentence and then quits > quickly: > > Executing: mdadm --examine --scan --verbose -c partitions > Previous partitions overflow begin of preserved partition /dev/sda2 > > I tried several values for the /local volume, but always get the > same message. Here's the debug format.log, which happens to be > pretty short. > [...] There seems to be some problem with the size or position of your /boot partition. It might be caused by a change in alignment, which may even have introduced a bug!? Could you please change the size of /boot to 511, report back and, if it works, also do yet another run and send the debug logs of both runs? Thanks a lot, Michael pgpkjO5ht80u9.pgp Description: PGP signature
Re: Software RAID + LVM2
Michael Tautschnig wrote: Could you give 4.0~beta2+experimental48 a try on this test system of yours? I've already asked Mât and Nicolas to test this version as you might have just seen, but the more testers we get, the better :-) I'll look at it monday, I'll make a clone of our current system to make tests on. Regards -- Fredrik <>
fai-cd for Ubuntu available?
Hi, I like to start with fai and ubuntu. Has anyone a fai-cd that installs Ubuntu 10.10 or 10.04? Or a proven way to build it? regards Andreas
Re: setup-storage fails when preserving LVM volume
Hello Michael, Executing: mdadm --examine --scan --verbose -c partitions Previous partitions overflow begin of preserved partition /dev/sda2 I tried several values for the /local volume, but always get the same message. Here's the debug format.log, which happens to be pretty short. [...] There seems to be some problem with the size or position of your /boot partition. It might be caused by a change in alignment, which may even have introduced a bug!? Could you please change the size of /boot to 511, report back and, if it works, also do yet another run and send the debug logs of both runs? The /boot partition has be built by FAI 3.3.5 (setup-storage 1.2.1), asking for a size of 512 like I still do now. The parted command was the following: parted -s /dev/sda mkpart primary ext3 32256B 534643199B The installation does not work better after setting the size of /boot to 511, the log is exactly the same as with 512. Setting the size to 480 makes it work, though, the log is joined. I have also tried to preserve the existing /boot partition, and this has worked fine: disk_config disk1 preserve_lazy:1 always_format:1 primary/boot 0ext3rw [...] -- Nicolas format.log.bz2 Description: application/bzip
Re: setup-storage fails when preserving LVM volume
[...] > > The /boot partition has be built by FAI 3.3.5 (setup-storage 1.2.1), > asking for a size of 512 like I still do now. The parted command was > the following: > > parted -s /dev/sda mkpart primary ext3 32256B 534643199B > Oh yes, since then (at least in experimental builds) the cylinder-alignment was dropped, which causes the following change in behaviour: Previously, sizes were rounded downwards to have partitions end at cylinder boundaries. What you actually got with the above command was a partition with a size of 509.844 MiB; to retain precisely that size use 522081K as size specifier; otherwise go for 509, which will give you a gap of approximately 0.8MB. > The installation does not work better after setting the size of > /boot to 511, the log is exactly the same as with 512. Setting the > size to 480 makes it work, though, the log is joined. > So, well, 511 just was still too big :-) [...] Best regards, Michael pgpSLjB1nZakZ.pgp Description: PGP signature