Mailinglist Archive: opensuse (1420 mails)

< Previous Next >
Re: [opensuse] Anyone booting 13.1 with root on nfs?
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Wed, 29 Jan 2014 17:34:18 +0100
  • Message-id: <lcbaim$65p$1@saturn.local.net>
Andrey Borzenkov wrote:

В Wed, 29 Jan 2014 17:06:31 +0100
Per Jessen <per@xxxxxxxxxxxx> пишет:

I've upgraded a system to 13.1 and I'm having trouble getting the
initrd built correctly, or such that it will boot with root on nfs.

This is how I build it:

mkinitrd -k vmlinuz-xen -i initrd-xen -d /dev/nfs

If I don't add "-d /dev/nfs", the initrd is built without nfs and
network support. However, when I boot it with:

root=/dev/nfs rw nfsroot=10.1.2.3:/srv/nfs/madrid/root
rootflags=hard,intr,v3,wsize=8192,rsize=8192

root is never mounted, and the startup breaks out into a shell.



Did you check whether network is up?

Yep, the network is fine. To recover the system, I simply continue with
mounting the nfs root:

mount -t nfs -o rw,hard,intr,v3,etc 10.1.2.3:/srv/nfs/madrid/root /root

then I hit ctrl-D and the system continues the boot-up.

Here's a clip from the serial console when this happens:

preping 12-network.sh
running 12-network.sh
[ 1.698937] NET: Registered protocol family 17
running dhcpcd on interface eth0
[ 1.708476] bnx2 0000:09:01.0: irq 93 (327) for MSI/MSI-X
[ 1.832080] bnx2 0000:09:01.0 eth0: using MSI
[ 1.832170] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 4.973937] bnx2 0000:09:01.0 eth0: NIC Copper Link is Up, 1000 Mbps
full duplex
[ 4.973949]
[ 4.974032] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
preping 21-devinit_done.sh
running 21-devinit_done.sh
preping 21-nfs.sh
running 21-nfs.sh
[ 11.895954] RPC: Registered named UNIX socket transport module.
[ 11.895969] RPC: Registered udp transport module.
[ 11.895973] RPC: Registered tcp transport module.
[ 11.895977] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 11.899493] FS-Cache: Loaded
[ 11.903132] FS-Cache: Netfs 'nfs' registered for caching
[ 11.921066] NFS: Registering the id_resolver key type
[ 11.921090] Key type id_resolver registered
[ 11.921095] Key type id_legacy registered
preping 81-mount.sh
running 81-mount.sh
device node not found
Mounting root /dev/nfs
mount -o rw,hard,intr,v3,wsize=8192,rsize=8192,nolock -t
nfs /dev/nfs /root
mount.nfs: remote share not in 'host:dir' format
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
this is clearly the issue

could not mount root filesystem -- exiting to /usr/sbin/sulogin
Give root password for maintenance
(or type Control-D to continue):
$ mount -o rw,hard,intr,v3,nolock -t nfs
10.42.8.254:/srv/nfs/madrid/root /root
$ exit
preping 82-remount.sh
running 82-remount.sh
preping 91-createfb.sh
running 91-createfb.sh
preping 91-killudev.sh
running 91-killudev.sh
preping 91-mtab.sh
running 91-mtab.sh
preping 91-shell.sh
running 91-shell.sh
preping 93-boot.sh
running 93-boot.sh




--
Per Jessen, Zürich (1.8°C)
http://www.hostsuisse.com/ - dedicated server rental in Switzerland.

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups