All of lore.kernel.org
 help / color / mirror / Atom feed
* df and "Value too large for defined data type"
@ 2004-02-24 13:27 James Pearson
  2004-02-25 22:30 ` James Pearson
  0 siblings, 1 reply; 4+ messages in thread
From: James Pearson @ 2004-02-24 13:27 UTC (permalink / raw)
  To: nfs

Using a (vanilla) 2.6.3 NFS client and using df on a on a particular NFS
mounted file system gives:

df: `/mnt/tmp': Value too large for defined data type

/mnt/tmp is mounted from a server running 2.4.21 that has a 3.5TB RAID
split into 4 partitions of less than 1TB each. The file system on the
server is XFS.

/proc/mounts on the client shows:

lead:/disk1 /mnt/tmp nfs
rw,v3,rsize=8192,wsize=8192,hard,udp,lock,addr=lead 0 0

When I use NFSv2, df (or actually statfs()) works as expected - as do
mounts to other NFS servers (it appears to be just this one server).

Also, clients running 2.4.X, have no problems with this server.

Any ideas?

James Pearson


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: df and "Value too large for defined data type"
  2004-02-24 13:27 df and "Value too large for defined data type" James Pearson
@ 2004-02-25 22:30 ` James Pearson
  2004-02-25 22:40   ` Greg Banks
  0 siblings, 1 reply; 4+ messages in thread
From: James Pearson @ 2004-02-25 22:30 UTC (permalink / raw)
  To: nfs

I think I've found part of the reason for this - and it's not an NFS 
problem - the 'Value too large for defined data type' comes from the 
'return -EOVERFLOW' from vfs_statfs_native() in fs/open.c - the value of 
f_files (total number of nodes in file system) returned by FSSTAT from 
the server is 2^64 - 1 (18446744073709551615) !!

It looks like 2.4.X doesn't check for this overflow - and just takes the 
  lower 32 bits.

The underlying remote file system is XFS - which in this case appears to 
be saying that it has 2^64 - 1 inodes - which doesn't seem correct...

James Pearson

James Pearson wrote:
> Using a (vanilla) 2.6.3 NFS client and using df on a on a particular NFS
> mounted file system gives:
> 
> df: `/mnt/tmp': Value too large for defined data type
> 
> /mnt/tmp is mounted from a server running 2.4.21 that has a 3.5TB RAID
> split into 4 partitions of less than 1TB each. The file system on the
> server is XFS.
> 
> /proc/mounts on the client shows:
> 
> lead:/disk1 /mnt/tmp nfs
> rw,v3,rsize=8192,wsize=8192,hard,udp,lock,addr=lead 0 0
> 
> When I use NFSv2, df (or actually statfs()) works as expected - as do
> mounts to other NFS servers (it appears to be just this one server).
> 
> Also, clients running 2.4.X, have no problems with this server.
> 
> Any ideas?
> 
> James Pearson
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs
> 
> 
> 



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: df and "Value too large for defined data type"
  2004-02-25 22:30 ` James Pearson
@ 2004-02-25 22:40   ` Greg Banks
  2004-02-26 10:16     ` James Pearson
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Banks @ 2004-02-25 22:40 UTC (permalink / raw)
  To: James Pearson; +Cc: nfs

On Wed, Feb 25, 2004 at 10:30:47PM +0000, James Pearson wrote:
> The underlying remote file system is XFS - which in this case appears to 
> be saying that it has 2^64 - 1 inodes - which doesn't seem correct...

XFS supports 64 bit inodes, so this can be correct if it's either

1.  on Linux, and very recent, and mounted with the right options, or

2.  on IRIX

Greg.
-- 
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: df and "Value too large for defined data type"
  2004-02-25 22:40   ` Greg Banks
@ 2004-02-26 10:16     ` James Pearson
  0 siblings, 0 replies; 4+ messages in thread
From: James Pearson @ 2004-02-26 10:16 UTC (permalink / raw)
  To: Greg Banks; +Cc: nfs

I'll probally send an email to the XFS list about this - the problem is
that we've done nothing different with the file system set up on this
server compared with the many others we have - i.e. the file systems
were set up with:

mkfs -t xfs /dev/sdb1

etc.

It's just that the file systems in question seem to be saying that the
number of inodes on the file system is 2^64  - whereas all the other XFS
file systems we have (of a similar size) have nowhere near 2^32 inodes
...

However, the one big difference is that the RAID array in question is
3.5TB - which is partioned on the RAID into 4 (i.e. Linux sees 4 devices
on different LUNs) - therefore the overall size of the RAID array is a
lot bigger than anything else we've used before (we don't have anything
else over 2TB) - and the version of xfsprogs used was very old
(1.3.17-0) ...

I'm going to remake one of the partitions with a newer version of
mkfs.xfs to see if that makes a difference ...

James Pearson

Greg Banks wrote:
> 
> On Wed, Feb 25, 2004 at 10:30:47PM +0000, James Pearson wrote:
> > The underlying remote file system is XFS - which in this case appears to
> > be saying that it has 2^64 - 1 inodes - which doesn't seem correct...
> 
> XFS supports 64 bit inodes, so this can be correct if it's either
> 
> 1.  on Linux, and very recent, and mounted with the right options, or
> 
> 2.  on IRIX
> 
> Greg.
> --
> Greg Banks, R&D Software Engineer, SGI Australian Software Group.
> I don't speak for SGI.


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-02-26 10:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-24 13:27 df and "Value too large for defined data type" James Pearson
2004-02-25 22:30 ` James Pearson
2004-02-25 22:40   ` Greg Banks
2004-02-26 10:16     ` James Pearson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.