[opensuse] Anyone booting 13.1 with root on nfs?
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. -- Per Jessen, Zürich (2.1°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Wed, 29 Jan 2014 17:06:31 +0100
Per Jessen
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? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrey Borzenkov wrote:
В Wed, 29 Jan 2014 17:06:31 +0100 Per Jessen
пишет: 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@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Wed, 29 Jan 2014 17:34:18 +0100
Per Jessen
Andrey Borzenkov wrote:
This is how I build it:
mkinitrd -k vmlinuz-xen -i initrd-xen -d /dev/nfs
... 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
Try "mkinitrd -d 10.42.8.254:/srv/nfs/madrid/root ..."
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 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrey Borzenkov wrote:
В Wed, 29 Jan 2014 17:34:18 +0100 Per Jessen
пишет: Andrey Borzenkov wrote:
This is how I build it:
mkinitrd -k vmlinuz-xen -i initrd-xen -d /dev/nfs
... 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
Try "mkinitrd -d 10.42.8.254:/srv/nfs/madrid/root ..."
I'll try it, but it's not a solution. I need to be able to specify the nfs-server as a command line argument. -- Per Jessen, Zürich (0.8°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Wed, 29 Jan 2014 18:17:16 +0100
Per Jessen
Andrey Borzenkov wrote:
В Wed, 29 Jan 2014 17:34:18 +0100 Per Jessen
пишет: Andrey Borzenkov wrote:
This is how I build it:
mkinitrd -k vmlinuz-xen -i initrd-xen -d /dev/nfs
... 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
Try "mkinitrd -d 10.42.8.254:/srv/nfs/madrid/root ..."
I'll try it, but it's not a solution. I need to be able to specify the nfs-server as a command line argument.
using root=10.42.8.254:/srv/nfs/madrid/root (without nfsroot) works for me ... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrey Borzenkov wrote:
В Wed, 29 Jan 2014 18:17:16 +0100 Per Jessen
пишет: Andrey Borzenkov wrote:
В Wed, 29 Jan 2014 17:34:18 +0100 Per Jessen
пишет: Andrey Borzenkov wrote:
This is how I build it:
mkinitrd -k vmlinuz-xen -i initrd-xen -d /dev/nfs
... 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
Try "mkinitrd -d 10.42.8.254:/srv/nfs/madrid/root ..."
I'll try it, but it's not a solution. I need to be able to specify the nfs-server as a command line argument.
using root=10.42.8.254:/srv/nfs/madrid/root (without nfsroot) works for me ...
Interesting, I wonder why that was changed. https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt -- Per Jessen, Zürich (-1.4°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
Andrey Borzenkov wrote:
В Wed, 29 Jan 2014 18:17:16 +0100 Per Jessen
пишет: Andrey Borzenkov wrote:
В Wed, 29 Jan 2014 17:34:18 +0100 Per Jessen
пишет: Andrey Borzenkov wrote:
> This is how I build it: > > mkinitrd -k vmlinuz-xen -i initrd-xen -d /dev/nfs > ... 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
Try "mkinitrd -d 10.42.8.254:/srv/nfs/madrid/root ..."
I'll try it, but it's not a solution. I need to be able to specify the nfs-server as a command line argument.
using root=10.42.8.254:/srv/nfs/madrid/root (without nfsroot) works for me ...
Interesting, I wonder why that was changed.
https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt
Well, booting with root=10.42.8.254:/srv/nfs/madrid/root works for me too. Thanks. https://bugzilla.novell.com/show_bug.cgi?id=861218 -- Per Jessen, Zürich (-1.2°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Jan 30, 2014 at 10:45 AM, Per Jessen
using root=10.42.8.254:/srv/nfs/madrid/root (without nfsroot) works for me ...
Interesting, I wonder why that was changed.
https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt
I do not think it was changed intentionally. nfsroot is still in scripts but I failed to understand what scripts do (well, I did not try that hard). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrey Borzenkov wrote:
On Thu, Jan 30, 2014 at 10:45 AM, Per Jessen
wrote: using root=10.42.8.254:/srv/nfs/madrid/root (without nfsroot) works for me ... Interesting, I wonder why that was changed.
https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt
I do not think it was changed intentionally. nfsroot is still in scripts but I failed to understand what scripts do (well, I did not try that hard).
Same here, I also read the initrd scripts and failed to understand quite how they work :-) I didn't try that hard either .... /Per -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Andrey Borzenkov
-
Per Jessen