Bug#482817: [Pkg-sysvinit-devel] Bug#482817: initscripts: No longer mounts NFS filesystems at startup
[Raphael Manfredi] > How do I capture the output on the console? Not sure how to best do this. Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#482817: [Pkg-sysvinit-devel] Bug#482817: initscripts: No longer mounts NFS filesystems at startup
Quoting Petter Reinholdtsen: : The scripts involved are /etc/network/if-up.d/mountnfs and : /etc/init.d/mountnfs.sh. The first do the real mounting when the last : network interface is brought up, and the second wait for the first to : complete before continuing the boot. Could it be that these scripts : break when /etc/network/interfaces isn't present? Try adding 'set -x' : at the top of both to get debug output during boot. How do I capture the output on the console? I use a netconsole but it only displays kernel boot messages. I never had the need to capture init script output to a file before so if there is a convenient way already frameworked, I'm all for it. Raphael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#482817: [Pkg-sysvinit-devel] Bug#482817: initscripts: No longer mounts NFS filesystems at startup
[Raphael Manfredi] > But I'm reluctant to use this. I would prefer to help you > understand why it does not work here, to benefit everyone. Although > I do have exotic configs on some machines, others are pretty > standard and exhibit the same problems. The scripts involved are /etc/network/if-up.d/mountnfs and /etc/init.d/mountnfs.sh. The first do the real mounting when the last network interface is brought up, and the second wait for the first to complete before continuing the boot. Could it be that these scripts break when /etc/network/interfaces isn't present? Try adding 'set -x' at the top of both to get debug output during boot. Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#482817: [Pkg-sysvinit-devel] Bug#482817: initscripts: No longer mounts NFS filesystems at startup
Quoting Petter Reinholdtsen: : [Raphael Manfredi] : > I don't use /etc/network/interfaces on this machine. It uses the : > old /etc/init.d/network hardwired configuration which says: : : Wow. I have never seen such setup, and it will not work with the : current way NFS mounting is handled. Because of the new behaviuor of : the linux kernel, where boot events are more asynchronous, and thus : very hard to predict, it is required to have a way to delay NFS : mounting until network interfaces are available. Hmm... I've been using linux 2.6.x for a long time, well before I installed "initscripts" and the old way was working perfectly fine. Maybe I was luck as you say, but then it was working. :-) : > Before you object, let me tell you that I have other machines which : > use /etc/network/interfaces and where the same problem occurs : > (i.e. no NFS mounts)! : : Do they have equally interesting configuration? The NFS mounting is : done by ifupdown when the last of the interfaces listed in : /etc/network/interfaces is up. If you want the old synchronous : behavour, use ASYNCMOUNTNFS=no in /etc/default/rcS. No, the other machines use /etc/network/interfaces. However, one of them has 2 network cards (it's my router / firewall), and they are declared as: auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address 192.168.0.1 netmask 255.255.255.0 : : How did you manage to install a Debian machine without the initscripts : package? It is as far as I know, installed by default since before : Potato. I have never seen a default Debian installation without this : package, and thus I wonder how you ended up without it. I installed these machines back in 1998 (it was Debian 2.0 I think). Since then, I have never performed any "apt-get dist-upgrade", I only installed packages as I needed them. True, I had a long time ago the need to create a standalone /lib/init/vars.sh file to be able to let new packages configure. Funnily, none had a dependency on initscripts. Recently though, I had to install a foreign .deb (not from Debian) that required initscripts explicitly. Hence I grabbed it. And then my problems begun... I have no ASYNCMOUNTNFS variable in my /etc/default/rcS script. But I'm reluctant to use this. I would prefer to help you understand why it does not work here, to benefit everyone. Although I do have exotic configs on some machines, others are pretty standard and exhibit the same problems. Raphael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#482817: [Pkg-sysvinit-devel] Bug#482817: initscripts: No longer mounts NFS filesystems at startup
[Raphael Manfredi] > I don't use /etc/network/interfaces on this machine. It uses the > old /etc/init.d/network hardwired configuration which says: Wow. I have never seen such setup, and it will not work with the current way NFS mounting is handled. Because of the new behaviuor of the linux kernel, where boot events are more asynchronous, and thus very hard to predict, it is required to have a way to delay NFS mounting until network interfaces are available. > Before you object, let me tell you that I have other machines which > use /etc/network/interfaces and where the same problem occurs > (i.e. no NFS mounts)! Do they have equally interesting configuration? The NFS mounting is done by ifupdown when the last of the interfaces listed in /etc/network/interfaces is up. If you want the old synchronous behavour, use ASYNCMOUNTNFS=no in /etc/default/rcS. > It was configured exactly the same way. When I installed > initscripts, many new /etc/init.d/* files were installed and the > logic of mounts was obviously changed. I did not change any of my > networking setup or my /etc/fstab.. How did you manage to install a Debian machine without the initscripts package? It is as far as I know, installed by default since before Potato. I have never seen a default Debian installation without this package, and thus I wonder how you ended up without it. Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#482817: [Pkg-sysvinit-devel] Bug#482817: initscripts: No longer mounts NFS filesystems at startup
Quoting Petter Reinholdtsen: : Can you provide the content of /etc/network/interfaces and /etc/fstab? : NFS mounts are done when all interfaces are up. Are there some : interfaces listed that are not brought up during boot? I don't use /etc/network/interfaces on this machine. It uses the old /etc/init.d/network hardwired configuration which says: ifconfig lo 127.0.0.1 IPADDR=192.168.0.3 NETMASK=255.255.255.0 BROADCAST=192.168.0.255 GATEWAY=192.168.0.1 ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST} [ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1 It is triggered by: /etc/rcS.d/S40network -> ../init.d/network Before you object, let me tell you that I have other machines which use /etc/network/interfaces and where the same problem occurs (i.e. no NFS mounts)! My /etc/fstab looks like this: # /dev/md0 / ext2 defaults,errors=remount-ro 01 /dev/hde9none swap sw,pri=8 00 /dev/hda5none swap sw,pri=8 00 /dev/hda9none swap sw,pri=7 00 proc /proc proc defaults 00 /dev/hda1/boot ext2 defaults 02 /dev/md1 /usr ext2 defaults 02 /dev/md2 /var ext2 defaults 02 /dev/md3 /home ext3 defaults 02 /dev/md4 /ext/disk ext3 defaults 02 tours:/var/cache/apt/archives /var/cache/apt/archives nfs bg,hard,intr,nolock : And how was your machine configured before this happend? I thought : the initscripts was always installed It was configured exactly the same way. When I installed initscripts, many new /etc/init.d/* files were installed and the logic of mounts was obviously changed. I did not change any of my networking setup or my /etc/fstab.. Raphael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#482817: [Pkg-sysvinit-devel] Bug#482817: initscripts: No longer mounts NFS filesystems at startup
[Raphael Manfredi] > Everything was working fine when my systems did not use > "initscripts". Unfortunately, I had to install them as some > unstable packages I needed to use required them, so I cannot > downgrade. Can you provide the content of /etc/network/interfaces and /etc/fstab? NFS mounts are done when all interfaces are up. Are there some interfaces listed that are not brought up during boot? And how was your machine configured before this happend? I thought the initscripts was always installed Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]