du result is smaller than xfs_quota report

YeYin eyniy at qq.com
Wed Oct 21 01:37:04 CDT 2015


> Is anything mounted under that directory hierarchy, and hiding files from du's view?


No, Thanks. I found some unlinked inodes, but I can't get some useful information:


# xfs_db -xr -c 'agi 1' -c p /dev/sda4  
magicnum = 0x58414749
versionnum = 1
seqno = 1
length = 89150592
count = 9472
root = 3
level = 1
freecount = 1902
newino = 997952
dirino = null
unlinked[0-63] = 0:78272 1:98561 2:98562 3:78275 4:77060 5:78277 6:77062 7:78279 8:98568 9:98569 10:98570 11:77067 12:77068 13:98573 14:98574 15:78287 16:98576 17:98577 18:78290 19:98515 20:98068 21:78165 22:78294 23:78295 24:78168 25:888985 26:78170 27:98075 28:78172 29:78301 30:78302 31:98079 32:888992 33:76129 34:98082 35:76131 36:98084 37:98277 38:98278 39:910503 40:98280 41:98281 42:98282 43:98091 44:98092 45:98541 46:98094 47:98095 48:76976 49:75953 50:75954 51:98547 52:98484 53:98485 54:98550 55:98551 56:98488 57:98489 58:98106 59:98491 60:98492 61:889021 62:98558 63:98495





# xfs_db -xr -c 'inode 78272' -c p /dev/sda4
core.magic = 0
core.mode = 0
core.version = 0
core.format = 0 (dev)
core.uid = 0
core.gid = 0
core.flushiter = 0
core.atime.sec = Thu Jan  1 08:00:00 1970
core.atime.nsec = 000000000
core.mtime.sec = Thu Jan  1 08:00:00 1970
core.mtime.nsec = 000000000
core.ctime.sec = Thu Jan  1 08:00:00 1970
core.ctime.nsec = 000000000
core.size = 0
core.nblocks = 0
core.extsize = 0
core.nextents = 0
core.naextents = 0
core.forkoff = 0
core.aformat = 0 (dev)
core.dmevmask = 0
core.dmstate = 0
core.newrtbm = 0
core.prealloc = 0
core.realtime = 0
core.immutable = 0
core.append = 0
core.sync = 0
core.noatime = 0
core.nodump = 0
core.rtinherit = 0
core.projinherit = 0
core.nosymlinks = 0
core.extsz = 0
core.extszinherit = 0
core.nodefrag = 0
core.filestream = 0
core.gen = 0
next_unlinked = 0
u.dev = 0



Thanks,
Ye


------------------ Original ------------------
From:  "Eric Sandeen";<sandeen at sandeen.net>;
Date:  Wed, Oct 21, 2015 03:35 AM
To:  "YeYin"<eyniy at qq.com>; 
Cc:  "xfs"<xfs at oss.sgi.com>; 
Subject:  Re: du result is smaller than xfs_quota report




> On Oct 20, 2015, at 4:09 AM, YeYin <eyniy at qq.com> wrote:
> 
> Hi, all,
> I encountered some problems when I used XFS with project quota:
> 
> # cat /etc/projid 
> docker-15091421396426:65061
> docker-15092311522409:26286
> docker-15101215637294:14162
> 
> # cat /etc/projects 
> 65061:/data/docker-volumes/docker-15091421396426
> 26286:/data/docker-volumes/docker-15092311522409
> 14162:/data/docker-volumes/docker-15101215637294
> 
> # xfs_quota -xc 'report -h' /data          
> Project quota on /data (/dev/sda4)
>                         Blocks              
> Project ID   Used   Soft   Hard Warn/Grace   
> ---------- --------------------------------- 
> docker-15091421396426   1.0G      0   100G  00 [------]
> docker-15092311522409 371.5G      0   700G  00 [------]
> docker-15101215637294 920.8M      0   400G  00 [------]
> 
> # du -sh /data/docker-volumes/docker-15092311522409 
> 200G    /data/docker-volumes/docker-15092311522409
> 
> As we can see,  du's result(200G) is smaller than xfs_quota report.
> 
Is anything mounted under that directory hierarchy, and hiding files from du's view?

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20151021/e915f1d1/attachment.html>


More information about the xfs mailing list