public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* nfs server issues
@ 2011-11-30 23:31 Bruce Dubbs
  2011-12-01  2:43 ` Jim Rees
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bruce Dubbs @ 2011-11-30 23:31 UTC (permalink / raw)
  To: linux-nfs

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-12-01 17:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-30 23:31 nfs server issues Bruce Dubbs
2011-12-01  2:43 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox