Tags: howto,nfs,linux
Date: 20220519
Sometimes we need to figure out - on a Linux based NFS server - which files are in actual use by NFS clients.
In my particular case I needed to figure whether certain files (qcow2, vmdk) were still in use by virtual machines, without having access to said VMs or their hypervisors.
find /export/path/file.qcow2 -printf '%i\n' |
grep -w $inodeFromStep1 /proc/locks |