From: YeYin <eyniy@qq.com>
To: xfs <xfs@oss.sgi.com>
Subject: du result is smaller than xfs_quota report
Date: Tue, 20 Oct 2015 17:09:58 +0800 [thread overview]
Message-ID: <tencent_7585C3B40C484DE23B248E82@qq.com> (raw)
[-- 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
next reply other threads:[~2015-10-20 9:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 9:09 YeYin [this message]
2015-10-20 11:31 ` du result is smaller than xfs_quota report 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_7585C3B40C484DE23B248E82@qq.com \
--to=eyniy@qq.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox