Erstens:
Code: Alles auswählen
root@falbala:~# systemctl list-automounts --all
WHAT WHERE MOUNTED IDLE TIMEOUT UNIT
/dev/nvme0n1p5 yes 0 home-ce-homex2dobelix.automount
/dev/nvme0n1p5 yes 0 mnt-datengrab.automount
/dev/nvme0n1p5 yes 0 home-ce-obelix.automount
192.168.150.222:/ /amnesix no 10min amnesix.automount
192.168.150.111:/ /obelix no 10min obelix.automount
binfmt_misc /proc/sys/fs/binfmt_misc yes 0 proc-sys-fs-binfmt_misc.automount
6 automounts listed.
Zweitens:
Code: Alles auswählen
root@falbala:~# cat /etc/systemd/system/amnesix.mount
[Unit]
Description=Mount /amnesix via NFS
[Mount]
What=192.168.150.222:/
Where=/amnesix
Type=nfs
Options=soft,nfsvers=4,async
root@falbala:~# cat /etc/systemd/system/amnesix.automount
[Unit]
Description=Automount /amnesix
[Automount]
Where=/amnesix
TimeoutIdleSec=10min
[Install]
WantedBy=multi-user.target
root@falbala:~# cat /etc/systemd/system/obelix.mount
[Unit]
Description=Mount /obelix via NFS
[Mount]
What=192.168.150.111:/
Where=/obelix
Type=nfs
Options=soft,nfsvers=4,async
root@falbala:~# cat /etc/systemd/system/obelix.automount
[Unit]
Description=Automount /obelix
[Automount]
Where=/obelix
TimeoutIdleSec=10min
[Install]
WantedBy=multi-user.target
root@falbala:~#
Danke und Grüße
Chris