LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-17-2012, 03:07 AM   #1
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 10.04
Posts: 198

Rep: Reputation: 33
root-nfs can not start up


Hello all,

I have encounted "Unable to get nfsd port number from server" when start up a root-nfs system via tftp.

Machine A: centos5.4, dhcp/tftp server 172.16.30.253
Machine B: client which support PXE (dhcp_ip: 172.16.30.254)

First, I mount a HD on machine B and rebuild the kernel which can support root-nfs, and then copy the necessary directories and files to the NFS share "/mnt/c" on machine A. Here's the configuration file on Machine A,

/etc/dhcpd.conf
Code:
ddns-update-style interim;
ignore client-updates;
next-server 172.16.30.253;
filename "/pxelinux.0";

subnet 172.16.30.0 netmask 255.255.255.0 {

        option subnet-mask              255.255.255.0;
        option domain-name-servers      172.16.30.253;
        option time-offset              -18000; # Eastern Standard Time
        range dynamic-bootp 172.16.30.128 172.16.30.254;
        default-lease-time 21600;
        max-lease-time 43200;

}
/tftpboot/pxelinux.cfg/default
Code:
default Linux
prompt 0
label Linux
  kernel vmlinuz
  append init=/sbin/init root=/dev/nfs rw nfsroot=172.16.30.253:/mnt/c ip=dhcp vga=text

/etc/hosts.allow
Code:
in.tftp: 172.16.30.254
/etc/exports
Code:
/mnt/c	*(rw,sync,no_all_squash,no_root_squash)
service status,dhcpd and xinetd are both running.
Code:
# service nfs status
rpc.mountd (pid 2558) is running...
nfsd (pid 2555 2554 2553 2552 2551 2550 2549 2548) is running...
rpc.rquotad (pid 2526) is running...

Machine A and B are connnected to a cisco switch. when poweron B, it encounted:
Code:
Looking up port of RPC 100003/2 ON 172.16.30.253
rpcbind: server 172.16.30.253 not responding, time out
Root-NFS: Unable to get nfsd port number from server, using default

Looking up port of RPC 100005/1 ON 172.16.30.253
rpcbind: 172.16.30.253 not responding, time out
Root-NFS: Unable to get nfsd port number from server, using default

mount:server 172.16.30.253 not responding, time out
Root-NFS: Server returned -5 while mounting /nfsroot
I have googled many articles, but none can help me fix it. Would you please give me any suggestion?

Thanks in advanced,

Phillip
 
Old 12-18-2012, 06:11 PM   #2
jason_not
Member
 
Registered: Aug 2010
Location: Beaverton, Oregon, USA
Distribution: Pfsense, Ubuntu, Centos, Fedora, Redhat, Scientfic, MacOS
Posts: 76

Rep: Reputation: 19
Hello,

My first two thoughts are "is portmapper running on the nfs server" and "is there a firewall running on the nfs server"

A bit of history: rpc ports are not the same as "tcp" or "udp" ports. the rpc portmapper listens on tcp and/or udp port 111, incase you have trouble with the firewall.

on nfs version 3 and below:

On the nfs server, you should be able to type "rpcinfo -p" and get a list of the various rpc services running. If there is an error, then portmapper might not be running.

if this works, AND you have a separate linux system, you can run on the other linux system "rpcinfo -p <nfs server ip>" to see if the firewall is blocking access to the portmapper.

--jason
 
Old 01-25-2013, 12:12 AM   #3
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 10.04
Posts: 198

Original Poster
Rep: Reputation: 33
Thank you, Jason.

I did not build the correct driver for on board Intel Network-device. After built-in and recompiled, it was fixed.
 
Old 01-25-2013, 12:18 AM   #4
jason_not
Member
 
Registered: Aug 2010
Location: Beaverton, Oregon, USA
Distribution: Pfsense, Ubuntu, Centos, Fedora, Redhat, Scientfic, MacOS
Posts: 76

Rep: Reputation: 19
Hey, that's really nice to hear! thanks for posting!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Server - 10.04.03 - NFS export with Kerberos (MIT) - NFS Won't Start tekkon7 Linux - Server 2 11-07-2011 09:53 AM
nfs root path variable (pxe/nfs boot) freeindy Linux - Networking 3 03-11-2008 09:19 AM
On NFS, non-root users can move/rename files belonging to root. Stuart Morrow Linux - Server 2 11-05-2007 11:12 AM
NFS Root setup - can't log in as root after CHMOD ? gallwapa Linux - General 1 04-02-2007 04:31 AM
Very Slow Exporting during NFS Start / Many NFS Problems VorlonInfoTech Linux - Networking 3 06-28-2006 06:48 PM


All times are GMT -5. The time now is 06:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration