| 00:35 DavidDreezer | I came up with a workaround |
| 00:35 DavidDreezer | if [ -s "$LOGDIR/additional.var" ]; then |
| 00:35 DavidDreezer | . $LOGDIR/additional.var |
| 00:35 DavidDreezer | fi |
| 00:35 DavidDreezer | in the top of the 50 script |
| 00:35 DavidDreezer | crude, but effective |
| DavidDreezer (Adium@c-71-227-156-146.hsd1.wa.comcast.net) left #fai. |
| pav5088 (~Mark@120.153.210.32) joined #fai. |
| pav5088 (~Mark@120.153.210.32) left irc: Ping timeout: 480 seconds |
| ErKa (~keryell@keryell.pck.nerim.net) joined #fai. |
| sep_oslo (~sep@87.238.46.238) left irc: Quit: Leaving |
| al (d@niel.cx) left irc: Ping timeout: 480 seconds |
| al (d@niel.cx) joined #fai. |
| 13:25 alekibango | i tried daily squeeze iso and installed it on the raid created by fai. this workde well.... But i still fail installing FAI system using grub-pc on raid1 with fai 3.4.5 on squeeze... |
| 13:32 mt | alekibango, could try manually executing grub commands to install it? |
| 13:32 alekibango | i did once, but it failed to boot :) |
| 13:33 alekibango | will try now again |
| 13:33 mt | so just let it install and don't reboot at the end |
| 13:33 mt | first see which errors are shown during execution of scripts |
| 13:33 mt | and then let's do the manual tries |
| 13:33 alekibango | mt: i already pasted those yesterday imho |
| 13:33 alekibango | its 'unknown device' |
| 13:34 alekibango | or somthing like that |
| 13:34 mt | yes, ok |
| 13:34 alekibango | http://pastebin.com/uW2dw195 |
| 13:34 mt | have you already got to the point that the install is complete (but probably broken)? |
| 13:34 alekibango | you mean end of fai -- pres [enter] to reboot? |
| 13:35 mt | yep |
| 13:35 mt | but please don't reboot and get a shell instead |
| 13:35 mt | I suppose chroot /target grub-mkdevicemap --no-floppy will work fine |
| 13:36 mt | please paste /tmp/fai/disk_var.sh |
| Action: mt is hoping to finally have a confirmed-to-work solution for sw-raid+grub-pc |
| Sp4rKy_ (~Sp4rKy@rennes1.dunnewind.net) left irc: Quit: Changing server |
| 13:56 mt | alekibango, I'll go and prepare lunch; please be patient in case I don't reply rightaway |
| 14:12 alekibango | k' i was talkingto jehova whitnesses for 30 minutes.... poor souls they will not sleep tonight... |
| 14:26 alekibango | mt are u here? |
| 14:39 mt | alekibango, back now |
| siggg (~jean@tra78-5-88-172-128-32.fbx.proxad.net) joined #fai. |
| justleen (~leen@s5591f74f.adsl.wanadoo.nl) joined #fai. |
| justleen (~leen@s5591f74f.adsl.wanadoo.nl) left irc: Quit: Leaving. |
| DavidDreezer (~Adium@c-71-227-156-146.hsd1.wa.comcast.net) joined #fai. |
| 21:01 DavidDreezer | MT, are you there by chance? |
| 21:01 mt | yes :-) |
| 21:01 DavidDreezer | Good afternoon |
| 21:02 DavidDreezer | it is afternoon there, no? |
| 21:02 mt | well, for me it's rather evening (10pm) |
| 21:02 DavidDreezer | oh, well, good evening then |
| 21:02 DavidDreezer | thank you for the email that you sent to me, I appreciate it. |
| 21:02 mt | you're welcome! |
| 21:02 DavidDreezer | I got it working! |
| 21:02 mt | sorry for leaving you all alone on this |
| 21:03 mt | so how did you fix it? |
| 21:03 DavidDreezer | I have an end to end trial run this afternoon |
| 21:03 alekibango | mt i wrote some debian bug. about the grub |
| 21:03 DavidDreezer | for today I put this in the head of the 50 script |
| 21:03 DavidDreezer | if [ -s "$LOGDIR/additional.var" ]; then |
| 21:03 DavidDreezer | . $LOGDIR/additional.var |
| 21:03 DavidDreezer | fi |
| 21:03 mt | ok |
| 21:03 DavidDreezer | Ultimately, Micheal, I will merge my 45 and the 50 into on script |
| 21:03 DavidDreezer | so they will be in the same shell |
| 21:04 mt | but then, really, renaming the 45 script to 45-mac.source should do the trick |
| 21:04 DavidDreezer | oh, you're right |
| 21:04 mt | and merging will, of course, do as well :-) |
| 21:04 mt | alekibango, which bug# is it? |
| 21:04 alekibango | do not know yet :ú |
| 21:04 DavidDreezer | I prefer to keep my modifications in a different script for future upgrade purposes, making it into a .source wouldbe excellent |
| 21:05 alekibango | and i forgot to include some info... but the core is there |
| 21:05 DavidDreezer | now, I have an end to end FAI install on software raid. |
| 21:05 mt | I believe this should work like a charme, unless fai-class is buggy |
| 21:05 mt | oh, software raid |
| 21:05 mt | cool |
| 21:05 mt | alekibango just had problems with his sw raid :-) |
| 21:05 DavidDreezer | well, so I tried the 10-setup in ~45 as requested |
| 21:06 DavidDreezer | and it did not work :( |
| 21:06 DavidDreezer | there was no error logged |
| 21:06 mt | yes, kind of expected |
| 21:06 mt | alekibango and me debugged this all afternoon |
| 21:06 DavidDreezer | however, upon booting the machine, error 15 then recovery prompt |
| 21:06 DavidDreezer | ah! |
| 21:06 mt | we believe to have found a working solution |
| 21:06 mt | it would actually be great if you could try to confirm that |
| 21:07 DavidDreezer | i substuted the 10-setup that I had posted and that worked, but of course that is not a scalable solution |
| 21:07 DavidDreezer | i would love to |
| 21:07 mt | alekibango, may I copy the link to the pastebin in here? |
| 21:07 alekibango | y |
| 21:07 mt | for the working 10-setup? |
| 21:07 alekibango | np, dont ask all the time :) you are welcome |
| 21:07 DavidDreezer | haha :) |
| 21:08 mt | http://pastebin.com/4qQWGXec |
| 21:08 mt | I believe it can actually be simplified |
| 21:08 alekibango | DavidDreezer: he asked me like this 10 times today already :) |
| 21:09 mt | bah, i've been fiddling with your system |
| 21:09 DavidDreezer | i'm comparing that to mine Michael. |
| 21:09 DavidDreezer | hmm |
| 21:09 mt | you can, most probably, remove the mdraid |
| 21:09 mt | an essential part is the sed line |
| 21:09 alekibango | grub guys thought i should use grub from sources |
| 21:09 alekibango | to test it |
| 21:10 mt | omg |
| 21:10 mt | ok, sure, that's kind of expected |
| 21:10 alekibango | well, there was only 1 of them alive and he was not a grub devel |
| 21:10 DavidDreezer | is grub-setup required? |
| 21:10 alekibango | seems like weekend |
| 21:11 mt | most probably it suffices if you put that on a running system, compile it, and run the grub-probe command to see what you get |
| 21:11 mt | grub-setup? |
| 21:11 alekibango | DavidDreezer: grub-install calls grub-setup |
| 21:11 mt | thx |
| 21:11 alekibango | if you use probes and grub setup you can avoid grub-install bugs |
| 21:11 alekibango | :D |
| 21:12 mt | who says that? |
| 21:12 alekibango | well, just me, making fun a bit |
| 21:12 alekibango | grub-install /dev/md0 should be the way to use it |
| 21:12 mt | could easily be that this is true :-) |
| 21:12 DavidDreezer | I also follow it with $ROOTCMD update-initramfs -k all -u however I don't think it to be necessary |
| 21:13 mt | not for grub, no |
| 21:13 mt | but it might be necessary for other reasons |
| 21:13 DavidDreezer | let me try this script, it only takes but a minute for me to copy/paste it into my server then reboot my client. |
| 21:13 mt | if you get in trouble after grub has successfully loaded the kernel |
| 21:14 alekibango | mt: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606035 |
| 21:14 mt | the update-initramfs could be necessary if the new kernel was installed before mdadm was present, then the initrd lacks mdadm support and hence your system might fail |
| 21:14 mt | but grub will work nicely without the update-initramfs |
| 21:14 mt | cool, thx |
| 21:15 DavidDreezer | ok, script installed, let me reboot my client and we shall see what we see. |
| 21:15 alekibango | mt: look near end |
| 21:15 alekibango | heh i used czech locales, darn |
| 21:16 mt | well, I guess people can translate that |
| 21:17 mt | even though it might be nice to post a follow-up with that last bit translated |
| 21:17 mt | it might be easier for grub-devs to grep through the code |
| 21:17 mt | so actually grub-setup must be broken!? |
| 21:17 mt | btw, could you also do a run using (md0) and post just the last bit |
| 21:18 alekibango | mt: its explained in text... |
| 21:18 alekibango | that there is no /dev/md/0 |
| 21:18 mt | would that mean that (md0) is passed on to grub-setup? |
| 21:18 alekibango | mt: no. (md/0) is passed |
| 21:18 alekibango | and it doesnt work |
| 21:18 alekibango | (md0) should be passed - works |
| 21:18 mt | explained, yes, but the very precise wording helps so much when using grep |
| 21:18 mt | :-) |
| 21:19 alekibango | i believe debian should upgrade its bug reporting system |
| 21:19 alekibango | launchpad is so cool compared to bug reporting in debian |
| 21:20 alekibango | (still it sucks inside) |
| 21:20 mt | really? |
| 21:20 alekibango | well, installing it is pain |
| 21:20 mt | I never quite got how to use launchpad |
| 21:20 alekibango | it touches files all over the machine |
| 21:20 mt | the debian BTS is so simple :-) |
| 21:20 alekibango | mt: 1) i hate mails. i have almost 40k unread mails in my box |
| 21:20 alekibango | 2) i hate sending mails |
| 21:21 DavidDreezer | OMG! |
| 21:21 DavidDreezer | lol, 40k! |
| 21:21 alekibango | and its all based on mails! |
| 21:21 mt | ah, ok, so launchpad allows web bug filing? |
| 21:21 alekibango | LD |
| 21:21 alekibango | :)) |
| 21:21 alekibango | mt: right |
| 21:21 mt | well, ok, so /me is just different |
| 21:21 alekibango | i still read mails in mutt btw :) |
| 21:21 mt | I strictly prefer email (as you already noticed...) |
| 21:21 mt | so do I |
| 21:22 alekibango | i hate even administering mail servers... :) its wrongly created service, should be memoryholed |
| 21:23 DavidDreezer | I don't have the luxury of telling my customers "no email" :( |
| 21:24 mt | for me, email mostly is a form of instant messaging |
| 21:24 mt | alekibango, is grub-setup a script or compiled code? |
| 21:25 alekibango | compiled |
| 21:25 mt | ok, then I'll leave this to grub devs to debug :-) |
| 21:26 DavidDreezer | ok, at faiend with this script, let me check for errors then reboot |
| 21:26 mt | even though it would probably be considered a nice service to the grub-devs if you could indeed compile their latest version and probably just try calling grub-setup |
| 21:26 mt | no need to install anything, just compile |
| 21:26 alekibango | we can even do this in live system |
| 21:26 DavidDreezer | this version errored |
| 21:26 alekibango | if aufs will be able to keep it ok |
| 21:26 alekibango | :D |
| 21:26 DavidDreezer | fai.log:GRUB_PC/10-setup FAILED with exit code 1. |
| 21:26 DavidDreezer | shell.log:grub-mkimage: error: cannot stat /usr/lib/grub/i386-pc/mdraid.mod |
| 21:26 DavidDreezer | shell.log:++ error=1 |
| 21:26 DavidDreezer | shell.log:GRUB_PC/10-setup FAILED with exit code 1. |
| 21:26 DavidDreezer | status.log:GRUB_PC/10-setup FAILED with exit code 1. |
| 21:27 mt | DavidDreezer, which version of grub are you using |
| 21:27 DavidDreezer | grub2 |
| 21:27 mt | ah, you're running lenny |
| 21:27 mt | is that right |
| 21:27 mt | ? |
| 21:27 DavidDreezer | this server is open to the world, by the way, if you want access to it |
| 21:27 mt | that would make the second one today :-) |
| 21:28 alekibango | :) |
| 21:28 alekibango | DavidDreezer: which grub2? |
| 21:28 mt | well, maybe, yes |
| 21:28 mt | got an IP for me? |
| 21:28 alekibango | which version of grub-pc ? last squeeze ? |
| 21:28 DavidDreezer | our office is not, of course, but my house, i have opened so that I can reach it from the office |
| 21:28 DavidDreezer | root@faiserver:/var/log/fai/db099.dh01.groupee-inc.net/last# dpkg --list | grep grub |
| 21:28 DavidDreezer | ii grub 0.97-47lenny2 GRand Unified Bootloader (Legacy version) |
| 21:28 DavidDreezer | ii grub-common 1.96+20080724-16 GRand Unified Bootloader, version 2 (common files) |
| 21:28 alekibango | 1.96+20080724-16 - this is somewhat old |
| 21:29 alekibango | :) |
| 21:29 mt | well, maybe it's not quite as broken as yours :-) |
| 21:29 DavidDreezer | i did an apt-get update, upgrade yesterday |
| 21:29 alekibango | is it lenny? |
| 21:29 DavidDreezer | yes |
| 21:29 alekibango | ah :) this script might need to have different solution for lenny |
| 21:29 alekibango | :) |
| 21:30 mt | I think all it takes should be dropping the mdraid |
| 21:30 mt | DavidDreezer, could you just go into a console (instead of rebooting) |
| 21:30 DavidDreezer | i'd been unable to get sw raid working under fai 3.x or old grub |
| 21:30 DavidDreezer | certainly can |
| 21:30 DavidDreezer | it is at a consoile now |
| 21:30 mt | and type the commands one-by one |
| 21:30 mt | so well, |
| 21:30 mt | export ROOTCMD="chroot /target" |
| 21:31 mt | so you can copy them off from the pastebin or from the script |
| 21:31 mt | # |
| 21:31 mt | $ROOTCMD grub-mkdevicemap --no-floppy |
| 21:31 mt | well, I'll do the copying in here (with slight modifications) |
| 21:32 mt | $ROOTCMD grub-probe -tdrive -d /dev/md0 |
| 21:32 DavidDreezer | so run first |
| 21:32 DavidDreezer | $ROOTCMD grub-mkdevicemap --no-floppy |
| 21:32 mt | (assuming that BOOT_DEVICE is /dev/md0) |
| 21:32 DavidDreezer | yes? |
| 21:32 mt | yes |
| 21:32 DavidDreezer | it is |
| 21:32 DavidDreezer | or should be |
| 21:32 mt | cat /tmp/fai/disk_var.sh |
| 21:32 mt | should tell |
| 21:32 DavidDreezer | SWAPLIST=${SWAPLIST:-"/dev/md1"} |
| 21:32 DavidDreezer | BOOT_DEVICE=${BOOT_DEVICE:-"/dev/md0"} |
| 21:32 DavidDreezer | ROOT_PARTITION=${ROOT_PARTITION:-/dev/md2} |
| 21:33 mt | should be fine |
| 21:33 mt | what does grub-probe say? |
| 21:33 DavidDreezer | when i ran ROOTCMD grub-mkdevicemap no-floppy i got the prompt, with no response of any kind |
| 21:33 DavidDreezer | just back to prompt |
| 21:33 mt | that's fine |
| 21:34 mt | no news is good news :-) |
| 21:34 mt | but grub-probe should give some news :-) |
| 21:34 DavidDreezer | db099:~# $ROOTCMD grub-probe -tdrive -d /dev/md0 |
| 21:34 DavidDreezer | (md0) |
| 21:34 DavidDreezer | db099:~# |
| 21:34 DavidDreezer | which is correct, no? |
| 21:35 mt | alekibango, this "old" version is much better than yours :-) |
| 21:35 mt | yes, that's great |
| 21:35 mt | $ROOTCMD grub-install --no-floppy --modules="lvm raid" "(md0)" |
| 21:35 mt | would be the next step |
| 21:35 DavidDreezer | oh, wait though |
| 21:36 mt | ? |
| 21:36 DavidDreezer | this is the script |
| 21:36 DavidDreezer | $ROOTCMD grub-install --no-floppy --modules="lvm raid mdraid" "$GROOT" |
| 21:36 DavidDreezer | and the error was could not find module mdraid |
| 21:36 mt | yes, but I believe mdraid isn't necessary |
| 21:36 mt | so use the above command |
| 21:36 DavidDreezer | shell.log:grub-mkimage: error: cannot stat /usr/lib/grub/i386-pc/mdraid.mod |
| 21:37 mt | without mdraid |
| 21:37 DavidDreezer | i think you're right |
| 21:37 DavidDreezer | it appears to have been successful |
| 21:37 DavidDreezer | db099:~# $ROOTCMD grub-install --no-floppy --modules="lvm raid" "(md0)" |
| 21:37 DavidDreezer | Installation finished. No error reported. |
| 21:37 DavidDreezer | This is the contents of the device map /boot/grub/device.map. |
| 21:37 DavidDreezer | Check if this is correct or not. If any of the lines is incorrect, |
| 21:37 DavidDreezer | fix it and re-run the script `grub-install'. |
| 21:37 DavidDreezer | (hd0)/dev/hda |
| 21:37 DavidDreezer | (hd1)/dev/hdb |
| 21:37 mt | sounds good |
| 21:38 DavidDreezer | shall I try to reboot? |
| 21:38 mt | nope |
| 21:38 mt | $ROOTCMD update-grub |
| 21:38 DavidDreezer | oops |
| 21:38 mt | you already did? |
| 21:38 DavidDreezer | no |
| 21:38 mt | ok :-) |
| 21:38 DavidDreezer | oops as in "i forgot that step" |
| 21:38 mt | it wouldn't have been too bad |
| 21:38 DavidDreezer | success |
| 21:38 DavidDreezer | db099:~# $ROOTCMD update-grub |
| 21:38 DavidDreezer | Updating /boot/grub/grub.cfg ... |
| 21:38 DavidDreezer | Found linux image: /boot/vmlinuz-2.6.26-2-686-bigmem |
| 21:38 DavidDreezer | Found initrd image: /boot/initrd.img-2.6.26-2-686-bigmem |
| 21:38 DavidDreezer | Found memtest86+ image: /boot/memtest86+.bin |
| 21:38 DavidDreezer | done |
| 21:38 mt | just no menu of any kind |
| 21:39 mt | well, then please give it a try ... |
| 21:39 DavidDreezer | will do, cross fingers |
| 21:39 mt | with alekibango we afterwards even verified that corrupting either of the two disks still left the system in a bootable state |
| 21:41 DavidDreezer | grub rescue mode. :( |
| 21:41 DavidDreezer | is this due to my partition topography? |
| 21:42 mt | hmm |
| 21:43 mt | can you do "ls" |
| 21:44 DavidDreezer | yes, i have to bring my laptop down to where i have the computer physically. I might disconnect momentarily |
| 21:44 mt | I'll learn about rescue mode meanwhile |
| 21:45 DavidDreezer | ls works. i have all the hd0 and 1 partitions. no md of course |
| 21:46 mt | grub manual says |
| 21:47 mt | cat /grub/grub.cfg |
| 21:47 DavidDreezer | no such disc |
| 21:48 mt | type "help" |
| 21:48 mt | is there something about "root" |
| 21:48 DavidDreezer | makes some sense. grub is on md0, and we have no md0 yet, no? |
| 21:48 mt | I believe it *should* have mapped that |
| 21:48 DavidDreezer | i can try root (hd0,1) |
| 21:48 mt | but that might be a wrong assumption |
| 21:48 mt | pls do |
| Action: mt thinks he might understand |
| 21:49 DavidDreezer | dine. (hd0,1): Filesystem is ext2 |
| 21:49 DavidDreezer | now i need a boot line, i htink |
| 21:50 mt | how long does a reinstall take? |
| 21:51 DavidDreezer | 5 minutes |
| 21:51 alekibango | my takes some 300 seconds |
| 21:51 DavidDreezer | I can do them all day |
| 21:51 mt | might be the quicker option then :-) |
| 21:51 DavidDreezer | works for me |
| 21:51 mt | so what am I after: |
| 21:52 mt | grub-pc in lenny seems not to have properly working support for raid |
| 21:52 mt | so must be installed in each device separately |
| 21:53 mt | grub-install line must be run with /dev/hda1, /dev/hdb1 |
| 21:53 mt | (two times) |
| 21:53 DavidDreezer | well, but this works: |
| 21:53 DavidDreezer | $ROOTCMD /usr/bin/grub-mkimage --output=/boot/grub/core.img ext2 pc biosdisk raid |
| 21:53 DavidDreezer | $ROOTCMD /usr/sbin/grub-install '(md0)' |
| 21:53 DavidDreezer | $ROOTCMD /usr/sbin/grub-setup '(md0)' |
| 21:53 DavidDreezer | $ROOTCMD /usr/sbin/update-grub |
| 21:53 DavidDreezer | $ROOTCMD update-initramfs -k all -u |
| 21:53 DavidDreezer | though it is not to the device |
| 21:54 DavidDreezer | i've not got it to work installing to the device |
| 21:54 mt | hmm |
| 21:54 DavidDreezer | i've tried a for look installing to each device in device map |
| 21:54 DavidDreezer | always gives an error 15 and rescue boot |
| 21:54 DavidDreezer | loop* |
| 21:54 mt | meaning this fully works including a booting system? |
| 21:55 DavidDreezer | oh yes |
| 21:55 DavidDreezer | remember I said wit went end to end this morning? |
| 21:55 DavidDreezer | that was with the script i just quoted |
| 21:55 DavidDreezer | however! |
| 21:55 DavidDreezer | I have not tested pulling one drive to see what it does |
| 21:55 DavidDreezer | but with both drives it boots perfectky |
| 21:56 mt | well, I suppose it will work just fine then |
| 21:56 mt | ok, could we try the following: |
| 21:56 DavidDreezer | i would think because mdo is both drives |
| 21:56 DavidDreezer | both or either, |
| 21:56 mt | do you have a script that executes the above commands? |
| 21:56 mt | (as part of your install) |
| 21:56 DavidDreezer | yes, I do |
| 21:57 DavidDreezer | want me to paste it for you? |
| 21:57 mt | no, it's fine |
| 21:57 mt | could you comment out the mkimage and grub-setup lines? |
| 21:57 mt | and see whether it still workds? |
| 21:57 mt | sorry, no, won't |
| 21:57 DavidDreezer | my 10-setup has a case switch for HW_RAID or SW_RAID, then run the above commands for SW |
| 21:58 mt | pls add --modules="lvm raid" to the grub-install line |
| 21:58 DavidDreezer | for HW your default script works perfectly |
| 21:58 mt | meaning we only run grub-install and update-grub |
| siggg (~jean@tra78-5-88-172-128-32.fbx.proxad.net) left irc: Ping timeout: 480 seconds |
| 21:59 mt | maybe it's just that grub-mkimage must be told about the modules |
| 21:59 DavidDreezer | ok, this is where I am |
| 21:59 mt | which won't happen if run as I told you before |
| 21:59 DavidDreezer | $ROOTCMD /usr/bin/grub-mkimage --output=/boot/grub/core.img ext2 pc biosdisk raid |
| 21:59 DavidDreezer | $ROOTCMD /usr/sbin/grub-install --modules="lvm raid" '(md0)' |
| 21:59 DavidDreezer | $ROOTCMD /usr/sbin/grub-setup '(md0)' |
| 21:59 DavidDreezer | $ROOTCMD /usr/sbin/update-grub |
| 21:59 DavidDreezer | $ROOTCMD update-initramfs -k all -u |
| 21:59 DavidDreezer | now you want me to remove which part? |
| 21:59 mt | just comment out, don't remove :-) |
| 21:59 DavidDreezer | ok |
| 21:59 mt | grub-mkimage and grub-setup lines |
| 21:59 DavidDreezer | ok, just a sec |
| 22:00 mt | both of which should be called by grub-install anyway |
| 22:00 DavidDreezer | now, it is hard coded to md0. do you want to make a change to that as of yet? |
| 22:01 mt | we'll leave this for a second round :-) |
| 22:01 DavidDreezer | very well, let me place this and reboot the client |
| 22:08 DavidDreezer | < wish list: someday faimond will timestamp entries |
| 22:08 DavidDreezer | :) |
| 22:10 mt | faimond has the optopn -T which add a timestamp to the log. |
| 22:10 mt | (quoting Mrfai) |
| 22:11 mt | from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=290539 |
| 22:12 DavidDreezer | oh my so it does! |
| 22:12 DavidDreezer | ok, faiend |
| 22:12 DavidDreezer | let's see |
| 22:12 mt | any errors? |
| 22:12 DavidDreezer | yes |
| 22:12 DavidDreezer | fai.log:GRUB_PC/10-setup.test FAILED with exit code 1. |
| 22:12 DavidDreezer | shell.log:grub-mkimage: error: cannot stat /usr/lib/grub/i386-pc/mdraid.mod |
| 22:12 DavidDreezer | shell.log:++ error=1 |
| 22:13 mt | mind pasting 10-setup.test? |
| 22:13 DavidDreezer | .test? |
| 22:13 mt | that's what you quoted |
| 22:13 DavidDreezer | it is, and yet |
| 22:14 DavidDreezer | there is none |
| 22:14 mt | damn sure? |
| 22:14 DavidDreezer | oh my gosh I see |
| 22:15 DavidDreezer | I moved the test script we ran earlier to test, but left it executable |
| 22:15 DavidDreezer | which of course, it did |
| 22:15 DavidDreezer | I'm an idiot |
| 22:15 mt | no, surely not |
| 22:16 mt | it might just mean that things have to be restarted |
| 22:16 mt | either of the scripts might have left something semi-broken behind |
| 22:16 DavidDreezer | well, the actual 10 setup that we want to try did not error |
| 22:16 DavidDreezer | it was the previous iteration that errored |
| 22:17 DavidDreezer | as expected |
| 22:17 DavidDreezer | so I chmod -x that |
| 22:17 DavidDreezer | and shall reboot yet again. sorry for wasting your time |
| 22:17 mt | oh, np, I just keep doing other things meanwhile |
| 22:27 DavidDreezer | no errors, now let me go see if it boots |
| 22:30 DavidDreezer | alas. error: no such disk, then rescue mode. doing an LS shows only the hd0 and1 |
| 22:32 mt | hmm |
| 22:32 mt | so let's see what has to be added back |
| 22:32 mt | maybe try the mkimage first |
| 22:33 DavidDreezer | does grub-install call grub-setup? |
| 22:33 mt | yes, at least it's supposed to :-) |
| 22:34 DavidDreezer | ok, let me uncomment the mkimage and go from there |
| 22:35 mt | btw, you might want to do an explicit ping to make me respond faster, I'm usually acting on other desktops |
| 22:36 DavidDreezer | ok, i'm in no hurry, it is Sunday and I feel guilty as though I am taking advantage of your time. |
| 22:46 DavidDreezer | same problem, so I shall try it without mkimage but with grub-setup |
| 22:47 mt | ok |
| 22:47 DavidDreezer | I think this will work |
| 22:47 mt | this would make a debuggable case |
| 22:47 DavidDreezer | my script line is this |
| 22:47 DavidDreezer | $ROOTCMD /usr/sbin/grub-setup '(md0)' |
| 22:48 mt | because grub-install is a script |
| 22:48 DavidDreezer | and it will work, I thinkj, because I am telling it mdo |
| 22:48 DavidDreezer | md0* |
| 22:48 DavidDreezer | ratehr than letting it decide by itself |
| 22:48 mt | but grub-install should be doing just that, call grub-setup with md0 as argument |
| 22:49 mt | *if* it works, another run with grub-install --debug would be nice |
| 22:49 DavidDreezer | if it doesn't work then I blame martians or other space aleins |
| 22:54 mt | well, if it doesn't, we should still be able to make one single script out this, working for sw and hw raid |
| 22:54 mt | by the simple means of grub-probe |
| 22:55 mt | where "doesn't work" means "it only works if both the grub-mkimage and grub-setup calls are in there" |
| 22:56 DavidDreezer | i don't see a /usr/sbin/grub-setup in my nfsroot |
| 22:57 DavidDreezer | so, it is run on the client after grub is installed? so I should see it on the client in /target/susr/sbin, correct? |
| 22:57 DavidDreezer | ah yes |
| 22:58 DavidDreezer | and it is a binary |
| 23:00 mt | yes, right |
| 23:00 DavidDreezer | grub recovery. |
| 23:00 mt | grr |
| 23:00 DavidDreezer | i shall uncomment both lines, and add -v to setup |
| 23:00 DavidDreezer | or wa sit to install? |
| 23:01 mt | --debug to install |
| 23:01 DavidDreezer | ok, debug to install |
| 23:01 mt | but if you got time, maybe first try without --debug |
| 23:01 DavidDreezer | sure |
| 23:01 mt | just to see it really works |
| 23:01 DavidDreezer | it has worked twice today |
| 23:01 mt | (I know, it did before, but it never did afterwards) |
| 23:01 DavidDreezer | third time should be no different |
| 23:01 mt | fingers crossed |
| 23:02 DavidDreezer | we ar enow back where we started |
| 23:02 DavidDreezer | $ROOTCMD /usr/bin/grub-mkimage --output=/boot/grub/core.img ext2 pc biosdisk raid |
| 23:02 DavidDreezer | $ROOTCMD /usr/sbin/grub-install --modules="lvm raid" '(md0)' |
| 23:02 DavidDreezer | $ROOTCMD /usr/sbin/grub-setup '(md0)' |
| 23:02 DavidDreezer | $ROOTCMD /usr/sbin/update-grub |
| 23:02 DavidDreezer | $ROOTCMD update-initramfs -k all -u |
| 23:02 DavidDreezer | i'll go hit reset |
| 23:15 DavidDreezer | Failed. I'm speechless. this has worked twice today and we have done nothing other than edit this script today. This makes no sense. |
| 23:15 mt | the --modules is new in there ... |
| 23:16 DavidDreezer | oh good point |
| 23:16 DavidDreezer | but what would that do to cause grub to not locate the conf file |
| 23:17 mt | no ideas |
| 23:17 DavidDreezer | just to be sure let me grab my original copy of this file |
| 23:18 DavidDreezer | just confirmed, you are correct |
| 23:34 DavidDreezer | ok, I have removed the modules and am back to where we started. it boots fine. normally, into a working OS |
| 23:36 mt | so could you now remove the grub-setup line? |
| 23:36 mt | if that keeps working |
| 23:37 mt | I think we will always need the grub-mkimage line if --modules doesn't work for you |
| 23:37 mt | but then it would be interesting to get two logs |
| 23:37 mt | grub-install --debug with and without --modules |
| 23:37 mt | and then compare the diff ... |
| 23:38 mt | do you think you could generate those two logs? |
| 23:38 mt | I'll probably get to bed soon, but if you could generate those two logs and send them via email that would be fantastic |
| 23:39 mt | that debugging step is one thing |
| 23:39 mt | the other one is making a nice script for you |
| alleehol (~quassel@allee.mpe.mpg.de) joined #fai. |
| 23:39 mt | I think if you include the grub-probe step you should be able to get away with a single piece of code for both hw and sw raid |
| 23:40 DavidDreezer | oddly, on first boot it always tells me that my last mount time was in the future, but that is relatively a minor issue. |
| allee (~quassel@allee.mpe.mpg.de) left irc: Read error: Connection reset by peer |
| 23:40 mt | probably some system time is wrong |
| 23:41 mt | maybe hw clock being using during install and ntp later on? |
| 23:42 DavidDreezer | possible |
| 23:42 DavidDreezer | the first script i have in class is an ntp script. wierd |
| 23:42 DavidDreezer | remove the entire grub-setup line |
| 23:42 DavidDreezer | ok |
| 23:43 DavidDreezer | i'll generate both logs, tar them and email them to you |
| 23:43 mt | cool, thanks! |
| 23:43 DavidDreezer | thank you for all of your help with this |
| 23:43 mt | well, thanks for testing&debugging, I'm kind of doing all this theoretically only :-) |
| 23:43 DavidDreezer | it is my hope that we come out of this with a single script that we can give to everyody |
| 23:44 mt | haven't got a single system running grub-pc as of yet |
| 23:44 mt | yep, indeed |
| 23:44 DavidDreezer | well, mine works, however it is hard coded to do so |
| 23:44 mt | although it seems that lenny and squeeze might need different treatment |
| 23:44 DavidDreezer | now we just need ot reach it so that it is programatic |
| 23:44 alekibango | it would rock when it could work on all debian, maybe even ubuntu versions :) |
| 23:45 mt | could you paste your current script? |
| 23:45 DavidDreezer | we can add in a uname switch, i guess. kind of as kludge though |
| 23:45 DavidDreezer | current, sure |
| 23:45 mt | so I can meanwhile hack that to what I think should work for both sw and hw raid? |
| 23:45 alekibango | mt you deserve an award for your help today :) |
| 23:45 mt | even though it might still have all these grub-setup, grub-mkimage lines |
| 23:46 DavidDreezer | http://paste.debian.net/101606/ |
| 23:46 DavidDreezer | now to be clear |
| 23:47 mt | oh no, I'm just trying to get rid of one of the longest outstanding issues |
| 23:47 mt | this grub-pc setup is causing pains for ages now |
| 23:47 DavidDreezer | for the next steps |
| 23:47 DavidDreezer | you want to remove |
| 23:47 DavidDreezer | grub setup |
| 23:47 DavidDreezer | then test with and without debug for install |
| 23:47 DavidDreezer | correct? |
| 23:49 DavidDreezer | oh, no. it's install debug with and without modules |
| 23:50 mt | alekibango, will you be available for a few more minutes? |
| 23:50 alekibango | ok whats up |
| 23:50 alekibango | i will be here whole night imho |
| 23:51 mt | DavidDreezer, yes grub-install with and without --debug |
| 23:51 mt | argh |
| 23:51 mt | dam |
| 23:51 mt | grub-install --debug with and without --modules |
| 23:51 mt | alekibango, I'll try to hack DavidDreezer's script and wanted to ask whether you could give that one a try as well |
| 23:51 DavidDreezer | ok, i am running it now as is, without the setup line |
| 23:52 alekibango | mt: no problem, will try |
| 23:52 mt | maybe we can come up with a script which works both in lenny and squeeze |
| 23:52 DavidDreezer | if that passes i'll then run install with and withoug modules, both debug |
| 23:52 alekibango | mt ic |
| 23:55 mt | it's http://paste.debian.net/101608 |
| 23:56 mt | alekibango, if you could give that one a try it would be great |
| 23:56 mt | if it works, we could even try to further simplify it |
| 23:56 alekibango | lol you sound like the guy in the movie... officespace |
| 23:57 mt | DavidDreezer, this should also work for you, both for hw and sw raid (because of grub-probe magic) |
| 23:57 mt | huh, what's that movie about? |
| 23:57 alekibango | lol you have to see it sometimes |
| 23:57 DavidDreezer | is squeeze escaping the partition number or sometning odd? |
| 23:57 DavidDreezer | (hence the sed line) |
| 23:58 mt | squeeze munges /dev/md0 into (md/0) |
| 23:58 DavidDreezer | ugh |
| 23:58 mt | but only (md0) works |
| 23:58 DavidDreezer | badbad bug |
| 23:58 mt | well, /dev/md/0 does exist on some systems, don't really know when it is just /dev/md0 and when it is /dev/md/0 |
| --- Mon Dec 6 2010 |