GNU bug report logs - #14963
The values for the same file-system differ depending on the file tested

Previous Next

Package: coreutils;

Reported by: "Zahariev, Boris" <boris.zahariev <at> internetbrands.com>

Date: Fri, 26 Jul 2013 23:44:01 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14963 in the body.
You can then email your comments to 14963 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#14963; Package coreutils. (Fri, 26 Jul 2013 23:44:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Zahariev, Boris" <boris.zahariev <at> internetbrands.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 26 Jul 2013 23:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Zahariev, Boris" <boris.zahariev <at> internetbrands.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: The values for the same file-system differ depending on the file
 tested
Date: Fri, 26 Jul 2013 23:24:15 +0000
 ~]$ sudo df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
Filesystem            Size  Used Avail Use% Mounted on
eq-fas3240-001a:/vol/a0content1
                      549G  501M  549G   1% /nfs/eq-fas3240-001a/vol/a0content1

 ~]$ sudo df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/
Filesystem            Size  Used Avail Use% Mounted on
eq-fas3240-001a:/vol/a0content1
                      380G  495M  380G   1% /nfs/eq-fas3240-001a/vol/a0content1


The values for the same file-system differ depending on the file tested?


 



Information forwarded to bug-coreutils <at> gnu.org:
bug#14963; Package coreutils. (Sat, 27 Jul 2013 00:06:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Zahariev, Boris" <boris.zahariev <at> internetbrands.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: RE: The values for the same file-system differ depending on the
 file tested
Date: Fri, 26 Jul 2013 23:26:19 +0000
 ~]$ sudo df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
Filesystem            Size  Used Avail Use% Mounted on
eq-fas3240-001a:/vol/a0content1
                      549G  501M  549G   1% /nfs/eq-fas3240-001a/vol/a0content1

 ~]$ sudo df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/
Filesystem            Size  Used Avail Use% Mounted on
eq-fas3240-001a:/vol/a0content1
                      380G  495M  380G   1% /nfs/eq-fas3240-001a/vol/a0content1


The values for the same file-system differ depending on the file tested?


~]$ df --version
df (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjorn Granlund, David MacKenzie, and Paul Eggert.

~]$ uname -a
Linux eqdfm1.internetbrands.com 2.6.18-194.17.4.el5xen #1 SMP Mon Oct 25 16:36:31 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux






Information forwarded to bug-coreutils <at> gnu.org:
bug#14963; Package coreutils. (Sat, 27 Jul 2013 06:47:02 GMT) Full text and rfc822 format available.

Message #11 received at 14963 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Zahariev, Boris" <boris.zahariev <at> internetbrands.com>
Cc: 14963 <at> debbugs.gnu.org
Subject: Re: bug#14963: The values for the same file-system differ depending
 on the file tested
Date: Sat, 27 Jul 2013 07:45:46 +0100
On 07/27/2013 12:26 AM, Zahariev, Boris wrote:
> The values for the same file-system differ depending on the file tested?
>

They shouldn't, no.  What does 'strace' tell you about the
relevant system calls?  If the system calls are reporting
the incorrect information, the bug lies in the kernel or
file system, and df probably can't do much about it.




Information forwarded to bug-coreutils <at> gnu.org:
bug#14963; Package coreutils. (Sat, 27 Jul 2013 20:26:02 GMT) Full text and rfc822 format available.

Message #14 received at 14963 <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: "Zahariev, Boris" <boris.zahariev <at> internetbrands.com>
Cc: 14963 <at> debbugs.gnu.org
Subject: Re: bug#14963: The values for the same file-system differ depending
 on the file tested
Date: Sat, 27 Jul 2013 14:25:45 -0600
Zahariev, Boris wrote:
> 
>  ~]$ sudo df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
> Filesystem            Size  Used Avail Use% Mounted on
> eq-fas3240-001a:/vol/a0content1
>                       549G  501M  549G   1% /nfs/eq-fas3240-001a/vol/a0content1
> 
>  ~]$ sudo df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/
> Filesystem            Size  Used Avail Use% Mounted on
> eq-fas3240-001a:/vol/a0content1
>                       380G  495M  380G   1% /nfs/eq-fas3240-001a/vol/a0content1
> 
> 
> The values for the same file-system differ depending on the file tested?

Please try these:

  strace -o df.strace.out -v -e trace=statfs /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
  strace -o df.strace.out -v -e trace=statfs /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/

Then report back what they say.  (I assume that your system is using
statfs.  If that reports an invalid system call name then just report
all file system calls.)

  strace -o df.strace.out -v -e trace=file /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
  strace -o df.strace.out -v -e trace=file /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/

And if that fails then everything.

  strace -o df.strace.out -v /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
  strace -o df.strace.out -v /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/

If the file is large then please think of the list bandwidth and
compress it before sending it back.

Bob




Information forwarded to bug-coreutils <at> gnu.org:
bug#14963; Package coreutils. (Mon, 29 Jul 2013 17:25:01 GMT) Full text and rfc822 format available.

Message #17 received at 14963 <at> debbugs.gnu.org (full text, mbox):

From: "Zahariev, Boris" <boris.zahariev <at> internetbrands.com>
To: Bob Proulx <bob <at> proulx.com>
Cc: "14963 <at> debbugs.gnu.org" <14963 <at> debbugs.gnu.org>
Subject: RE: bug#14963: The values for the same file-system differ depending
 on the file tested
Date: Mon, 29 Jul 2013 17:24:21 +0000
Hi Bob


 ~]#  strace -o df.strace.out1 -v -e trace=statfs df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
Filesystem            Size  Used Avail Use% Mounted on
eq-fas3240-001a:/vol/a0content1
                      656G  501M  655G   1% /nfs/eq-fas3240-001a/vol/a0content1
 ~]#  strace -o df.strace.out2 -v -e trace=statfs df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/
Filesystem            Size  Used Avail Use% Mounted on
eq-fas3240-001a:/vol/a0content1
                      380G  568M  380G   1% /nfs/eq-fas3240-001a/vol/a0content1

 ~]# cat df.strace.out1
statfs("/nfs/eq-fas3240-001a/vol/a0content1/rcuvb/", {f_type="NFS_SUPER_MAGIC", f_bsize=65536, f_blocks=10734745, f_bfree=10726732, f_bavail=10726732, f_files=43730919, f_ffree=43720738, f_fsid={0, 0}, f_namelen=255, f_frsize=65536}) = 0

 ~]# cat df.strace.out2
statfs("/nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/", {f_type="NFS_SUPER_MAGIC", f_bsize=65536, f_blocks=6225920, f_bfree=6216844, f_bavail=6216844, f_files=43736471, f_ffree=43720729, f_fsid={0, 0}, f_namelen=255, f_frsize=65536}) = 0




________________________________________
From: Bob Proulx [bob <at> proulx.com]
Sent: Saturday, July 27, 2013 1:25 PM
To: Zahariev, Boris
Cc: 14963 <at> debbugs.gnu.org
Subject: Re: bug#14963: The values for the same file-system differ depending on the file tested

Zahariev, Boris wrote:
>
>  ~]$ sudo df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
> Filesystem            Size  Used Avail Use% Mounted on
> eq-fas3240-001a:/vol/a0content1
>                       549G  501M  549G   1% /nfs/eq-fas3240-001a/vol/a0content1
>
>  ~]$ sudo df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/
> Filesystem            Size  Used Avail Use% Mounted on
> eq-fas3240-001a:/vol/a0content1
>                       380G  495M  380G   1% /nfs/eq-fas3240-001a/vol/a0content1
>
>
> The values for the same file-system differ depending on the file tested?

Please try these:

  strace -o df.strace.out -v -e trace=statfs /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
  strace -o df.strace.out -v -e trace=statfs /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/

Then report back what they say.  (I assume that your system is using
statfs.  If that reports an invalid system call name then just report
all file system calls.)

  strace -o df.strace.out -v -e trace=file /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
  strace -o df.strace.out -v -e trace=file /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/

And if that fails then everything.

  strace -o df.strace.out -v /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
  strace -o df.strace.out -v /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/

If the file is large then please think of the list bandwidth and
compress it before sending it back.

Bob




Information forwarded to bug-coreutils <at> gnu.org:
bug#14963; Package coreutils. (Mon, 29 Jul 2013 23:21:02 GMT) Full text and rfc822 format available.

Message #20 received at 14963 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: "Zahariev, Boris" <boris.zahariev <at> internetbrands.com>
Cc: "14963 <at> debbugs.gnu.org" <14963 <at> debbugs.gnu.org>,
 Bob Proulx <bob <at> proulx.com>
Subject: Re: bug#14963: The values for the same file-system differ depending
 on the file tested
Date: Tue, 30 Jul 2013 00:20:18 +0100
tag 14963 notabug
close 14963
stop

On 07/29/2013 06:24 PM, Zahariev, Boris wrote:
> Hi Bob
> 
> 
>  ~]#  strace -o df.strace.out1 -v -e trace=statfs df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
> Filesystem            Size  Used Avail Use% Mounted on
> eq-fas3240-001a:/vol/a0content1
>                       656G  501M  655G   1% /nfs/eq-fas3240-001a/vol/a0content1
>  ~]#  strace -o df.strace.out2 -v -e trace=statfs df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/
> Filesystem            Size  Used Avail Use% Mounted on
> eq-fas3240-001a:/vol/a0content1
>                       380G  568M  380G   1% /nfs/eq-fas3240-001a/vol/a0content1
> 
>  ~]# cat df.strace.out1
> statfs("/nfs/eq-fas3240-001a/vol/a0content1/rcuvb/", {f_type="NFS_SUPER_MAGIC", f_bsize=65536, f_blocks=10734745, f_bfree=10726732, f_bavail=10726732, f_files=43730919, f_ffree=43720738, f_fsid={0, 0}, f_namelen=255, f_frsize=65536}) = 0
> 
>  ~]# cat df.strace.out2
> statfs("/nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/", {f_type="NFS_SUPER_MAGIC", f_bsize=65536, f_blocks=6225920, f_bfree=6216844, f_bavail=6216844, f_files=43736471, f_ffree=43720729, f_fsid={0, 0}, f_namelen=255, f_frsize=65536}) = 0

So you can see that the system interprets those passed paths and
returns the associated sizes for them.
I suspect different values are returned due to quotas or
some other per directory attribute on your system.

As such, I'm closing this as not specific to du.

thanks for the follow up,
Pádraig.





Information forwarded to bug-coreutils <at> gnu.org:
bug#14963; Package coreutils. (Tue, 30 Jul 2013 08:16:01 GMT) Full text and rfc822 format available.

Message #23 received at 14963 <at> debbugs.gnu.org (full text, mbox):

From: Philip Rowlands <phr+coreutils <at> dimebar.com>
To: "Zahariev, Boris" <boris.zahariev <at> internetbrands.com>
Cc: 14963 <at> debbugs.gnu.org
Subject: Re: bug#14963: The values for the same file-system differ depending
 on the file tested
Date: Tue, 30 Jul 2013 09:14:40 +0100
On 27/07/2013 00:24, Zahariev, Boris wrote:
>
>   ~]$ sudo df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuvb/
> Filesystem            Size  Used Avail Use% Mounted on
> eq-fas3240-001a:/vol/a0content1
>                        549G  501M  549G   1% /nfs/eq-fas3240-001a/vol/a0content1
>
>   ~]$ sudo df -h /nfs/eq-fas3240-001a/vol/a0content1/rcuniverse/
> Filesystem            Size  Used Avail Use% Mounted on
> eq-fas3240-001a:/vol/a0content1
>                        380G  495M  380G   1% /nfs/eq-fas3240-001a/vol/a0content1
>
>
> The values for the same file-system differ depending on the file tested?

I infer from the pathname that you're using Netapp ONTAP as an NFS server.

From the results you see from df I infer that you're using qtree 
quotas. Have a look at the /etc/quotas file on the filer, and this document:
https://library.netapp.com/ecmdocs/ECMP1196979/html/man5/na_quotas.5.html

Cheers,
Phil




Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Tue, 30 Jul 2013 09:14:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 14963 <at> debbugs.gnu.org and "Zahariev, Boris" <boris.zahariev <at> internetbrands.com> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Tue, 30 Jul 2013 09:14:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 27 Aug 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.