You are not logged in.

#1 2009-12-04 10:52:57

gianfranco
Member
Registered: 2009-10-06
Posts: 4

Problems setting up an NFS server

Hi everybody,

I just completed my first arch install. :-)

I have a desktop and a laptop, and I installed Arch on the desktop (the laptop runs Ubuntu 9.10). I had a few difficulties here and there, but I now have the system up and running, and I'm very happy. big_smile

I have a problem setting up an NFS server. With Ubuntu everything was working, so I'm assuming that the Ubuntu machine (client) is set-up correctly. I'm trying to troubleshoot the arch box (server) now.

I followed this wiki article: http://wiki.archlinux.org/index.php/Nfs

Now, I have these problems:
- when I start the daemons, I get:

[root@myhost ~]# /etc/rc.d/rpcbind start
:: Starting rpcbind                                                      [FAIL] 
[root@myhost ~]# /etc/rc.d/nfs-common start
:: Starting rpc.statd daemon                                             [FAIL] 
[root@myhost ~]# /etc/rc.d/nfs-server start
:: Mounting nfsd filesystem                                              [DONE] 
:: Exporting all directories                                             [BUSY] exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.1/24:/home".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

                                                                         [DONE] 
:: Starting rpc.nfsd daemon                                              [FAIL]

- If I mount the share on the client with "sudo mount 192.168.1.20:/home /media/desktop", IT IS mounted but I can't browse it because I have no privileges to access the home directory for the user.


my /etc/exports looks like this:

# /etc/exports: the access control list for filesystems which may be exported
#        to NFS clients.  See exports(5).

/home 192.168.1.1/24(rw,sync,all_squash,anonuid=99,anongid=99))

/etc/conf.d/nfs-common.conf:

# Parameters to be passed to nfs-common (nfs clients & server) init script.
#

# If you do not set values for the NEED_ options, they will be attempted
# autodetected; this should be sufficient for most people. Valid alternatives
# for the NEED_ options are "yes" and "no".

# Do you want to start the statd daemon? It is not needed for NFSv4.
NEED_STATD=

# Options to pass to rpc.statd.
# See rpc.statd(8) for more details.
# N.B. statd normally runs on both client and server, and run-time
# options should be specified accordingly. Specifically, the Arch
# NFS init scripts require the --no-notify flag on the server,
# but not on the client e.g.
# STATD_OPTS="--no-notify -p 32765 -o 32766" -> server
# STATD_OPTS="-p 32765 -o 32766" -> client
STATD_OPTS="--no-notify"

# Options to pass to sm-notify
# e.g. SMNOTIFY_OPTS="-p 32764"
SMNOTIFY_OPTS=""

# Do you want to start the idmapd daemon? It is only needed for NFSv4.
NEED_IDMAPD=

# Options to pass to rpc.idmapd.
# See rpc.idmapd(8) for more details.
IDMAPD_OPTS=

# Do you want to start the gssd daemon? It is required for Kerberos mounts.
NEED_GSSD=

# Options to pass to rpc.gssd.
# See rpc.gssd(8) for more details.
GSSD_OPTS=

# Where to mount rpc_pipefs filesystem; the default is "/var/lib/nfs/rpc_pipefs".
PIPEFS_MOUNTPOINT=

# Options used to mount rpc_pipefs filesystem; the default is "defaults".
PIPEFS_MOUNTOPTS=

/etc/hosts.allow:

nfsd: 192.168.1.0/255.255.255.0
rpcbind: 192.168.1.0/255.255.255.0
mountd: 192.168.1.0/255.255.255.0

Any help would be very appreciated!

Offline

#2 2009-12-04 11:42:39

gianfranco
Member
Registered: 2009-10-06
Posts: 4

Re: Problems setting up an NFS server

Ok, apparently the first issue (starting rpcbind) is fixed.

I still have to sort out the problem with the privileges. Should be straightforward, since I can open the mounted directory (/home), but not the ones nested into it.

Offline

#3 2009-12-04 16:34:55

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: Problems setting up an NFS server

Have you seen the wiki link to the nfsv4 page?

http://wiki.archlinux.org/index.php/NFSv4

It was very helpful to me.

Last edited by zenlord (2009-12-04 16:35:12)

Offline

#4 2009-12-04 17:24:57

davidlondonuk
Member
Registered: 2009-06-24
Posts: 49

Re: Problems setting up an NFS server

Hi,

I have a ubuntu server with nfs server and a laptop running arch that has the nfs client, I found this useful along with the arch guide:

https://help.ubuntu.com/community/SettingUpNFSHowTo

http://wiki.archlinux.org/index.php/Nfs

Using the two guides I now have it working.

Offline

#5 2009-12-04 17:34:05

gianfranco
Member
Registered: 2009-10-06
Posts: 4

Re: Problems setting up an NFS server

Thanks, I finally got it working.

I realized that even though both machines had the same group, my Ubuntu machine (client) group has GID 1000, while the Arch one has GID 1001. I created a group that has GID 1001 on the client, and now everything is working.

I'm wondering why my Arch username and group both have 1001 rather than 1000 (which I suppose would be the default number for the first user created).

Anyway, thanks again for your inputs.

Offline

Board footer

Powered by FluxBB