Linux FIle System Error while running find command
Hi,
I am an Linux System Admin, While I was working on some issue I saw that find command gave a weird result.
Below is the result.
find: WARNING: Hard link count is wrong for /dnbt2s/backup/.zfs/snapshot: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121003_2222' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20120930_2216' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20121005_2216' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20121001_2216' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20121004_2216' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121005_2223' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121002_2222' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121001_2221' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20121002_2216' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20120930_2221' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121004_2222' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20121003_2216' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
The File system it referenced is Sun ZFS storage 7200 Series and NFS mount.
[root@server backup]# grep /export/dnbt2s_04/s_backup /etc/fstab
storage-server-nas:/export/dnbt2s_04/s_backup /dnbt2s/backup nfs rw,bg,intr,hard,timeo=600,wsize=32768,rsize=32768,nfsvers=3,noacl,tcp 0 0
[root@server backup]#
Below are the specification of OS.
[root@server ~]# cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
uname: [root@server ~]# uname -a
Linux server1 2.6.18-194.3.1.7.3.el5xen #1 SMP Fri Jul 30 00:08:45 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@server ~]#
[root@server ~]# ls -ldi /dnbt2s/backup/
4 drwxr-xr-x 4 ordnbt2s dbdnbt2s 3 Dec 14 2006 /dnbt2s/backup/
[root@server ~]#
[root@server backup]# pwd
/dnbt2s/backup
[root@server backup]# ls -lia
total 7
4 drwxr-xr-x 4 ordnbt2s dbdnbt2s 3 Dec 14 2006 .
291174 drwxr-xr-x 7 ordnbt2s dbdnbt2s 4096 Aug 16 09:40 ..
8 drwxr-xr-x 7 ordnbt2s dbdnbt2s 7 Oct 19 22:19 hot_backups
1 dr-xr-xr-x 4 root root 4 Aug 16 01:39 .zfs
[root@server backup]#
[root@server backup]# stat /dnbt2s/backup/.zfs/snapshot
File: `/dnbt2s/backup/.zfs/snapshot'
Size: 2 Blocks: 0 IO Block: 4096 directory
Device: 31h/49d Inode: 2 Links: 2
Access: (0555/dr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-10-20 03:54:49.481146061 -0600
Modify: 2012-10-19 22:22:25.665938870 -0600
Change: 2012-10-19 22:22:25.665938870 -0600
[root@server backup]#
[root@server backup]# ls -li /dnbt2s/backup/.zfs/snapshot
total 18
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121014_2221
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121015_2221
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121016_2221
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121017_2221
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121018_2221
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121019_2221
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20121014_2216
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20121015_2216
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20121016_2216
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20121017_2216
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20121018_2216
4 drwxr-xr-x 3 ordnbt2s dbdnbt2s 3 Dec 14 2006 AUTOHOTSNAP_vmsodnbty001_DNBT2S_PROJ_20121019_2216
[root@server backup]#
I will be highly obliged if you see any issue what I am not able to find.
Please let me know if you need more information to examine the issue.
regrads,
Farhan
|