I'm having an issue with a circular directory structure warning produced by du
and find
on my CentOS servers.
I have two FreeNAS servers exporting several datasets via NFS which are mounted on the CentOS servers in a hierarchical structure. For example:
FreeNAS datasets:
u, home, user1, user2
CentOS file hierarchy:
/u
/u/home
/u/home/user1
/u/home/user2
When I run du
and find
anywhere within this tree, they get upset and tell me that there is a circular file structure.
find: File system loop detected; './u/home/user1' is part of the same file system
loop as '/u/home'.
du: WARNING: Circular directory structure.
This almost certainly means that you have a corrupted file system.
NOTIFY YOUR SYSTEM MANAGER.
The following directory is part of the cycle:
'./u/home/user1'
I think this warning happens because the mount points for each dataset all have the same inode number. However, I think this is not a problem, because each is it's own filesystem.
Am I correct or is there actually a problem here? If there is a problem, how do I fix it? And if there isn't, can I tell find
and du
to not report these warnings?