public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* du result is smaller than xfs_quota report
@ 2015-10-20  9:09 YeYin
  2015-10-20 11:31 ` Emmanuel Florac
  2015-10-20 19:35 ` Eric Sandeen
  0 siblings, 2 replies; 8+ messages in thread
From: YeYin @ 2015-10-20  9:09 UTC (permalink / raw)
  To: xfs


[-- Attachment #1.1: Type: text/plain, Size: 1576 bytes --]

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.


# xfs_db -xr -c 'dquot -p 26286' -c p /dev/sda4
diskdq.magic = 0x4451
diskdq.version = 0x1
diskdq.flags = 0x2
diskdq.id = 26286
diskdq.blk_hardlimit = 183500800
diskdq.blk_softlimit = 0
diskdq.ino_hardlimit = 0
diskdq.ino_softlimit = 0
diskdq.bcount = 97049008
diskdq.icount = 11725
diskdq.itimer = 0
diskdq.btimer = 0
diskdq.iwarns = 0
diskdq.bwarns = 0
diskdq.rtb_hardlimit = 0
diskdq.rtb_softlimit = 0
diskdq.rtbcount = 0
diskdq.rtbtimer = 0
diskdq.rtbwarns = 0



It seems that some blocks owned by project wasn't be freed. Anyone can give me some suggestions to find the reason?


Thanks,
Ye

[-- Attachment #1.2: Type: text/html, Size: 2372 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2015-10-23  6:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20  9:09 du result is smaller than xfs_quota report YeYin
2015-10-20 11:31 ` Emmanuel Florac
2015-10-20 13:30   ` YeYin
2015-10-20 19:35 ` Eric Sandeen
2015-10-21  6:37   ` YeYin
2015-10-21  7:13     ` Dave Chinner
2015-10-21  8:09       ` YeYin
2015-10-23  6:55         ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox