Bugzilla – Bug 1051687
"df -l" is querying nfs automounts
Last modified: 2017-10-24 12:23:09 UTC
+++ This bug was initially created as a clone of Bug #1043059 +++ Hi engineering, in SLES/D 12 SP2 the call "df -l" queries all directories that are handled by the systemd automounter. That includes nfs automounts and therefore causes "df -l" to hang if a NFS server is hanging. E.g. we have the following entry in /etc/fstab: knuth:/local/storage /mnt/s1 nfs4 defaults,noauto,x-systemd.automount 0 0 I attach a strace output of "df -l" that shows that "/mnt/s1" is statted. df considers it a local mountpoint due to the "systemd-1 on /mnt/s1" entry: systemd-1 on /mnt/s1 type autofs (rw,relatime,fd=22,pgrp=1,timeout=60,minproto=5,maxproto=5,direct) knuth:/local/storage on /mnt/s1 type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp6,port=0,timeo=600,retrans=2,sec=sys,clientaddr=2001:4ca0:4000:1011:141:84:1:25,local_lock=none,addr=2001:4ca0:4000:1011:141:84:1:25) However, if /mnt/s1 is mounted and nfs-server is down, statting /mnt/s1 will hang. But "df -l" should never hang just because an NFS mount is down. >>>>>>>>> Can you help here please?
Fixed Package submitted to SLE12 SP2.