du result is smaller than xfs_quota report

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs

[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux