Find out Lock Path in ZFS
Scenario A linux server that using ZFS storage, exports the directory in the storage using NFS. There is a need to confirm that some files are still locked or not. 1. Determine Inode The ls command has -i option to show inode id for each directory/files. [root@pv1 mysql]# ls -il total 200867 41506 -rw-rw-r--+ 1 1000070000 nfsnobody 0 Aug 15 2017 debian-5.5.flag 41509 -rw-rw----+ 1 1000070000 nfsnobody 195035136 Apr 5 12:02 ibdata1 41507 -rw-rw----+ 1 1000070000 nfsnobody 5242880 Apr 5 12:02 ib_logfile0 41508 -rw-rw----+ 1 1000070000 nfsnobody 5242880 Mar 26 19:33 ib_logfile1 41376 drwx------+ 2 1000070000 nfsnobody 119 Jul 30 2018 jwdb 41511 drwxr-x---+ 2 1000070000 nfsnobody 74 Aug 15 2017 mysql 41510 -rw-------+ 1 1000070000 nfsnobody 6 Aug 15 2017 mysql_upgrade_info 41487 drwx------+ 2 1000070000 nfsnobody 20 Aug 15 2017 performance_schema 2. Determine Locks Locks are stored in /