NFS mounts von Clients feststellen
frank-info at gmx.de
frank-info at gmx.de
Fri Feb 16 19:47:02 CET 2007
Hallo Liste,
ich moechte als NFS Server wissen, ob noch mounts von aussen bestehen. Wenn
ja, soll der automatische Shutdown meines VDRs nach Zeit verhindert werden.
Im VDR Forum gibt es etwas dazu, z.B.
showmount -all bzw. cat /etc/rmtab
Diese scheint mir aber nicht sonderlich zuverlaessig zu sein, da die Eintraege
bei Client-Abstuerzen bestehen bleiben, oder teilweise auch bei korrektem
umount nicht geloescht werden.
linvdr:~# cat /etc/rmtab
neptun:/platte2/video0 // alte falsche Eintraege
neptun:/video0
linvdr:~# nano /etc/rmtab // alle Eintraege manuell geloescht
linvdr:~# cat /etc/rmtab
linvdr:~#
linvdr:~# showmount --all --no-headers // leer
linvdr:~#
linvdr:~# showmount --all --no-headers // nach externem mount von /dev/hda2
neptun:/video0
linvdr:~# cat /etc/rmtab
neptun:/video0
linvdr:~# cat /etc/rmtab // nach externem mount von /dev/hdc1
neptun:/platte2/video0
neptun:/video0
linvdr:~# showmount --all --no-headers
neptun:/platte2/video0
neptun:/video0
linvdr:~# showmount --all --no-headers // nach externem umount beider Platten
neptun:/platte2/video0 // bleibt dieser Eintrag
----- Debian (noch) Sarge, Kernel 2.6.14, KDE 3.3.2 -----
MfG
Frank Wohlfahrt
More information about the Linux
mailing list