[CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Stephan van Hienen
Centos 6.2 system with xfs filesystem. I'm sharing this filesystem using nfs. When I create a 10 gigabyte test file from a nfs client system : dd if=/dev/zero of=10Gtest bs=1M count=1 1+0 records in 1+0 records out 1048576 bytes (10 GB) copied, 74.827 s, 140 MB/s Output from 'ls

Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Svavar Örn Eysteinsson
What kernel are you using ? Are you using inode64 mount option on the Cents server itself for XFS ? What OS was the NFS client running ? 32bit ? Just asking, as there seems to be problem with xfs on kernel 2.6.27 when using inode64 mount options regarding 32bit nfs Stephan van

Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Stephan van Hienen
On Mon, 11 Jun 2012, Svavar Örn Eysteinsson wrote: What kernel are you using ? Latest centos 6.2 kernel: 2.6.32-220.17.1.el6.x86_64 Are you using inode64 mount option on the Cents server itself for XFS ? fstab for this filesystem : /dev/mapper/VolGroup01-LogVol00 /raid xfs

Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread James Pearson
Stephan van Hienen wrote: The file is using almost double the size ? Even after a few days the file is showing the same disk usage. Only umounting and remounting the filesystem fixes the problem. When I do the same test on an ext4 filesystem no issues. (same server/client) What does:

Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Stephan van Hienen
On Mon, 11 Jun 2012, James Pearson wrote: What does: /usr/sbin/xfs_bmap -pl 10Gtest output (when run on the server)? 10Gtest: 0: [0..808319]: 261386472..262194791 808320 blocks 1: [808320..1357951]: 273699584..274249215 549632 blocks 2: [1357952..2406527]:

Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread James Pearson
Stephan van Hienen wrote: You can also 'recover' the lost space by running (as root on the server): /usr/sbin/xfs_fsr 10Gtest doesn't help : ]# xfs_fsr 10Gtest ]# du -hs 17G . ... it worked for me :-) Interestingly, I did a similar 'dd' locally on a XFS file system (CentOS

Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread aurfalien
On Jun 11, 2012, at 4:47 AM, Stephan van Hienen wrote: On Mon, 11 Jun 2012, Svavar Örn Eysteinsson wrote: What kernel are you using ? Latest centos 6.2 kernel: 2.6.32-220.17.1.el6.x86_64 Are you using inode64 mount option on the Cents server itself for XFS ? fstab for this filesystem :

Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Stephan van Hienen
On Mon, 11 Jun 2012, aurfalien wrote: Hi Stephan, I also run 6.2 with XFS but am getting normal behavior. I ran your exact command and du -hs shows 9.8GB used. And ls -l shows 1048576 Would you like more info on my system? aurf, Any updates not installed on your system ? (older

Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread aurfalien
On Jun 11, 2012, at 10:39 AM, Stephan van Hienen wrote: On Mon, 11 Jun 2012, aurfalien wrote: Hi Stephan, I also run 6.2 with XFS but am getting normal behavior. I ran your exact command and du -hs shows 9.8GB used. And ls -l shows 1048576 Would you like more info on my

Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Tru Huynh
On Mon, Jun 11, 2012 at 05:07:05PM +0200, Stephan van Hienen wrote: On Mon, 11 Jun 2012, James Pearson wrote: What does: /usr/sbin/xfs_bmap -pl 10Gtest output (when run on the server)? 10Gtest: 0: [0..808319]: 261386472..262194791 808320 blocks ... You can also