[Eisfair_dev] [e1] nfs4 mount failed

Thomas Quast eisfair at thquast.de
Di Dez 9 00:53:00 CET 2014


Hallo,

jetzt muss ich mit dem Thema nfsserver doch noch mal anfangen:

Gegegeben:
eisfair-1 (p1)  mit nfsserver 1.4.0
eisfair-1 (p17) mit nfsclient 1.2.0

Beide jeweils Kernel 2.6.0 und Base 2.3.6.

nfsserver:

START_NFSSERVER='yes'
NFSSERVER_SUPPORT_NFS3='yes'
NFSSERVER_SUPPORT_NFS4='yes'
NFSSERVER_SHARE_N='3'

NFSSERVER_SHARE_1_ACTIVE='yes'
NFSSERVER_SHARE_1_PATH='/tftpboot/node1'
NFSSERVER_SHARE_1_NAME='node1'
NFSSERVER_SHARE_1_HOSTS_N='1'
NFSSERVER_SHARE_1_HOSTS_1_HOST='192.168.36.0/24'
NFSSERVER_SHARE_1_HOSTS_1_RW='yes'
NFSSERVER_SHARE_1_HOSTS_1_ANONUSER=''
NFSSERVER_SHARE_1_HOSTS_1_ANONGROUP=''
NFSSERVER_SHARE_1_HOSTS_1_ROOT_SQUASH='no'
NFSSERVER_SHARE_1_HOSTS_1_ALL_SQUASH='no'
NFSSERVER_SHARE_1_HOSTS_1_OPTION=''

NFSSERVER_SHARE_2_ACTIVE='yes'
NFSSERVER_SHARE_2_PATH='/tftpboot/node1'
NFSSERVER_SHARE_2_NAME='node1'
NFSSERVER_SHARE_2_HOSTS_N='1'
NFSSERVER_SHARE_2_HOSTS_1_HOST='192.168.36.0/24'
NFSSERVER_SHARE_2_HOSTS_1_RW='yes'
NFSSERVER_SHARE_2_HOSTS_1_ANONUSER=''
NFSSERVER_SHARE_2_HOSTS_1_ANONGROUP=''
NFSSERVER_SHARE_2_HOSTS_1_ROOT_SQUASH='no'
NFSSERVER_SHARE_2_HOSTS_1_ALL_SQUASH='no'
NFSSERVER_SHARE_2_HOSTS_1_OPTION=''

NFSSERVER_SHARE_3_ACTIVE='yes'
NFSSERVER_SHARE_3_PATH='/tftpboot/node1'
NFSSERVER_SHARE_3_NAME='node1'
NFSSERVER_SHARE_3_HOSTS_N='1'
NFSSERVER_SHARE_3_HOSTS_1_HOST='192.168.36.0/24'
NFSSERVER_SHARE_3_HOSTS_1_RW='yes'
NFSSERVER_SHARE_3_HOSTS_1_ANONUSER=''
NFSSERVER_SHARE_3_HOSTS_1_ANONGROUP=''
NFSSERVER_SHARE_3_HOSTS_1_ROOT_SQUASH='no'
NFSSERVER_SHARE_3_HOSTS_1_ALL_SQUASH='no'
NFSSERVER_SHARE_3_HOSTS_1_OPTION=''

nfsclient:

START_NFSCLIENT='yes'
NFSCLIENT_MOUNT_N='3'

NFSCLIENT_MOUNT_1_ACTIVE='yes'
NFSCLIENT_MOUNT_1_HOST='p1'
NFSCLIENT_MOUNT_1_TYPE='nfs4'
NFSCLIENT_MOUNT_1_MOUNTPOINT='/tftpboot/node17'
NFSCLIENT_MOUNT_1_DIRECTORY='/mnt/node17'
NFSCLIENT_MOUNT_1_OPTION='rw'

NFSCLIENT_MOUNT_2_ACTIVE='yes'
NFSCLIENT_MOUNT_2_HOST='p1'
NFSCLIENT_MOUNT_2_TYPE='nfs4'
NFSCLIENT_MOUNT_2_MOUNTPOINT='/tftpboot/node1'
NFSCLIENT_MOUNT_2_DIRECTORY='/mnt/node1'
NFSCLIENT_MOUNT_2_OPTION='rw'

NFSCLIENT_MOUNT_3_ACTIVE='yes'
NFSCLIENT_MOUNT_3_HOST='p1'
NFSCLIENT_MOUNT_3_TYPE='nfs4'
NFSCLIENT_MOUNT_3_MOUNTPOINT='/tftpboot/node2'
NFSCLIENT_MOUNT_3_DIRECTORY='/mnt/node2'
NFSCLIENT_MOUNT_3_OPTION='rw'

Kurz: Es funktioniert nicht.

Lang:
In /etc auf p1 wird keine Datei exports angelegt. In /var/log/messages
findet sich nichts zu den Verbindungsversuchen. Zum Start findet sich
folgendes:

p1 rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
p1 rpc.mountd[23443]: Version 1.2.8 starting
p1 rpc.statd[23452]: Version 1.2.8 starting
p1 rpc.statd[23452]: Flags: TI-RPC
p1 kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state
   recovery directory
p1 kernel: NFSD: starting 90-second grace period
p1 sm-notify[23489]: Version 1.2.8 starting

Auf Clientseite (p17) erhalte ich nach Speicherung der config
folgendes:

Checking configuration file ...


Activate configuration now (y/n) [yes]?
creating idmapd.conf file ...
creating services file ...
Stopping NFSclient ...
- rpc.statd ...
- rpc.idmapd ...
- rpcbind ...
- nfs ...
- nfs_acl ...
- lockd ...
- sunrpc ...
Starting NFSclient ...
- lockd ...
- nfs ...
- rpcbind ...
- rpc.idmapd ...
- rpc.statd ...
- mounting p1:/tftpboot/node17 as /mnt/node17 (nfs4) ...
mount.nfs4: mount(2): Connection refused
[diese Meldung erfolgt weitere 15 mal]
mount.nfs4: Connection timed out
  mount.nfs4: timeout set for Tue Dec  9 01:13:16 2014
  mount.nfs4: trying text-based options 'addr=192.168.36.1,clientaddr=192.168.36.17'
[diese Meldung erfolgt weitere 15 mal}
- mounting p1:/tftpboot/node1 as /mnt/node1 (nfs4) ...
mount.nfs4: mount(2): Connection refused
[diese Meldung erfolgt weitere 15 mal]
mount.nfs4: Connection timed out
  mount.nfs4: timeout set for Tue Dec  9 01:15:21 2014
  mount.nfs4: trying text-based options 'addr=192.168.36.1,clientaddr=192.168.36.17'
[diese Meldung erfolgt weitere 15 mal]
- mounting p1:/tftpboot/node1 as /mnt/node2 (nfs4) ...
mount.nfs4: mount(2): Connection refused
[diese Meldung erfolgt weitere 15 mal]
mount.nfs4: Connection timed out
  mount.nfs4: timeout set for Tue Dec  9 01:17:26 2014
  mount.nfs4: trying text-based options 'addr=192.168.36.1,clientaddr=192.168.36.17'
[diese Meldung erfolgt weitere 15 mal]

Auf p1 und p17 finde ich in /var/log/messages keine Infos dazu.

Erstelle ich jetzt auf p1 eine Datei /etc/exports mit folgendem Inhalt:

/tftpboot/node17 192.168.36.0/255.255.255.0(sync,rw,subtree_check,no_root_squash)
/tftpboot/node1  192.168.36.0/255.255.255.0(sync,rw,subtree_check,no_root_squash)
/tftpboot/node2  192.168.36.0/255.255.255.0(sync,rw,subtree_check,no_root_squash)

und fuehre anschliessend auf p1

/etc/init.d/nfsserver restart

aus, so erhalte ich auf p17 nach

/etc/init.d/nfsclient restart

folgende Ausgabe:

Stopping NFSclient ...
- rpc.statd ...
- rpc.idmapd ...
- rpcbind ...
- nfs ...
- nfs_acl ...
- lockd ...
- sunrpc ...
Starting NFSclient ...
- lockd ...
- nfs ...
- rpcbind ...
- rpc.idmapd ...
- rpc.statd ...
- mounting p1:/tftpboot/node17 as /mnt/node17 (nfs4) ...
  mount.nfs4: timeout set for Tue Dec  9 01:30:08 2014
  mount.nfs4: trying text-based options 'addr=192.168.36.1,clientaddr=192.168.36.17'
- mounting p1:/tftpboot/node1 as /mnt/node1 (nfs4) ...
  mount.nfs4: timeout set for Tue Dec  9 01:30:08 2014
  mount.nfs4: trying text-based options 'addr=192.168.36.1,clientaddr=192.168.36.17'
- mounting p1:/tftpboot/node2 as /mnt/node2 (nfs4) ...
  mount.nfs4: timeout set for Tue Dec  9 01:30:08 2014
  mount.nfs4: trying text-based options 'addr=192.168.36.1,clientaddr=192.168.36.17'

Auf p1 finde ich in /var/log/messages keine Infos darueber.
Auf p17 steht in /var/log/messages folgendes:

p17 rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
p17 sm-notify[2209]: Version 1.2.8 starting
p17 sm-notify[2209]: Already notifying clients; Exiting!
p17 rpc.statd[2237]: Version 1.2.8 starting
p17 rpc.statd[2237]: Flags: TI-RPC
p17 rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
p17 sm-notify[2670]: Version 1.2.8 starting
p17 sm-notify[2670]: Already notifying clients; Exiting!
p17 rpc.statd[2698]: Version 1.2.8 starting
p17 rpc.statd[2698]: Flags: TI-RPC
p17 rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
p17 sm-notify[3111]: Version 1.2.8 starting
p17 sm-notify[3111]: Already notifying clients; Exiting!
p17 rpc.statd[3139]: Version 1.2.8 starting
p17 rpc.statd[3139]: Flags: TI-RPC

Somit fehlt mir bei NFSv4 eine /etc/exports auf der Maschine mit
nfsserver damit der mount funktioniert.

Oder mache ich hier etwas falsch?

Gruss,
Thomas



Mehr Informationen über die Mailingliste Eisfair_dev