00:35 DavidDreezerI came up with a workaround
00:35 DavidDreezerif [ -s "$LOGDIR/additional.var" ]; then
00:35 DavidDreezer        . $LOGDIR/additional.var
00:35 DavidDreezerfi
00:35 DavidDreezerin the top of the 50 script
00:35 DavidDreezercrude, 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 alekibangoi 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 mtalekibango, could try manually executing grub commands to install it?
13:32 alekibangoi did once, but it failed to boot :)
13:33 alekibangowill try now again
13:33 mtso just let it install and don't reboot at the end
13:33 mtfirst see which errors are shown during execution of scripts
13:33 mtand then let's do the manual tries
13:33 alekibangomt: i already pasted those yesterday imho
13:33 alekibangoits 'unknown device'
13:34 alekibangoor somthing like that
13:34 mtyes, ok
13:34 alekibangohttp://pastebin.com/uW2dw195
13:34 mthave you already got to the point that the install is complete (but probably broken)?
13:34 alekibangoyou mean end of fai -- pres [enter] to reboot?
13:35 mtyep
13:35 mtbut please don't reboot and get a shell instead
13:35 mtI suppose chroot /target grub-mkdevicemap --no-floppy will work fine
13:36 mtplease 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 mtalekibango, I'll go and prepare lunch; please be patient in case I don't reply rightaway
14:12 alekibangok' i was talkingto jehova whitnesses for 30 minutes....  poor souls they will not sleep tonight...
14:26 alekibangomt are u here?
14:39 mtalekibango, 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 DavidDreezerMT, are you there by chance?
21:01 mtyes :-)
21:01 DavidDreezerGood afternoon
21:02 DavidDreezerit is afternoon there, no?
21:02 mtwell, for me it's rather evening (10pm)
21:02 DavidDreezeroh, well, good evening then
21:02 DavidDreezerthank you for the email that you sent to me, I appreciate it.
21:02 mtyou're welcome!
21:02 DavidDreezerI got it working!
21:02 mtsorry for leaving you all alone on this
21:03 mtso how did you fix it?
21:03 DavidDreezerI have an end to end trial run this afternoon
21:03 alekibangomt i wrote some debian bug. about the grub
21:03 DavidDreezerfor today I put this in the head of the 50 script
21:03 DavidDreezerif [ -s "$LOGDIR/additional.var" ]; then
21:03 DavidDreezer        . $LOGDIR/additional.var
21:03 DavidDreezerfi
21:03 mtok
21:03 DavidDreezerUltimately, Micheal, I will merge my 45 and the 50 into on script
21:03 DavidDreezerso they will be in the same shell
21:04 mtbut then, really, renaming the 45 script to 45-mac.source should do the trick
21:04 DavidDreezeroh, you're right
21:04 mtand merging will, of course, do as well :-)
21:04 mtalekibango, which bug# is it?
21:04 alekibangodo not know yet :ú
21:04 DavidDreezerI prefer to keep my modifications in a different script for future upgrade purposes, making it into a .source wouldbe excellent
21:05 alekibangoand i forgot to include some info... but the core is there
21:05 DavidDreezernow, I have an end to end FAI install on software raid.
21:05 mtI believe this should work like a charme, unless fai-class is buggy
21:05 mtoh, software raid
21:05 mtcool
21:05 mtalekibango just had problems with his sw raid :-)
21:05 DavidDreezerwell, so I tried the 10-setup in ~45 as requested
21:06 DavidDreezerand it did not work :(
21:06 DavidDreezerthere was no error logged
21:06 mtyes, kind of expected
21:06 mtalekibango and me debugged this all afternoon
21:06 DavidDreezerhowever, upon booting the machine, error 15 then recovery prompt
21:06 DavidDreezerah!
21:06 mtwe believe to have found a working solution
21:06 mtit would actually be great if you could try to confirm that
21:07 DavidDreezeri substuted the 10-setup that I had posted and that worked, but of course that is not a scalable solution
21:07 DavidDreezeri would love to
21:07 mtalekibango, may I copy the link to the pastebin in here?
21:07 alekibangoy
21:07 mtfor the working 10-setup?
21:07 alekibangonp, dont ask all the time :) you are welcome
21:07 DavidDreezerhaha :)
21:08 mthttp://pastebin.com/4qQWGXec
21:08 mtI believe it can actually be simplified
21:08 alekibangoDavidDreezer: he asked me like this 10 times today already :)
21:09 mtbah, i've been fiddling with your system
21:09 DavidDreezeri'm comparing that to mine Michael.
21:09 DavidDreezerhmm
21:09 mtyou can, most probably, remove the mdraid
21:09 mtan essential part is the sed line
21:09 alekibangogrub guys thought i should use grub from sources
21:09 alekibangoto test it
21:10 mtomg
21:10 mtok, sure, that's kind of expected
21:10 alekibangowell, there was only 1 of them alive and he was not a grub devel
21:10 DavidDreezeris grub-setup required?
21:10 alekibangoseems like weekend
21:11 mtmost 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 mtgrub-setup?
21:11 alekibangoDavidDreezer: grub-install calls grub-setup
21:11 mtthx
21:11 alekibangoif you use probes and grub setup you can avoid grub-install bugs
21:11 alekibango:D
21:12 mtwho says that?
21:12 alekibangowell, just me, making fun a bit
21:12 alekibangogrub-install /dev/md0  should be the way to use it
21:12 mtcould easily be that this is true :-)
21:12 DavidDreezerI also follow it with $ROOTCMD update-initramfs -k all -u      however I don't think it to be necessary
21:13 mtnot for grub, no
21:13 mtbut it might be necessary for other reasons
21:13 DavidDreezerlet 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 mtif you get in trouble after grub has successfully loaded the kernel
21:14 alekibangomt: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606035
21:14 mtthe 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 mtbut grub will work nicely without the update-initramfs
21:14 mtcool, thx
21:15 DavidDreezerok, script installed, let me reboot my client and we shall see what we see.
21:15 alekibangomt:  look near end
21:15 alekibangoheh i used czech locales, darn
21:16 mtwell, I guess people can translate that
21:17 mteven though it might be nice to post a follow-up with that last bit translated
21:17 mtit might be easier for grub-devs to grep through the code
21:17 mtso actually grub-setup must be broken!?
21:17 mtbtw, could you also do a run using (md0) and post just the last bit
21:18 alekibangomt:  its explained in text...
21:18 alekibangothat there is no /dev/md/0
21:18 mtwould that mean that (md0) is passed on to grub-setup?
21:18 alekibangomt: no. (md/0) is passed
21:18 alekibangoand it doesnt work
21:18 alekibango(md0) should be passed - works
21:18 mtexplained, yes, but the very precise wording helps so much when using grep
21:18 mt:-)
21:19 alekibangoi believe debian should upgrade its bug reporting system
21:19 alekibangolaunchpad is so cool compared to bug reporting in debian
21:20 alekibango(still it sucks inside)
21:20 mtreally?
21:20 alekibangowell, installing it is pain
21:20 mtI never quite got how to use launchpad
21:20 alekibangoit touches files all over the machine
21:20 mtthe debian BTS is so simple :-)
21:20 alekibangomt: 1) i hate mails. i have almost 40k unread mails in my box
21:20 alekibango2) i hate sending mails
21:21 DavidDreezerOMG!
21:21 DavidDreezerlol, 40k!
21:21 alekibangoand its all based on mails!
21:21 mtah, ok, so launchpad allows web bug filing?
21:21 alekibangoLD
21:21 alekibango:))
21:21 alekibangomt: right
21:21 mtwell, ok, so /me is just different
21:21 alekibangoi still read mails in mutt btw :)
21:21 mtI strictly prefer email (as you already noticed...)
21:21 mtso do I
21:22 alekibangoi hate even administering mail servers... :) its wrongly created service, should be memoryholed
21:23 DavidDreezerI don't have the luxury of telling my customers "no email" :(
21:24 mtfor me, email mostly is a form of instant messaging
21:24 mtalekibango, is grub-setup a script or compiled code?
21:25 alekibangocompiled
21:25 mtok, then I'll leave this to grub devs to debug :-)
21:26 DavidDreezerok, at faiend with this script, let me check for errors then reboot
21:26 mteven 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 mtno need to install anything, just compile
21:26 alekibangowe can even do this in live system
21:26 DavidDreezerthis version errored
21:26 alekibangoif aufs will be able to keep it ok
21:26 alekibango:D
21:26 DavidDreezerfai.log:GRUB_PC/10-setup     FAILED with exit code 1.
21:26 DavidDreezershell.log:grub-mkimage: error: cannot stat /usr/lib/grub/i386-pc/mdraid.mod
21:26 DavidDreezershell.log:++ error=1
21:26 DavidDreezershell.log:GRUB_PC/10-setup     FAILED with exit code 1.
21:26 DavidDreezerstatus.log:GRUB_PC/10-setup     FAILED with exit code 1.
21:27 mtDavidDreezer, which version of grub are you using
21:27 DavidDreezergrub2
21:27 mtah, you're running lenny
21:27 mtis that right
21:27 mt?
21:27 DavidDreezerthis server is open to the world, by the way, if you want access to it
21:27 mtthat would make the second one today :-)
21:28 alekibango:)
21:28 alekibangoDavidDreezer: which grub2?
21:28 mtwell, maybe, yes
21:28 mtgot an IP for me?
21:28 alekibangowhich version of grub-pc ?  last squeeze ?
21:28 DavidDreezerour office is not, of course, but my house, i have opened so that I can reach it from the office
21:28 DavidDreezerroot@faiserver:/var/log/fai/db099.dh01.groupee-inc.net/last# dpkg --list | grep grub
21:28 DavidDreezerii  grub                              0.97-47lenny2              GRand Unified Bootloader (Legacy version)
21:28 DavidDreezerii  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 mtwell, maybe it's not quite as broken as yours :-)
21:29 DavidDreezeri did an apt-get update, upgrade yesterday
21:29 alekibangois it lenny?
21:29 DavidDreezeryes
21:29 alekibangoah :) this script might need to have different solution for lenny
21:29 alekibango:)
21:30 mtI think all it takes should be dropping the mdraid
21:30 mtDavidDreezer, could you just go into a console (instead of rebooting)
21:30 DavidDreezeri'd been unable to get sw raid working under fai 3.x or old grub
21:30 DavidDreezercertainly can
21:30 DavidDreezerit is at a consoile now
21:30 mtand type the commands one-by one
21:30 mtso well,
21:30 mtexport ROOTCMD="chroot /target"
21:31 mtso 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 mtwell, I'll do the copying in here (with slight modifications)
21:32 mt$ROOTCMD grub-probe -tdrive -d /dev/md0
21:32 DavidDreezerso run first
21:32 DavidDreezer$ROOTCMD grub-mkdevicemap --no-floppy
21:32 mt(assuming that BOOT_DEVICE is /dev/md0)
21:32 DavidDreezeryes?
21:32 mtyes
21:32 DavidDreezerit is
21:32 DavidDreezeror should be
21:32 mtcat /tmp/fai/disk_var.sh
21:32 mtshould tell
21:32 DavidDreezerSWAPLIST=${SWAPLIST:-"/dev/md1"}
21:32 DavidDreezerBOOT_DEVICE=${BOOT_DEVICE:-"/dev/md0"}
21:32 DavidDreezerROOT_PARTITION=${ROOT_PARTITION:-/dev/md2}
21:33 mtshould be fine
21:33 mtwhat does grub-probe say?
21:33 DavidDreezerwhen i ran ROOTCMD grub-mkdevicemap no-floppy i got the prompt, with no response of any kind
21:33 DavidDreezerjust back to prompt
21:33 mtthat's fine
21:34 mtno news is good news :-)
21:34 mtbut grub-probe should give some news :-)
21:34 DavidDreezerdb099:~# $ROOTCMD grub-probe -tdrive -d /dev/md0
21:34 DavidDreezer(md0)
21:34 DavidDreezerdb099:~#
21:34 DavidDreezerwhich is correct, no?
21:35 mtalekibango, this "old" version is much better than yours :-)
21:35 mtyes, that's great
21:35 mt$ROOTCMD grub-install --no-floppy --modules="lvm raid" "(md0)"
21:35 mtwould be the next step
21:35 DavidDreezeroh, wait though
21:36 mt?
21:36 DavidDreezerthis is the script
21:36 DavidDreezer$ROOTCMD grub-install --no-floppy --modules="lvm raid mdraid" "$GROOT"
21:36 DavidDreezerand the error was could not find module mdraid
21:36 mtyes, but I believe mdraid isn't necessary
21:36 mtso use the above command
21:36 DavidDreezershell.log:grub-mkimage: error: cannot stat /usr/lib/grub/i386-pc/mdraid.mod
21:37 mtwithout mdraid
21:37 DavidDreezeri think you're right
21:37 DavidDreezerit appears to have been successful
21:37 DavidDreezerdb099:~# $ROOTCMD grub-install --no-floppy --modules="lvm raid" "(md0)"
21:37 DavidDreezerInstallation finished. No error reported.
21:37 DavidDreezerThis is the contents of the device map /boot/grub/device.map.
21:37 DavidDreezerCheck if this is correct or not. If any of the lines is incorrect,
21:37 DavidDreezerfix it and re-run the script `grub-install'.
21:37 DavidDreezer(hd0)/dev/hda
21:37 DavidDreezer(hd1)/dev/hdb
21:37 mtsounds good
21:38 DavidDreezershall I try to reboot?
21:38 mtnope
21:38 mt$ROOTCMD update-grub
21:38 DavidDreezeroops
21:38 mtyou already did?
21:38 DavidDreezerno
21:38 mtok :-)
21:38 DavidDreezeroops as in "i forgot that step"
21:38 mtit wouldn't have been too bad
21:38 DavidDreezersuccess
21:38 DavidDreezerdb099:~# $ROOTCMD update-grub
21:38 DavidDreezerUpdating /boot/grub/grub.cfg ...
21:38 DavidDreezerFound linux image: /boot/vmlinuz-2.6.26-2-686-bigmem
21:38 DavidDreezerFound initrd image: /boot/initrd.img-2.6.26-2-686-bigmem
21:38 DavidDreezerFound memtest86+ image: /boot/memtest86+.bin
21:38 DavidDreezerdone
21:38 mtjust no menu of any kind
21:39 mtwell, then please give it a try ...
21:39 DavidDreezerwill do, cross fingers
21:39 mtwith alekibango we afterwards even verified that corrupting either of the two disks still left the system in a bootable state
21:41 DavidDreezergrub rescue mode.  :(
21:41 DavidDreezeris this due to my partition topography?
21:42 mthmm
21:43 mtcan you do "ls"
21:44 DavidDreezeryes, i have to bring my laptop down to where i have the computer physically. I might disconnect momentarily
21:44 mtI'll learn about rescue mode meanwhile
21:45 DavidDreezerls works. i have all the hd0 and 1 partitions. no md of course
21:46 mtgrub manual says
21:47 mtcat /grub/grub.cfg
21:47 DavidDreezerno such disc
21:48 mttype "help"
21:48 mtis there something about "root"
21:48 DavidDreezermakes some sense.  grub is on md0, and we have no md0 yet, no?
21:48 mtI believe it *should* have mapped that
21:48 DavidDreezeri can try root (hd0,1)
21:48 mtbut that might be a wrong assumption
21:48 mtpls do
Action: mt thinks he might understand
21:49 DavidDreezerdine.  (hd0,1): Filesystem is ext2
21:49 DavidDreezernow i need a boot line, i htink
21:50 mthow long does a reinstall take?
21:51 DavidDreezer5 minutes
21:51 alekibangomy takes some 300 seconds
21:51 DavidDreezerI can do them all day
21:51 mtmight be the quicker option then :-)
21:51 DavidDreezerworks for me
21:51 mtso what am I after:
21:52 mtgrub-pc in lenny seems not to have properly working support for raid
21:52 mtso must be installed in each device separately
21:53 mtgrub-install line must be run with /dev/hda1, /dev/hdb1
21:53 mt(two times)
21:53 DavidDreezerwell, 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 DavidDreezerthough it is not to the device
21:54 DavidDreezeri've not got it to work installing to the device
21:54 mthmm
21:54 DavidDreezeri've tried a for look installing to each device in device map
21:54 DavidDreezeralways gives an error 15 and rescue boot
21:54 DavidDreezerloop*
21:54 mtmeaning this fully works including a booting system?
21:55 DavidDreezeroh yes
21:55 DavidDreezerremember I said wit went end to end this morning?
21:55 DavidDreezerthat was with the script i just quoted
21:55 DavidDreezerhowever!
21:55 DavidDreezerI have not tested pulling one drive to see what it does
21:55 DavidDreezerbut with both drives it boots perfectky
21:56 mtwell, I suppose it will work just fine then
21:56 mtok, could we try the following:
21:56 DavidDreezeri would think because mdo is both drives
21:56 DavidDreezerboth or either,
21:56 mtdo you have a script that executes the above commands?
21:56 mt(as part of your install)
21:56 DavidDreezeryes, I do
21:57 DavidDreezerwant me to paste it for you?
21:57 mtno, it's fine
21:57 mtcould you comment out the mkimage and grub-setup lines?
21:57 mtand see whether it still workds?
21:57 mtsorry, no, won't
21:57 DavidDreezermy 10-setup has a case switch for HW_RAID or SW_RAID, then run the above commands for SW
21:58 mtpls add --modules="lvm raid" to the grub-install line
21:58 DavidDreezerfor HW your default script works perfectly
21:58 mtmeaning 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 mtmaybe it's just that grub-mkimage must be told about the modules
21:59 DavidDreezerok, this is where I am
21:59 mtwhich 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 DavidDreezernow you want me to remove which part?
21:59 mtjust comment out, don't remove :-)
21:59 DavidDreezerok
21:59 mtgrub-mkimage and grub-setup lines
21:59 DavidDreezerok, just a sec
22:00 mtboth of which should be called by grub-install anyway
22:00 DavidDreezernow, it is hard coded to md0. do you want to make a change to that as of yet?
22:01 mtwe'll leave this for a second round :-)
22:01 DavidDreezervery well, let me place this and reboot the client
22:08 DavidDreezer< wish list: someday faimond will timestamp entries
22:08 DavidDreezer:)
22:10 mtfaimond has the optopn -T which add a timestamp to the log.
22:10 mt(quoting Mrfai)
22:11 mtfrom http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=290539
22:12 DavidDreezeroh my so it does!
22:12 DavidDreezerok, faiend
22:12 DavidDreezerlet's see
22:12 mtany errors?
22:12 DavidDreezeryes
22:12 DavidDreezerfai.log:GRUB_PC/10-setup.test FAILED with exit code 1.
22:12 DavidDreezershell.log:grub-mkimage: error: cannot stat /usr/lib/grub/i386-pc/mdraid.mod
22:12 DavidDreezershell.log:++ error=1
22:13 mtmind pasting 10-setup.test?
22:13 DavidDreezer.test?
22:13 mtthat's what you quoted
22:13 DavidDreezerit is, and yet
22:14 DavidDreezerthere is none
22:14 mtdamn sure?
22:14 DavidDreezeroh my gosh I see
22:15 DavidDreezerI moved the test script we ran earlier to test, but left it executable
22:15 DavidDreezerwhich of course, it did
22:15 DavidDreezerI'm an idiot
22:15 mtno, surely not
22:16 mtit might just mean that things have to be restarted
22:16 mteither of the scripts might have left something semi-broken behind
22:16 DavidDreezerwell, the actual 10 setup that we want to try did not error
22:16 DavidDreezerit was the previous iteration that errored
22:17 DavidDreezeras expected
22:17 DavidDreezerso I chmod -x that
22:17 DavidDreezerand shall reboot yet again. sorry for wasting your time
22:17 mtoh, np, I just keep doing other things meanwhile
22:27 DavidDreezerno errors, now let me go see if it boots
22:30 DavidDreezeralas.   error: no such disk, then rescue mode. doing an LS shows only the hd0 and1
22:32 mthmm
22:32 mtso let's see what has to be added back
22:32 mtmaybe try the mkimage first
22:33 DavidDreezerdoes grub-install call grub-setup?
22:33 mtyes, at least it's supposed to :-)
22:34 DavidDreezerok, let me uncomment the mkimage and go from there
22:35 mtbtw, you might want to do an explicit ping to make me respond faster, I'm usually acting on other desktops
22:36 DavidDreezerok, i'm in no hurry, it is Sunday and I feel guilty as though I am taking advantage of your time.
22:46 DavidDreezersame problem, so I shall try it without mkimage but with grub-setup
22:47 mtok
22:47 DavidDreezerI think this will work
22:47 mtthis would make a debuggable case
22:47 DavidDreezermy script line is this
22:47 DavidDreezer        $ROOTCMD /usr/sbin/grub-setup '(md0)'
22:48 mtbecause grub-install is a script
22:48 DavidDreezerand it will work, I thinkj, because I am telling it mdo
22:48 DavidDreezermd0*
22:48 DavidDreezerratehr than letting it decide by itself
22:48 mtbut 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 DavidDreezerif it doesn't work then I blame martians or other space aleins
22:54 mtwell, if it doesn't, we should still be able to make one single script out this, working for sw and hw raid
22:54 mtby the simple means of grub-probe
22:55 mtwhere "doesn't work" means "it only works if both the grub-mkimage and grub-setup calls are in there"
22:56 DavidDreezeri don't see a /usr/sbin/grub-setup in my nfsroot
22:57 DavidDreezerso, 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 DavidDreezerah yes
22:58 DavidDreezerand it is a binary
23:00 mtyes, right
23:00 DavidDreezergrub recovery.
23:00 mtgrr
23:00 DavidDreezeri shall uncomment both lines, and add -v to setup
23:00 DavidDreezeror wa sit to install?
23:01 mt--debug to install
23:01 DavidDreezerok, debug to install
23:01 mtbut if you got time, maybe first try without --debug
23:01 DavidDreezersure
23:01 mtjust to see it really works
23:01 DavidDreezerit has worked twice today
23:01 mt(I know, it did before, but it never did afterwards)
23:01 DavidDreezerthird time should be no different
23:01 mtfingers crossed
23:02 DavidDreezerwe 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 DavidDreezeri'll go hit reset
23:15 DavidDreezerFailed. 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 mtthe --modules is new in there ...
23:16 DavidDreezeroh good point
23:16 DavidDreezerbut what would that do to cause grub to not locate the conf file
23:17 mtno ideas
23:17 DavidDreezerjust to be sure let me grab my original copy of this file
23:18 DavidDreezerjust confirmed, you are correct
23:34 DavidDreezerok, I have removed the modules and am back to where we started. it boots fine. normally, into a working OS
23:36 mtso could you now remove the grub-setup line?
23:36 mtif that keeps working
23:37 mtI think we will always need the grub-mkimage line if --modules doesn't work for you
23:37 mtbut then it would be interesting to get two logs
23:37 mtgrub-install --debug with and without --modules
23:37 mtand then compare the diff ...
23:38 mtdo you think you could generate those two logs?
23:38 mtI'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 mtthat debugging step is one thing
23:39 mtthe other one is making a nice script for you
alleehol (~quassel@allee.mpe.mpg.de) joined #fai.
23:39 mtI 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 DavidDreezeroddly, 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 mtprobably some system time is wrong
23:41 mtmaybe hw clock being using during install and ntp later on?
23:42 DavidDreezerpossible
23:42 DavidDreezerthe first script i have in class is an ntp script. wierd
23:42 DavidDreezerremove the entire grub-setup line
23:42 DavidDreezerok
23:43 DavidDreezeri'll generate both logs, tar them and email them to you
23:43 mtcool, thanks!
23:43 DavidDreezerthank you for all of your help with this
23:43 mtwell, thanks for testing&debugging, I'm kind of doing all this theoretically only :-)
23:43 DavidDreezerit is my hope that we come out of this with a single script that we can give to everyody
23:44 mthaven't got a single system running grub-pc as of yet
23:44 mtyep, indeed
23:44 DavidDreezerwell, mine works, however it is hard coded to do so
23:44 mtalthough it seems that lenny and squeeze might need different treatment
23:44 DavidDreezernow we just need ot reach it so that it is programatic
23:44 alekibangoit would rock when it could work on all debian, maybe even ubuntu versions :)
23:45 mtcould you paste your current script?
23:45 DavidDreezerwe can add in a uname switch, i guess. kind of as kludge though
23:45 DavidDreezercurrent, sure
23:45 mtso I can meanwhile hack that to what I think should work for both sw and hw raid?
23:45 alekibangomt you deserve an award for your help today :)
23:45 mteven though it might still have all these grub-setup, grub-mkimage lines
23:46 DavidDreezerhttp://paste.debian.net/101606/
23:46 DavidDreezernow to be clear
23:47 mtoh no, I'm just trying to get rid of one of the longest outstanding issues
23:47 mtthis grub-pc setup is causing pains for ages now
23:47 DavidDreezerfor the next steps
23:47 DavidDreezeryou want to remove
23:47 DavidDreezergrub setup
23:47 DavidDreezerthen test with and without debug for install
23:47 DavidDreezercorrect?
23:49 DavidDreezeroh, no. it's install debug with and without modules
23:50 mtalekibango, will you be available for a few more minutes?
23:50 alekibangook whats up
23:50 alekibangoi will be here whole night imho
23:51 mtDavidDreezer, yes grub-install with and without --debug
23:51 mtargh
23:51 mtdam
23:51 mtgrub-install --debug with and without --modules
23:51 mtalekibango, I'll try to hack DavidDreezer's script and wanted to ask whether you could give that one a try as well
23:51 DavidDreezerok, i am running it now as is, without the setup line
23:52 alekibangomt: no problem, will try
23:52 mtmaybe we can come up with a script which works both in lenny and squeeze
23:52 DavidDreezerif that passes i'll then run install with and withoug modules, both debug
23:52 alekibangomt ic
23:55 mtit's http://paste.debian.net/101608
23:56 mtalekibango, if you could give that one a try it would be great
23:56 mtif it works, we could even try to further simplify it
23:56 alekibangolol you sound like the guy in the movie... officespace
23:57 mtDavidDreezer, this should also work for you, both for hw and sw raid (because of grub-probe magic)
23:57 mthuh, what's that movie about?
23:57 alekibangolol you have to see it sometimes
23:57 DavidDreezeris squeeze escaping the partition number or sometning odd?
23:57 DavidDreezer(hence the sed line)
23:58 mtsqueeze munges /dev/md0 into (md/0)
23:58 DavidDreezerugh
23:58 mtbut only (md0) works
23:58 DavidDreezerbadbad bug
23:58 mtwell, /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

Generated by irclog2html.pl 2.1_h01ger1 by Jeff Waugh - find it at freshmeat.net! Customized by Holger 'h01ger' Levsen