ubuntuusers.de

NFS - Autofs in Kubuntu 22.04 nicht möglich

Status: Ungelöst | Ubuntu-Version: Kubuntu 22.04 (Jammy Jellyfish)
Antworten |

TR1411

Anmeldungsdatum:
10. Dezember 2009

Beiträge: 5

Wohnort: Rohrbach

Grüße ans Forum mit der Bitte um Hilfe. Seit über 10 Jahren nutze ich verschiedene Ubuntu Varianten auf mehreren Rechnern in denen ich mein Qnap-Nas über das NFS Protokoll folgendermaßen eingebunden habe.

  • nfs-common installiert

  • nfs-kernel-server installiert

  • autofs installiert

  • im home-Verzeichnis einen Ordner KNW erstellt

  • in die Datei auto.master am Ende eigetragen /home/thomas/KNW /etc/auto.knw –ghost

  • und die Datei auto.knw unter /etc erstellt mit folgendem Inhalt:

Musik -fstype=nfs,rw,soft,tcp,nolock,retry=0 KNW:/Musik

Bilder -fstype=nfs,rw,soft,tcp,nolock,retry=0 KNW:/Bilder

Doks -fstype=nfs,rw,soft,tcp,nolock,retry=0 KNW:/Dokumente

autofs restart bzw. Neustart und alles war gut, bisher. Seit Kubuntu 22.04 funktioniert das leider nicht mehr. Hab Neuinstallationen auf drei Computern durchgeführt, mit dem selben Ergebnis. Hoffe, es kann jemand helfen, der mehr Ahnung hat als ich.

Bearbeitet von ChickenLipsRfun2eat:

Bitte verwende in Zukunft Listen, um die Übersicht im Forum zu verbessern!

seahawk1986

Anmeldungsdatum:
27. Oktober 2006

Beiträge: 11270

Wohnort: München

Klappt es denn die NFS-Freigaben von Hand zu mounten? Also z.B.

sudo mount KNW:/Musik /mnt 

Falls das klappt, würde ich autofs mal gesprächiger machen (in der /etc/default/autofs eine Zeile mit OPTIONS="--debug" einfügen und die Unit neu starten) und dann in die Logs schauen.

TR1411

(Themenstarter)

Anmeldungsdatum:
10. Dezember 2009

Beiträge: 5

Wohnort: Rohrbach

Danke seahawk1986 für die schnelle Antwort.

Klappt es denn die NFS-Freigaben von Hand zu mounten? Also z.B.

sudo mount KNW:/Musik /mnt

Falls das klappt, würde ich autofs mal gesprächiger machen (in der /etc/default/autofs eine Zeile mit OPTIONS="--debug" einfügen und die Unit neu starten) und dann in die Logs schauen

Die NFS-Freigaben von Hand zu mounten klappt leider nicht. Der Cursor springt zur nächsten Zeile und das wars. Auch keine Fehlermeldung. Mit den .log Dateien betrachten bin ich nicht so der Spezi. Hier mal die Ausgabe von journalctl

