NFS boot from NAS device

Help with booting MiniMyth

Moderator: Pablo

Post Reply
Johan
Member
Posts: 16
Joined: Thu Aug 17, 2006 10:13 am

NFS boot from NAS device

Post by Johan » Mon Jun 21, 2010 8:20 pm

Hello,

I can't figure this one out...

I boot Minimyth from NFS from a Linux box with the NFS kernel daemon. This is working.

Now I have this really nice NAS device with Linux on it, and I want to boot from this device.
Although NFS seems to work correctly, I can not boot from this NAS device.
I always get:

"Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)"

The only difference I known of, is that it is a Userspace NFS daemon, instead of a Kernel daemon.

To be clear: The TFTP server is still exactly the same and loading the kernel from TFTP works.
Booting over NFS from the NAS device doesn't seem to work.

Is there anything different in the userspace NFS server implementation that makes it impossible to boot from it?
Or do I need a certain options in /etc/exports?


My pxe config:
Drobo is not working, the other is working.
-----------------------------------------------------------
DEFAULT nfs-minimyth-0.22.0-72-drobo

LABEL nfs-minimyth-0.22.0-72
KERNEL nfs-minimyth-0.22.0-72/kernel
APPEND ro root=/dev/nfs ip=dhcp nfsroot=A.B.C.D:/home/nfs/minimyth-0.22.0-72

LABEL nfs-minimyth-0.22.0-72-drobo
KERNEL nfs-minimyth-0.22.0-72/kernel
APPEND ro root=/dev/nfs ip=dhcp nfsroot=A.B.C.E:/mnt/DroboShares/Drobo/NFS/Minimyth/minimyth-0.22.0-72
-----------------------------------------------------------------

showmount -e shows the exported direcories
---------------------------------------------------
showmount -e A.B.C.D
Export list for A.B.C.D:
/home/nfs A.B.C.0/24

showmount -e A.B.C.E
Export list for A.B.C.E:
/mnt/DroboShares/Drobo/NFS/Minimyth A.B.C.0/24
----------------------------------------------------

I can mount them:
(I copy-pasted from pxe config, just to be sure...)
------------------------------------
mount A.B.C.E:/mnt/DroboShares/Drobo/NFS/Minimyth/minimyth-0.22.0-72 /mnt/test1/

ls -l /mnt/test1/
total 20
drwxr-xr-x 2 root root 4096 2010-06-18 19:51 bin
lrwxrwxrwx 1 root root 13 2010-06-18 19:51 dev -> rootfs-ro/dev
lrwxrwxrwx 1 root root 13 2010-06-18 19:51 lib -> rootfs-ro/lib
drwxr-xr-x 2 root root 4096 2009-11-11 16:01 rootfs
drwxr-xr-x 12 root root 4096 2010-06-18 19:51 rootfs-ro
drwxr-xr-x 2 root root 4096 2009-11-11 16:01 rw
drwxr-xr-x 2 root root 4096 2010-06-18 19:51 sbin


mount A.B.C.D:/home/nfs/minimyth-0.22.0-72 /mnt/test2/

/mnt# ls -l /mnt/test2/
total 20
drwxr-xr-x 2 root root 4096 2009-11-14 12:46 bin
lrwxrwxrwx 1 root root 13 2009-11-14 12:46 dev -> rootfs-ro/dev
lrwxrwxrwx 1 root root 13 2009-11-14 12:46 lib -> rootfs-ro/lib
drwxr-xr-x 2 root root 4096 2009-11-14 12:49 rootfs
drwxr-xr-x 12 root root 4096 2009-11-11 16:01 rootfs-ro
drwxr-xr-x 2 root root 4096 2009-11-11 16:01 rw
drwxr-xr-x 2 root root 4096 2009-11-14 12:46 sbin
---------------------------------------------------

Recursively comparing these directories doesn't show any difference.
When browsing the files, the major and minor numbers of all device files are the same, etc...
---------------------------------------------------
diff -r /mnt/test1/ /mnt/test2/
---------------------------------------------------


Any ideas?

I use the same userspace NFS on this NAS to mount my music and never had any problems with it. (Changing meta-tags, playing it, adding to it, etc...)

Post Reply