From: Bruce Dubbs <bruce.dubbs@gmail.com>
To: linux-nfs@vger.kernel.org
Subject: nfs server issues
Date: Wed, 30 Nov 2011 17:31:54 -0600 [thread overview]
Message-ID: <4ED6BCEA.9050000@gmail.com> (raw)
I am trying to document the installation of nfs for Linux From Scratch.
The client works, but the server does not and I'm looking for some
help. If this is the wrong place to ask for help, please redirect me.
For now, I am only trying to get nfs version 3 to work.
# mount -t nfs -o nfsvers=3 lfs6:/home/bdubbs /mnt/test
[ mounts OK ]
# mount -t nfs -o nfsvers=3 localhost:/usr/src /mnt/tmp
# mount.nfs: requested NFS version or transport protocol is not supported
Any pointers are appreciated. Details of the procedures I've used are
below.
-- Bruce Dubbs
linuxfromscratch.org
The packages I'm using:
linux-3.0.4
libtirpc-0.2.2
rpcbind-0.2.0
nfs-utils-1.2.5
glibc-2.14.1
util-linux-2.20
The build procedures were as follows:
1. Restore nfs/nis headers omitted by glibc-2.14.1
2. Build libtirpc
Remove auth_des.c authdes_prot.c des_crypt.c from Makefile
Comment out authdes_create() in rpc_soc.c
./configure --prefix=/usr --libdir=/lib
3. Build rpcbind
./configure --prefix=/usr --bindir=/sbin
Update /etc/services for rpcbind on port 111
4. Build nfs-utils
LIBS=-lpthread ./configure --prefix=/usr \
--sysconfdir=/etc --disable-nfsv4 --disable-nfsv41 \
--disable-gss
Start rpcbind
Start rpc.mountd
Run rpc.nfsd -p 2049 8
Start rpc.statd
Run exportfs -ra
/etc/exports has:
/usr/src 192.168.0.0/24(rw,async,no_root_squash,subtree_check)
rpcinfo -p gives:
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 52645 mountd
100005 1 tcp 47533 mountd
100005 2 udp 60954 mountd
100005 2 tcp 56425 mountd
100005 3 udp 33939 mountd
100005 3 tcp 56892 mountd
100024 1 udp 34641 status
100024 1 tcp 50491 status
# ps -ef|grep 'nfs\|rpc\|lock'
root 291 2 0 Nov26 ? 00:00:00 [kblockd]
root 498 2 0 Nov26 ? 00:00:00 [rpciod]
root 613 2 0 Nov26 ? 00:00:00 [nfsiod]
root 1136 2 0 Nov28 ? 00:00:00 [lockd]
root 1137 2 0 Nov28 ? 00:00:00 [nfsd]
root 1138 2 0 Nov28 ? 00:00:00 [nfsd]
root 1139 2 0 Nov28 ? 00:00:00 [nfsd]
root 1140 2 0 Nov28 ? 00:00:00 [nfsd]
root 1141 2 0 Nov28 ? 00:00:00 [nfsd]
root 1142 2 0 Nov28 ? 00:00:00 [nfsd]
root 1143 2 0 Nov28 ? 00:00:00 [nfsd]
root 1144 2 0 Nov28 ? 00:00:00 [nfsd]
root 1889 1 0 Nov28 ? 00:00:00 /usr/sbin/rpc.statd
root 12615 1 0 Nov29 ? 00:00:00 rpc.statd --no-notify
root 12618 1 0 Nov29 ? 00:00:00 rpc.statd --no-notify
root 12685 1 0 Nov29 ? 00:00:00 rpc.statd --no-notify
root 12711 1 0 Nov29 ? 00:00:00 rpc.statd --no-notify
root 12923 1 0 Nov29 ? 00:00:00 rpc.statd --no-notify
root 14127 1 0 Nov29 ? 00:00:00 rpc.statd --no-notify
root 14494 1 0 Nov29 ? 00:00:00 rpc.statd --no-notify
root 14861 1 0 Nov29 ? 00:00:00 rpc.statd --no-notify
root 15248 1 0 Nov29 ? 00:00:00 rpc.statd --no-notify
root 15819 1 0 Nov29 ? 00:00:00 /sbin/rpcbind
root 16423 1 0 12:34 ? 00:00:00 /usr/sbin/rpc.mountd
root 16432 1 0 12:36 ? 00:00:00 /usr/sbin/rpc.statd
Kernel configuration:
CONFIG_NETWORK_FILESYSTEMS=y
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 is not set
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
# CONFIG_NFSD_V4 is not set
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
next reply other threads:[~2011-11-30 23:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-30 23:31 Bruce Dubbs [this message]
2011-12-01 2:43 ` nfs server issues Jim Rees
[not found] ` <4ED704E5.2030500@gmail.com>
2011-12-01 5:07 ` Bruce Dubbs
2011-12-01 13:18 ` Steve Dickson
2011-12-01 16:59 ` Bruce Dubbs
2011-12-01 17:25 ` Bruce Dubbs
2011-12-01 13:19 ` peter.staubach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ED6BCEA.9050000@gmail.com \
--to=bruce.dubbs@gmail.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox