Massimo B. Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1411393680427a4354494d7.gif)
Joined: 09 Feb 2005 Posts: 1857 Location: PB, Germany
|
Posted: Tue Nov 24, 2020 8:51 am Post subject: autofs mounting non available NFS, all IO blocked |
|
|
Hi,
I have an issue that is happening every fresh startup once per day. When trying to login to X, all IO is blocked. Even root login on terminals is not possible anymore, just a SYSRQ forced reset. The next startup works fine.
I'm using btrfs on LUKS, have kyber and bfq schedulers for IO, currently running 5.8.15-gentoo.
Analyzing the last log lines before the reset I see a 2 cronjobs which explains why the next startup works fine. One cronjob is starting btrbk for btrfs snapshotting, the other tries to rsync from NFS to local. The remote NFS is not available without VPN which is established manually by NetworkManager GUI. Therefore the rsync script starts with a check.
The very last line from syslog before the reset:
Code: | Nov 24 07:50:00 [fcron] Job 'run-parts /etc/cron.daily' started for user systab (pid 4922)
Nov 24 07:50:00 [fcron] pam_unix(fcron:session): session opened for user massimo(uid=4728) by (uid=0)
Nov 24 07:50:00 [fcron] Job '~/bin/2rsync_ws >/dev/null' started for user massimo (pid 4924)
Nov 24 07:50:00 [fcron] Job 'ionice -c 3 schedtool -D -e btrbk -c /etc/btrbk/btrbk.conf run cron' started for user root (pid 4927)
Nov 24 07:50:00 [automount] pidinfo requestor: pid:4929 comm:bash tgid:4929 uid:4728 euid:4728 gid:4728 egid:4728
Nov 24 07:50:00 [automount] pidinfo parent: pid:4924 comm:sh tgid:4924 uid:4728 euid:4728 gid:4728 egid:4728
Nov 24 07:50:00 [automount] attempting to mount entry /mnt/autofs/nfs/ws
Nov 24 07:50:00 [automount] mount(nfs): root=/mnt/autofs/nfs name=ws what=vmnfs.corporation:/export/nfs/ws, fstype=nfs, options=rw,noatime,nodiratime,async,tcp,soft
Nov 24 07:50:00 [automount] mount(nfs): nfs options="rw,noatime,nodiratime,async,tcp,soft", nobind=0, nosymlink=0, ro=0 |
I assume the btrfs snapshots is not blocking but the not available NFS mounted by automount.
I'm running sys-apps/openrc-0.42.1.
Code: | # grep ws /etc/autofs/auto.nfs
ws -fstype=nfs,rw,noatime,nodiratime,async,tcp,soft vmnfs.corporation:/export/nfs/ws |
Code: | # cat bin/2rsync_ws
#!/usr/bin/env bash
[[ -d /ws/mb ]] && rsync -avz --delete --exclude='**/core_*' --exclude='**/*.o' --exclude='**/.obj' --exclude='**/.moc' --exclude='/public/gentoo*' /ws/mb/ /mnt/data/ws.sync |
Why could that block all other IO when the NFS server is not available? Is this issue mount.nfs related or autofs related? Does autofs has it's own project home? It feels like all the autofs is part of systemd development, isn't it? _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|