[Eisfair_dev] [e1] nfs4 mount failed

Thomas Quast eisfair at thquast.de
Mi Dez 10 19:58:00 CET 2014


Hallo Holger,

Holger Bruenjes schrieb:

>> Das greift nicht, da die shares nicht unter /var/run/..., sondern
>> unter /run/... zu finden sind.
>>
>> Aendert man Zeile 398 ab in
>>
>> default_nfs4_exportpath=/run/nfs4exports
>>
>> so funktioniert auch ein umount und das entladen.

> ehmm, dass sollte aber egal sein, da /var/run ein link auf /run
> ist|sein sollte

> lrwxrwxrwx 1 root root 6 2014-02-08 19:29 /var/run -> ../run

'Sollte' vielleicht. Tatsaechlich ist es das aber nicht. Eine
detaillierte Beschreibung mit Loesung ist meinem vorhergehenden
Posting zu entnehmen.

Hier ein paar 'ungekuerzte Bilder' dazu (vor meinem Bugfix):

root at p1 # mount
/dev/sda3 on / type ext3 (rw,errors=remount-ro,acl,user_xattr)
/dev/sda1 on /boot type ext3 (rw,errors=remount-ro)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/sys on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
root at p1 #
root at p1 # /etc/init.d/nfsserver start
Starting NFSserver ...
- mount bind NFSv4 shares ...
- rpcbind ...
- rpc.idmapd ...
- rpc.mountd ...
- rpc.statd ...
- rpc.nfsd ...
root at p1 #
root at p1 # mount
/dev/sda3 on / type ext3 (rw,errors=remount-ro,acl,user_xattr)
/dev/sda1 on /boot type ext3 (rw,errors=remount-ro)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/sys on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
root at p1 #
root at p1 # /etc/init.d/nfsserver stop
Stopping NFSserver ...
- rpc.mountd ...
- rpc.idmapd ...
- nfsd ...
- rpc.statd ...
- rpcbind ...
root at p1 #
root at p1 # /etc/init.d/nfsserver start
Starting NFSserver ...
- mount bind NFSv4 shares ...
- rpcbind ...
- rpc.idmapd ...
- rpc.mountd ...
- rpc.statd ...
- rpc.nfsd ...
root at p1 #
root at p1 # mount
/dev/sda3 on / type ext3 (rw,errors=remount-ro,acl,user_xattr)
/dev/sda1 on /boot type ext3 (rw,errors=remount-ro)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/sys on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
nfsd on /proc/fs/nfsd type nfsd (rw)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
root at p1 #
root at p1 # /etc/init.d/nfsserver restart
Stopping NFSserver ...
- rpc.mountd ...
- rpc.idmapd ...
- nfsd ...
- rpc.statd ...
- rpcbind ...
Starting NFSserver ...
- mount bind NFSv4 shares ...
- rpcbind ...
- rpc.idmapd ...
- rpc.mountd ...
- rpc.statd ...
- rpc.nfsd ...
root at p1 #
root at p1 # mount
/dev/sda3 on / type ext3 (rw,errors=remount-ro,acl,user_xattr)
/dev/sda1 on /boot type ext3 (rw,errors=remount-ro)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/sys on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
nfsd on /proc/fs/nfsd type nfsd (rw)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
root at p1 #
root at p1 # /etc/init.d/nfsserver stop
Stopping NFSserver ...
- rpc.mountd ...
- rpc.idmapd ...
- nfsd ...
- rpc.statd ...
- rpcbind ...
root at p1 #
root at p1 # mount
/dev/sda3 on / type ext3 (rw,errors=remount-ro,acl,user_xattr)
/dev/sda1 on /boot type ext3 (rw,errors=remount-ro)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/sys on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
root at p1 #


Schuckelig, nicht wahr? Der Dienst ist gestoppt und die Shares
stehen noch da. 'Sollte' nicht, ist aber so.

Und jetzt,direkt im Anschluss, mit meinem Bugfix:


root at p1 # /etc/init.d/nfsserver start
Starting NFSserver ...
- mount bind NFSv4 shares ...
- rpcbind ...
- rpc.idmapd ...
- rpc.mountd ...
- rpc.statd ...
- rpc.nfsd ...
root at p1 #
root at p1 # mount
/dev/sda3 on / type ext3 (rw,errors=remount-ro,acl,user_xattr)
/dev/sda1 on /boot type ext3 (rw,errors=remount-ro)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/sys on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
nfsd on /proc/fs/nfsd type nfsd (rw)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
root at p1 #
root at p1 # /etc/init.d/nfsserver stop
Stopping NFSserver ...
/tftpboot/node18 has been unmounted
/tftpboot/node18 has been unmounted
/tftpboot/node18 has been unmounted
/tftpboot/node18 has been unmounted
- rpc.mountd ...
- rpc.idmapd ...
- nfsd ...
- rpc.statd ...
- rpcbind ...
root at p1 #
root at p1 # /etc/init.d/nfsserver start
Starting NFSserver ...
- mount bind NFSv4 shares ...
- rpcbind ...
- rpc.idmapd ...
- rpc.mountd ...
- rpc.statd ...
- rpc.nfsd ...
root at p1 #
root at p1 # mount
/dev/sda3 on / type ext3 (rw,errors=remount-ro,acl,user_xattr)
/dev/sda1 on /boot type ext3 (rw,errors=remount-ro)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/sys on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
root at p1 #
root at p1 # /etc/init.d/nfsserver restart
Stopping NFSserver ...
/tftpboot/node18 has been unmounted
- rpc.mountd ...
- rpc.idmapd ...
- nfsd ...
- rpc.statd ...
- rpcbind ...
Starting NFSserver ...
- mount bind NFSv4 shares ...
- rpcbind ...
- rpc.idmapd ...
- rpc.mountd ...
- rpc.statd ...
- rpc.nfsd ...
root at p1 #
root at p1 # mount
/dev/sda3 on / type ext3 (rw,errors=remount-ro,acl,user_xattr)
/dev/sda1 on /boot type ext3 (rw,errors=remount-ro)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/sys on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/tftpboot/node18 on /run/nfs4exports/boot/node18 type none (rw,bind)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
root at p1 #


'Sollte' nicht, ist aber so. Jetzt Du.

Gruss,
Thomas



Mehr Informationen über die Mailingliste Eisfair_dev