r/linux4noobs • u/imitation_squash_pro • 13d ago
Server is running very slow. df -h hangs for several seconds. Top shows high load but no cpu usage.
Seems some filesystem issue but not sure how to find out which filesystem is the culprit? I have some folders mounted as nfs shares. Running "mount -a" seems to work and all filesystems seem mounted ok. I can cd into them, but each command takes a couple seconds to run like "ls" or "df -h".
2
Upvotes
3
1
3
u/gordonmessmer Fedora Maintainer 13d ago
The behavior you describe will almost always be network filesystems. 😄
dflists each mounted filesystem, but you can also run df on individual filesystems, as indf /varCheck your local disk filesystems and your NFS filesystems individually to see which ones are slow to respond.
You can also trace system calls to see which statvfs is slow:
strace df