LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 11-07-2008, 07:39 PM   #1
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 147

Rep: Reputation: 15
NFS does not work. NFSD does not start


Hi guys,

I've been trying to get NFS going on my machine but nfsd does not come up no matter what I do.

Quote:
# service nfs status
rpc.mountd (pid 4525) is running...
nfsd is stopped
# service rpcidmapd status
rpc.idmapd (pid 3810) is running...
# service portmap status
portmap (pid 1839) is running...
I have /var/lib/nfs which points to a local directory:
Quote:
# ls -la /var/lib/
total 60
drwxr-sr-x 13 root root 4096 Jan 1 00:36 .
drwxr-xr-x 21 root root 4096 May 30 2008 ..
drwxr-sr-x 2 root root 4096 May 30 2008 alternatives
drwxr-xr-x 2 root root 4096 Jan 1 00:00 dhclient
drwxr-xr-x 2 root root 4096 May 30 2008 dhcpd
drwx--S--- 2 root root 4096 Jan 1 00:02 drbd
drwxr-xr-x 2 root root 4096 May 30 2008 games
-rw-r--r-- 1 root root 474 Jan 1 2000 logrotate.status
drwxr-xr-x 2 root root 4096 Jan 1 2000 misc
lrwxrwxrwx 1 root root 9 Jan 1 00:36 nfs -> /drbd/nfs
drwxr-sr-x 2 101 104 4096 May 30 2008 ntp
-rw------- 1 root root 512 Jan 1 00:00 random-seed
drwxr-sr-x 2 root root 4096 Jan 1 00:27 rpc_pipefs
drwxr-xr-x 2 root root 4096 Jan 3 2000 rpm
drwxr-sr-x 2 root root 4096 May 30 2008 sepolgen
drwxr-sr-x 4 root root 4096 May 30 2008 stateless
and yes I am using DRBD so I've put nfs folder in the shared disk /drbd.

Here are some useful outputs of various configurations and steps and ...
Quote:
# cat /etc/idmapd.conf
[General]

Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = localdomain

[Mapping]

Nobody-User = nobody
Nobody-Group = nobody

[Translation]
Method = nsswitch
Quote:
# ls -la /var/lib/nfs/
total 24
drwxr-sr-x 5 root root 4096 Jan 1 00:46 .
drwxr-xr-x 3 root root 4096 Jan 1 00:35 ..
-rw-r--r-- 1 root root 167 Jan 1 00:46 etab
-rw-r--r-- 1 root root 346 Jan 2 2000 rmtab
drwxr-xr-x 7 root root 0 Jan 1 00:37 rpc_pipefs
drwx------ 4 rpcuser rpcuser 4096 Jan 1 00:38 statd
-rw------- 1 root root 0 May 28 2008 state
drwxr-sr-x 2 root root 4096 May 28 2008 v4recovery
-rw-r--r-- 1 root root 0 May 28 2008 xtab
Quote:
# mount -a
# mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/var/lib/rpc_pipefs on /drbd/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/drbd2 on /mnt/drbd2_raid0vol2 type ext3 (rw)
Quote:
# service nfs status
rpc.mountd (pid 4525) is running...
nfsd is stopped
# service rpcidmapd status
rpc.idmapd (pid 3810) is running...
# service portmap status
portmap (pid 1839) is running...
# service nfslock status
rpc.statd (pid 3899) is running...
# service nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [FAILED]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
# service nfs status
rpc.mountd (pid 4752) is running...
nfsd is stopped
Quote:
# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 686 status
100024 1 tcp 689 status
100005 1 udp 688 mountd
100005 1 tcp 691 mountd
100005 2 udp 688 mountd
100005 2 tcp 691 mountd
100005 3 udp 688 mountd
100005 3 tcp 691 mountd
Quote:
# cat /etc/exports
/mnt/drbd2_raid0vol2 *(rw,sync,root_squash)
Quote:
# dmesg | tail
nfsd: last server has exited
nfsd: unexporting all filesystems
nfsd: last server has exited
nfsd: unexporting all filesystems
nfsd: last server has exited
nfsd: unexporting all filesystems
nfsd: last server has exited
nfsd: unexporting all filesystems
nfsd: last server has exited
nfsd: unexporting all filesystems
Anybody has any idea why this is happening and how I can fix this thing?

Thanks alot
 
Old 11-11-2008, 05:56 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,274

Rep: Reputation: 61
NFS also uses tcpwrappers for security, some of the later versions wont start with out entries in the /etc/hosts.deny and /etc/hosts.allow files.
 
Old 11-12-2008, 07:15 PM   #3
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 147

Original Poster
Rep: Reputation: 15
Thanks for the info. I have two identical machines and NFS comes up on one of them and not on the other. They seem identical to me in every way until I do:

On broken machine:
# # rpcinfo -p 155.53.176.122
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 892 status
100024 1 tcp 895 status
100005 1 udp 775 mountd
100005 1 tcp 778 mountd
100005 2 udp 775 mountd
100005 2 tcp 778 mountd
100005 3 udp 775 mountd
100005 3 tcp 778 mountd

on the good machine:

# rpcinfo -p 155.53.176.121
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 34908 nlockmgr
100021 3 udp 34908 nlockmgr
100021 4 udp 34908 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 tcp 51565 nlockmgr
100021 3 tcp 51565 nlockmgr
100021 4 tcp 51565 nlockmgr
100005 1 udp 970 mountd
100005 1 tcp 973 mountd
100005 2 udp 970 mountd
100005 2 tcp 973 mountd
100005 3 udp 970 mountd
100005 3 tcp 973 mountd


NFS doesn't start on the broken machine and there's no entry named nlockmgs (I have no idea what this is.).
Someone please help!!!
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFSd fails to start due to RPC? TexasDex Linux - Software 10 03-23-2010 02:02 AM
Root-NFS: Unable to get nfsd port number from server Eileen Linux - Networking 2 04-11-2006 10:18 PM
NFSd start problem raypen Slackware 10 03-16-2006 09:28 AM
nfsd will not start TheOneAndOnlySM Slackware 2 06-08-2004 06:19 PM
Problem with NFS : nfsd daeom fail mabs Linux - Networking 5 07-28-2003 09:53 PM


All times are GMT -5. The time now is 04:10 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