LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-20-2012, 05:02 AM   #1
farhanzahidi
LQ Newbie
 
Registered: Jun 2009
Location: Delhi
Distribution: CentOS
Posts: 5

Rep: Reputation: 0
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
 
Old 10-20-2012, 06:19 AM   #2
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by farhanzahidi View Post
Please let me know if you need more information to examine the issue.
You need to use [code][/code] tags.

Have you run fsck on this volume?
 
Old 10-20-2012, 11:26 AM   #3
farhanzahidi
LQ Newbie
 
Registered: Jun 2009
Location: Delhi
Distribution: CentOS
Posts: 5

Original Poster
Rep: Reputation: 0
Nope, i did not...This is an NFS mount coming from Sun Filer.

Regards,
Farhan
 
Old 10-20-2012, 02:54 PM   #4
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
A stat of /dnbt2s/backup/.zfs/snapshot/AUTOHOTSNAP_vmsodnbty001_DNBT2S_BACK_20121003_2222 and of each higher level directory especially /dnbt2s/backup should confirm whether it really has the same device and inode number. I don't know if zfs allows that but I doubt it.

Could this be caused by multiple mounts - what are your mounts?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
find command give error file not found vishesh Linux - Newbie 5 05-28-2011 08:17 AM
Find command with standard error output and mail error file montblanc Programming 2 11-11-2010 09:06 PM
Live CD error: Can't find Knoppix file system linuxman007 Linux User Groups (LUG) 1 01-17-2007 12:11 AM
linux command error message bash: /usr/bin/find: No such file or directory sundaram123 Linux - General 8 04-02-2002 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration