LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-10-2011, 08:45 PM   #1
jwpaine
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Rep: Reputation: Disabled
diskless node unable to mount root FS via NFS


Hello! I'm using TFTP, NFS and DHCP to boot a diskless node using PXELinux.

Each node has a basic root filesystem which resides in
/diskless/ip_address on the server

Right now, my node acquires an IP from my DHCP server, which instructs the bootrom to download a file called pxelinux.0, and the default pxelinux config file (/diskless/pxelinux.conf/default ) is shown below:

Code:
DEFAULT /bzImage
APPEND ip=dhcp root=/dev/nfs nfsroot=192.168.1.1:/diskless/192.168.1.21
The node downloads the bzImage via tftp (INTFTPD_PATH="/diskless") and boots the kernel. It goes through its hardware detection and all that fun stuff, and then the message:

Quote:
VFS: cannot open root device "nfs" or unknown block(2,0)
The root device that it is refering to "nfs" is that which is defined in the pxelinux default config as root = /dev/nfs

[NOTE: Modern kernels recognize root=/dev/nfs as a command-line argument] Which leads me to think that I am possibly missing something in the kernel (bzImage) that the client node is booting. Here is a grep NFS of the kernel .config file:

Code:
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
# CONFIG_NFS_V4_1 is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
# CONFIG_NFS_USE_NEW_IDMAPPER is not set
CONFIG_NFSD=y
CONFIG_NFSD_DEPRECATED=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
# CONFIG_NFSD_V4 is not set
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
From what I can see, everything is enabled that needs to be enabled. Maybe a missing kernel option isn't the answer.

ANY suggestions would be awesome!

Last edited by jwpaine; 10-10-2011 at 08:48 PM.
 
Old 10-11-2011, 04:58 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I don't think defining a mountpoint in the /dev tree is a great idea. Try a different mountpoint. I assume you plan to do a pivotroot after the NFS mount happens, otherwise I think you have to mount the NFS share on '/'.

--- rod.
 
Old 10-11-2011, 08:00 PM   #3
jwpaine
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
No. root=/dev/nfs does not point to a specific device. "/dev/nfs" is an argument that is read by the kernel, before opening a root FS via NFS.

The problem was the kernel on my Gentoo server had been configured for NFS version 2 server support, when my client was using 3.0, so a little change and now my diskless node is booting up and providing a login prompt.

Thanks anyways, though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to mount root via NFS devaras Linux - Newbie 1 02-23-2010 09:16 PM
VFS: unable to mount root via NFS... gireya Linux From Scratch 0 09-05-2008 06:29 PM
VFS: Unable to mount root fs via NFS, trying floppy aleksanteri Linux From Scratch 0 10-26-2007 12:00 AM
Diskless node cant mount root NFS filesystem for read/write leontini Linux - Networking 0 01-31-2007 01:03 AM
Help move gcc stuff into shared root for diskless node GUIPenguin Linux - General 0 03-20-2006 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration