centos 6.2 cant see all files on nfs mount

General support questions

centos 6.2 cant see all files on nfs mount

Postby harryd » 2012/01/26 05:06:04

I've seen some other posts similar to this but I think my problem is different...

I have 2 servers 1 old FC6 machine and a new Centos6.2 (which is suppose to replace the old one...)

On a fresh boot both of them mount an NFS mount on my VM host. The FC6 machine sees all the files fine
but the COS6.2 machine only sees some of them in directories with lots of files.

Example#

VMHost (FC16) (nfs server) :

find /home/group/import | wc -l
4754687

---

FC6 (nfs client 1) :

# mount 192.168.1.6:/home /home
# find /home/group/import | wc -l
4754688 (not sure why it sees one more than the host)

---


Centos 6.2 machine :

# mount 192.168.1.6:/home /home
# find /home/group/import | wc -l
3791648

This same thing happens on several directories which contain a lot of files.

The above commands were run on freshly booted machines so there are no files changing etc.so I dont think there should be any kind of cache issues.

# uname -a
Linux hunt 2.6.32-220.2.1.el6.i686 #1 SMP Thu Dec 22 18:50:52 GMT 2011 i686 i686 i386 GNU/Linux

Also the FC6 machine finishes the command in a few seconds the centos machine take quite a bit longer, not sure why, it should be faster.

Any ideas how to fix this problem ?

thanks

HD
harryd
 
Posts: 4
Joined: 2012/01/26 04:34:37

Re: centos 6.2 cant see all files on nfs mount

Postby harryd » 2012/01/27 02:28:55

same test on Redhat 7.3 works to... (new files added since yesterday)

# find /mnt/temp/group/imported/ | wc -l
4759530
and

---------------------------------------------------------------------------------------

Failed to find all the files on a second Cento6 install also :

# find /mnt/temp2/group/imported/ | wc -l
3796490

-----

Still looking for ideas on what this might be ????

thx

HD
harryd
 
Posts: 4
Joined: 2012/01/26 04:34:37

centos 6.2 cant see all files on nfs mount

Postby toracat » 2012/01/27 09:24:38

I see you are running the command as root. Can you try it as a non-root user and see what happens?
User avatar
toracat
Forum Moderator
 
Posts: 6696
Joined: 2006/09/03 16:37:24
Location: California, US

Re: centos 6.2 cant see all files on nfs mount

Postby harryd » 2012/02/01 04:22:46

toracat wrote:
I see you are running the command as root. Can you try it as a non-root user and see what happens?


I did that and got the same results.

Also...

The NFS mount drives were a ext2 raid5 disk system and I thought maybe there was a problem there so I backed the whole system up
and rebuilt it as an ext4 raid5. Unfortunately that had little effect of what is happening...

The server hosting the files :
# find /home/group/imported/ | wc -l
4785699

---
The Fedora Core 6 system again with the new ext4 nfs mount sees all files
# find /home/group/imported/ | wc -l
4785700

---
An old redhat 7.2 system sees all the files
# find /mnt/temp/group/imported/ | wc -l
4785701
# uname -a
Linux blocker 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 GNU/Linux

---
Fedora release 14 (Laughlin) Machine # 1 works

# find /mnt/temp1/group/imported/ | wc -l
4785699
# uname -a
Linux localhost.localdomain 2.6.35.13-91.fc14.i686.PAE #1 SMP Tue May 3 13:29:55 UTC 2011 i686 i686 i386 GNU/Linux

---

Fedora release 14 (Laughlin) Machine # 2 works
# find /mnt/temp2/group/imported/ | wc -l
4785699
]# uname -a
Linux ferret 2.6.35.14-103.fc14.i686.PAE #1 SMP Thu Oct 27 15:58:03 UTC 2011 i686 i686 i386 GNU/Linux

---
Centos 6.2 again with the new ext4 nfs mount
# find /home/group/imported/ | wc -l
4653919
# uname -a
Linux hunter 2.6.32-220.2.1.el6.i686 #1 SMP Thu Dec 22 18:50:52 GMT 2011 i686 i686 i386 GNU/Linux


---
another interesting data point is mounting the nfs share on the server itself show the same missing files errors...
Fedora release 16 (Verne)
Linux vmhost 3.1.9-1.fc16.x86_64 #1 SMP Fri Jan 13 16:37:42 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

# find /mnt/temp2/group/imported/ | wc -l
4615219


So has the default configuration changed in the NFS clients along the way and that break things or did a "bug" slip in ?
harryd
 
Posts: 4
Joined: 2012/01/26 04:34:37

Re: centos 6.2 cant see all files on nfs mount

Postby harryd » 2012/02/03 03:53:02

It appears the NFS clients broke in the RedHat line of products at some point after Fedora Core 14.

Here are two more data points :

The NFS server is a netgear READYNAS Ultra 6

The server sees :

# find /d/filestore | wc -l
1618119


Centos 6 reports :

# find /mnt/temp2 | wc -l
695132


Fedora 16 reports :

# find /mnt/temp2 | wc -l
1443245
harryd
 
Posts: 4
Joined: 2012/01/26 04:34:37

Re: centos 6.2 cant see all files on nfs mount

Postby toracat » 2012/02/07 21:44:44

This centos bug report seems to be relevant.
User avatar
toracat
Forum Moderator
 
Posts: 6696
Joined: 2006/09/03 16:37:24
Location: California, US


Return to CentOS 6 - General Support

Who is online

Users browsing this forum: No registered users and 6 guests