thomas@thomas:/$ journalctl | grep nfs
Jul 09 16:28:24 thomas sudo[10089]:   thomas : TTY=pts/1 ; PWD=/home/thomas ; USER=root ; COMMAND=/usr/bin/apt-get install nfs-common
Jul 09 16:28:40 thomas useradd[10605]: new user: name=statd, UID=124, GID=65534, home=/var/lib/nfs, shell=/usr/sbin/nologin, from=/dev/pts/3
Jul 10 12:28:28 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 10 13:40:17 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 10 18:35:37 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 10 18:39:34 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 10 21:26:35 thomas audit[16804]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/home/thomas/.config/knfsshare" pid=16804 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jul 10 21:39:54 thomas sudo[19357]:   thomas : TTY=pts/1 ; PWD=/home/thomas ; USER=root ; COMMAND=/usr/bin/mount -t nfs -o vers=4.0 KNW/ /home/thomas/KNW
Jul 10 21:47:35 thomas blkmapd[19987]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory
Jul 10 21:47:35 thomas rpc.statd[19992]: Failed to read /var/lib/nfs/state: Success
Jul 10 21:47:35 thomas kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jul 10 21:47:35 thomas kernel: NFSD: Using nfsdcld client tracking operations.
Jul 10 21:48:47 thomas systemd[1]: nfs-blkmap.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 21:48:47 thomas systemd[1]: nfs-blkmap.service: Failed with result 'exit-code'.
Jul 10 21:48:47 thomas kernel: nfsd: last server has exited, flushing export cache
Jul 10 21:48:47 thomas systemd[1]: nfs-server.service: Deactivated successfully.
Jul 10 21:48:47 thomas systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 21:48:47 thomas systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 10 21:48:47 thomas systemd[1]: nfsdcld.service: Deactivated successfully.
Jul 10 21:48:47 thomas systemd[1]: nfs-mountd.service: Deactivated successfully.
Jul 10 21:49:20 thomas kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jul 10 21:49:21 thomas blkmapd[595]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory
Jul 10 21:49:28 thomas kernel: NFSD: Using nfsdcld client tracking operations.
Jul 10 21:49:44 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 10 22:07:10 thomas systemd[1]: nfs-blkmap.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 22:07:10 thomas systemd[1]: nfs-blkmap.service: Failed with result 'exit-code'.
Jul 10 22:07:10 thomas kernel: nfsd: last server has exited, flushing export cache
Jul 10 22:07:10 thomas systemd[1]: nfs-server.service: Deactivated successfully.
Jul 10 22:07:10 thomas systemd[1]: nfs-mountd.service: Deactivated successfully.
Jul 10 22:07:10 thomas systemd[1]: nfsdcld.service: Deactivated successfully.
Jul 10 22:07:10 thomas systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 22:07:10 thomas systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 10 22:07:49 thomas kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jul 10 22:07:51 thomas blkmapd[672]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory
Jul 10 22:07:58 thomas kernel: NFSD: Using nfsdcld client tracking operations.
Jul 10 22:21:00 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 10 22:24:57 thomas systemd[1]: nfs-blkmap.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 22:24:57 thomas systemd[1]: nfs-blkmap.service: Failed with result 'exit-code'.
Jul 10 22:24:57 thomas systemd[1]: nfs-server.service: Deactivated successfully.
Jul 10 22:24:57 thomas kernel: nfsd: last server has exited, flushing export cache
Jul 10 22:24:57 thomas systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 22:24:57 thomas systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 10 22:24:57 thomas systemd[1]: nfsdcld.service: Deactivated successfully.
Jul 10 22:24:57 thomas systemd[1]: nfs-mountd.service: Deactivated successfully.
Jul 10 22:31:41 thomas kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jul 10 22:31:42 thomas blkmapd[577]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory
Jul 10 22:31:48 thomas kernel: NFSD: Using nfsdcld client tracking operations.
Jul 10 22:32:10 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 10 23:54:12 thomas systemd[1]: nfs-blkmap.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 23:54:12 thomas systemd[1]: nfs-blkmap.service: Failed with result 'exit-code'.
Jul 10 23:54:12 thomas systemd[1]: nfs-server.service: Deactivated successfully.
Jul 10 23:54:12 thomas kernel: nfsd: last server has exited, flushing export cache
Jul 10 23:54:12 thomas systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 23:54:12 thomas systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 10 23:54:12 thomas systemd[1]: nfs-mountd.service: Deactivated successfully.
Jul 10 23:54:12 thomas systemd[1]: nfsdcld.service: Deactivated successfully.
Jul 11 11:44:42 thomas kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jul 11 11:44:44 thomas blkmapd[656]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory
Jul 11 11:44:50 thomas kernel: NFSD: Using nfsdcld client tracking operations.
Jul 11 11:46:15 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 11 12:34:13 thomas systemd[1]: nfs-blkmap.service: Main process exited, code=exited, status=1/FAILURE
Jul 11 12:34:13 thomas systemd[1]: nfs-blkmap.service: Failed with result 'exit-code'.
Jul 11 12:34:13 thomas systemd[1]: nfs-server.service: Deactivated successfully.
Jul 11 12:34:13 thomas kernel: nfsd: last server has exited, flushing export cache
Jul 11 12:34:13 thomas systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 11 12:34:13 thomas systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 11 12:34:13 thomas systemd[1]: nfsdcld.service: Deactivated successfully.
Jul 11 12:34:13 thomas systemd[1]: nfs-mountd.service: Deactivated successfully.
Jul 11 21:08:37 thomas kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jul 11 21:08:39 thomas blkmapd[655]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory
Jul 11 21:08:45 thomas kernel: NFSD: Using nfsdcld client tracking operations.
Jul 11 21:48:25 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 11 22:36:43 thomas audit[17305]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/etc/default/nfs-kernel-server" pid=17305 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Jul 11 22:36:43 thomas audit[17305]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/etc/default/nfs-kernel-server" pid=17305 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Jul 11 22:36:43 thomas audit[17305]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/etc/default/nfs-kernel-server" pid=17305 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Jul 11 22:37:10 thomas audit[17358]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/etc/default/nfs-common" pid=17358 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Jul 11 22:37:10 thomas audit[17358]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/etc/default/nfs-common" pid=17358 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Jul 11 22:37:10 thomas audit[17358]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/etc/default/nfs-common" pid=17358 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Jul 11 23:26:57 thomas audit[18697]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/home/thomas/.config/knfsshare" pid=18697 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jul 11 23:26:57 thomas kernel: audit: type=1400 audit(1657574817.444:1050): apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/home/thomas/.config/knfsshare" pid=18697 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jul 11 23:30:58 thomas audit[21730]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/home/thomas/.config/knfsshare" pid=21730 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jul 11 23:40:29 thomas systemd[1]: nfs-blkmap.service: Main process exited, code=exited, status=1/FAILURE
Jul 11 23:40:29 thomas systemd[1]: nfs-blkmap.service: Failed with result 'exit-code'.
Jul 11 23:40:29 thomas systemd[1]: nfs-server.service: Deactivated successfully.
Jul 11 23:40:29 thomas kernel: nfsd: last server has exited, flushing export cache
Jul 11 23:40:29 thomas systemd[1]: nfs-mountd.service: Deactivated successfully.
Jul 11 23:40:29 thomas systemd[1]: nfsdcld.service: Deactivated successfully.
Jul 11 23:40:29 thomas systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 11 23:40:29 thomas systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 11 23:41:06 thomas kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jul 11 23:41:06 thomas blkmapd[582]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory
Jul 11 23:41:14 thomas kernel: NFSD: Using nfsdcld client tracking operations.
Jul 11 23:44:56 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 12 00:09:10 thomas systemd[1]: nfs-blkmap.service: Main process exited, code=exited, status=1/FAILURE
Jul 12 00:09:10 thomas systemd[1]: nfs-blkmap.service: Failed with result 'exit-code'.
Jul 12 00:09:10 thomas kernel: nfsd: last server has exited, flushing export cache
Jul 12 00:09:10 thomas systemd[1]: nfs-server.service: Deactivated successfully.
Jul 12 00:09:10 thomas systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 12 00:09:10 thomas systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 12 00:09:10 thomas systemd[1]: nfs-mountd.service: Deactivated successfully.
Jul 12 00:09:10 thomas systemd[1]: nfsdcld.service: Deactivated successfully.
Jul 12 11:38:11 thomas kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jul 12 11:38:13 thomas blkmapd[673]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory
Jul 12 11:38:19 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 12 11:40:08 thomas systemd[1]: nfs-blkmap.service: Main process exited, code=exited, status=1/FAILURE
Jul 12 11:40:08 thomas systemd[1]: nfs-blkmap.service: Failed with result 'exit-code'.
Jul 12 11:40:09 thomas systemd[1]: nfs-server.service: Deactivated successfully.
Jul 12 11:40:09 thomas systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 12 11:40:09 thomas systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 12 11:40:09 thomas systemd[1]: nfs-mountd.service: Deactivated successfully.
Jul 12 11:40:09 thomas systemd[1]: nfsdcld.service: Deactivated successfully.
Jul 12 11:40:44 thomas kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jul 12 11:40:44 thomas blkmapd[671]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory
Jul 12 11:40:51 thomas kernel: NFSD: Using nfsdcld client tracking operations.
Jul 12 11:41:22 thomas kernel: FS-Cache: Netfs 'nfs' registered for caching

und hier noch die Ausgabe von systemctl

thomas@thomas:/$ systemctl | grep nfs
  proc-fs-nfsd.mount                                                                                                            loaded active mounted   NFSD configuration filesystem
  nfs-blkmap.service                                                                                                            loaded active running   pNFS block layout mapping daemon
  nfs-idmapd.service                                                                                                            loaded active running   NFSv4 ID-name mapping service
  nfs-mountd.service                                                                                                            loaded active running   NFS Mount Daemon
  nfs-server.service                                                                                                            loaded active exited    NFS server and services
  nfsdcld.service                                                                                                               loaded active running   NFSv4 Client Tracking Daemon
  nfs-client.target         

Vorab vielen Dank für's Bemühen !

Antworten |