| ErKa (keryell@keryell.pck.nerim.net) left irc: Ping timeout: 480 seconds |
| allee (~ach@dslb-084-056-005-076.pools.arcor-ip.net) left irc: Ping timeout: 480 seconds |
| teratoma_ (~teratoma@208.96.63.196) left irc: Quit: leaving |
| ErKa (keryell@keryell.pck.nerim.net) joined #fai. |
| tempel (~mettler@dsl-62-220-14-162.berlikomm.net) joined #fai. |
| allee (~ach@dslb-084-056-027-061.pools.arcor-ip.net) joined #fai. |
| Mrfai (~lange@kueppers.informatik.uni-koeln.de) joined #fai. |
| catwell (~AlSim@portzic2.enst-bretagne.fr) joined #fai. |
| tempel (~mettler@dsl-62-220-14-162.berlikomm.net) left irc: Quit: leaving |
| ys76 (~ys76@jxim.de) joined #fai. |
| istaz_ (~olivier@236.198-241-81.adsl-dyn.isp.belgacom.be) joined #fai. |
| istaz (~olivier@201.108-65-87.adsl-dyn.isp.belgacom.be) left irc: Ping timeout: 480 seconds |
| allee (~ach@dslb-084-056-027-061.pools.arcor-ip.net) left irc: Ping timeout: 480 seconds |
| Mrfai (~lange@kueppers.informatik.uni-koeln.de) left irc: Quit: leaving |
| Mrfai (~lange@suenner.informatik.uni-koeln.de) joined #fai. |
| fai-guy (~fai-guy@p4FC236EA.dip0.t-ipconnect.de) joined #fai. |
| 11:15 catwell | Can somebody tell me where I can find information about what exactly happens at this point of the FAI boot process : |
| 11:16 catwell | Begin: Mounting root filesystem ... |
| 11:16 catwell | Begin: Running /scripts/live-premount ... |
| 11:17 catwell | I want to know what happens between these two lines (or where the code that outputs them is). |
| 11:44 eartoast | catwell: this is the initrd trying to mount the nfsroot |
| 11:44 eartoast | this code is actually not part of fai itself... |
| 11:46 eartoast | you can cpio to unpack the initrd |
| 11:47 catwell | ok that's what I'll try to do |
| 11:48 eartoast | or look at the contents of 'live-initramfs' debian package which should be installed in the nfsroot :) |
| 11:55 catwell | looks like live-initramfs isn't installed in my nfsroot |
| 11:55 catwell | at least it isn't listed in /etc/fai/NFSROOT |
| 11:56 catwell | is that normal ? |
| 11:59 Mrfai | call make-fai-nfsroot -v and read the log output. You can also put this output onti paste.debian.net and we will have a look at it |
| 12:21 catwell | looks like it does install live-initramfs in fact |
| 12:21 catwell | it's not just explicit in /etc/fai/NFSROOT anymore |
| 12:21 catwell | it was when I used Etch I think |
| 12:21 catwell | http://paste.debian.net/14723/ if you want the output of make-fai-nfsroot -v |
| 12:23 catwell | I've extracted the initramfs with cpio, looks like my problem is in either init or a script in scripts/ |
| 12:24 catwell | Am I right that live-premount is called by this line in init: . /scripts/${BOOT} ? |
| 12:37 Mrfai | catwell: your make-fai-nfsroot call lokks good |
| 12:37 catwell | Yes it shoule be because it works on some machines. |
| 12:38 Mrfai | you can debug the booting of the initrd if you append the string debug to the kernel command line |
| 12:38 catwell | OK |
| 12:38 Mrfai | if the boot preocess fails you normally get a shell prompt like (initramfs). There you can read live.log |
| 12:38 catwell | no it doesn't |
| 12:38 catwell | it freezes with an IP-Config line |
| 12:39 catwell | just after the scripts/live-premount one |
| 12:40 catwell | I'm searching which call to ipconfig prints it. It's strange because on other clients it works, and it worked on this one with an Etch-based FAI server. |
| 12:43 Mrfai | Maybe a network problem. Can you see the DHCP and mount request on the install server? |
| 12:45 catwell | my DHCP is on another server and booting a client adds 4 lines to the log : |
| 12:45 catwell | Aug 14 15:19:25 brestv6-gw dhcpd: DHCPDISCOVER from 00:0b:db:82:71:e5 via eth0 |
| 12:45 catwell | Aug 14 15:19:25 brestv6-gw dhcpd: DHCPOFFER on 192.168.100.15 to 00:0b:db:82:71:e5 via eth0 |
| 12:45 catwell | Aug 14 15:19:29 brestv6-gw dhcpd: DHCPREQUEST for 192.168.100.15 (192.168.100.1) from 00:0b:db:82:71:e5 via eth0 |
| 12:45 catwell | Aug 14 15:19:29 brestv6-gw dhcpd: DHCPACK on 192.168.100.15 to 00:0b:db:82:71:e5 via eth0 |
| 12:46 catwell | (this particular client in any case) |
| 12:46 Mrfai | you must see two dhcp request from each client. First dhcp request is from the PXE boot, then the kernel itself does another dhcp request |
| 12:47 catwell | hmm looks like it doesn't here |
| 12:47 catwell | I've read about that on the ML |
| 12:47 catwell | it said that a ping from the server would fix it |
| 12:47 Mrfai | In the past, there where problem with the seconde dhcp request, because an old version of some tools in the initrd had a bug when using a dhcp gateway. But this should be fixed in lenny |
| 12:47 catwell | but it doesn't in my case |
| 12:49 Mrfai | do you have multiple network ards in the host? |
| 12:49 catwell | Oh, yes I do. |
| 12:50 catwell | Might that be the source of the problem ? |
| 12:50 catwell | Indeed the machine on which it works has only one. |
| 12:50 catwell | I might try to remove the second one. |
| 12:50 catwell | (if you meant cards) |
| 12:50 Mrfai | yes, maybe the host boot from your frist NIC, but the kernel thinks this is NIC 2 and changes the order of your two NIC's. |
| 12:51 Mrfai | yep, try to remove the second card |
| 12:51 catwell | I have three in fact |
| 12:51 catwell | 2 ethernet / 1 wireless |
| 12:51 catwell | I'll keep only one |
| 12:56 catwell | it worked |
| 12:57 catwell | so that's the problem |
| 12:57 catwell | now how could I fix it without taking out the two extra network cards ? |
| 12:58 catwell | Is there a way to tell the kernel not to mix them or to force it to use a specific one during the setup? |
| 13:16 Mrfai | Are the two network card the same type? |
| 13:17 catwell | no, one is embedded in the mother board |
| 13:17 catwell | it's the one I use for the setup |
| 13:18 catwell | the two other ones can't do PXE I think |
| 13:18 catwell | and they can't do Wake on Lan either |
| 13:21 catwell | isn't it possible to do something so that the second DHCP request is sent for all the interfaces instead of one ? |
| 13:21 catwell | or something like that |
| 13:23 catwell | or I can try to use nameif... |
| 13:24 catwell | but that would work only for one client |
| 13:26 Mrfai | AFAIK there's no general solution for this. You may want to force the kernel to load certain network card drivers in a defined order. So the first card detected may become eth0. But since udev works asynchronously, you cannot guarantee which card is detected first. |
| 13:26 Mrfai | If you remove a network card driver from the initrd, then this type of cards will not be detected. |
| 13:29 catwell | so it's udev that does the naming |
| 13:29 catwell | I should be able to use udev persistent rules then? |
| 13:30 tokkee | lazyb0y_: Danke fuer die Meldung btw.! |
| 13:30 Mrfai | yep, but therefore you need the mac address of each card AFAIK |
| 13:31 catwell | yes |
| 13:31 catwell | I'll try something like that. |
| 13:58 catwell | OK I found how to do, know I have to understand how I can modify my initramfs during the make-fai-nfsroot process. |
| 14:02 Mrfai | if you just want to remove a kernel module, rm this in $nfsroot/lib/modules/......, then do a chroot into the nfsroot and call dpkg-reconfigure linux-image... |
| 14:02 Mrfai | This will rebuild the initrd |
| 14:04 catwell | but won't that break next time I run fai-setup ? |
| 14:09 Mrfai | yep. But you may want to write a make-fai-nfsroot hook, which always removes this module and rebuild the kernel inside the nfsroot |
| 14:14 catwell | ok |
| 14:14 catwell | looks like the easiest solution |
| 14:34 catwell | I get : /usr/sbin/dpkg-reconfigure: linux-image is not installed |
| 14:35 catwell | when you say chroot into the nfsroot you mean /srv/fai/nfsroot/live/filesystem.dir ? |
| 14:41 Mrfai | yep |
| 14:41 Mrfai | try dpkg -l |grep linux-image inside the nfsroot. Then you see the exact name of the package |
| 14:43 catwell | OK, it was linux-image-2.6.25-2-686 |
| 14:44 catwell | I must have changed that somewhere... |
| 14:45 catwell | Is it normal that I get a lot of lines reading grep: /proc/modules: No such file or directory ? |
| 14:45 catwell | I guess it is but... |
| 14:52 Mrfai | you do not have mounted /proc into the nfsroot. But maybe the initrd is ok without /proc |
| 14:53 catwell | Ok, I'll try to mount it otherwise. |
| 15:04 Mrfai | catwell: do not forget to umount it |
| 15:05 catwell | yes, but looks like it works even without it |
| fai-guy (~fai-guy@p4FC236EA.dip0.t-ipconnect.de) left irc: Quit: SIGHOME |
| 16:04 catwell | I've not succeeded yet (even without the corresponding module it tries to use the bad network card) but now I know where the problem comes from. |
| 16:04 catwell | Thanks a lot for the help, I must go now :) |
| 16:04 catwell | See you. |
| catwell (~AlSim@portzic2.enst-bretagne.fr) left irc: Quit: ++ |
| 16:25 lazyb0y_ | tokkee: bidde |
| Mrfai (~lange@suenner.informatik.uni-koeln.de) left irc: Quit: leaving |
| Nic0 (~courtel@fw.tls.cena.fr) left irc: Quit: Leaving. |
| lazyb0y_ (~henning@e177237175.adsl.alicedsl.de) left irc: Ping timeout: 480 seconds |
| allee (~ach@dslb-084-056-027-061.pools.arcor-ip.net) joined #fai. |
| ErKa (keryell@keryell.pck.nerim.net) left irc: Remote host closed the connection |
| allee (~ach@dslb-084-056-027-061.pools.arcor-ip.net) left irc: Ping timeout: 480 seconds |
| allee (~ach@dslb-084-056-027-061.pools.arcor-ip.net) joined #fai. |
| allee (~ach@dslb-084-056-027-061.pools.arcor-ip.net) left irc: Ping timeout: 480 seconds |
| --- Fri Aug 15 2008 |