Product SiteDocumentation Site

5.2.4. Exercise 4 - Examining Quota Internals

Examine quota inodes and quota entries.
  1. Examine the quota inodes.
    # xfs_db -xr /dev/hdb1
    xfs_db: sb 0
    xfs_db: p
    ...
    uquotino = null
    pquotino = 132
    
    xfs_db: inode 132
    xfs_db: p
    ...
    
  2. Examine the quota entries.
    xfs_db: dquot -p testproject
    xfs_db: p
    diskdq.magic = 0x4451
    diskdq.version = 0x1
    diskdq.flags = 0x2
    diskdq.id = 33
    diskdq.blk_hardlimit = 2560
    diskdq.blk_softlimit = 1280
    diskdq.ino_hardlimit = 0
    diskdq.ino_softlimit = 0
    diskdq.bcount = 1
    diskdq.icount = 2
    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
    
  3. Examine inodes of quota controlled files/directories
    # cd /mnt/xfstest/a
    # ls > testfile
    # ls -ia
      133 .     128 ..    135 testfile
    
    # sudo xfs_db -xr /dev/hdb1
    xfs_db: inode 133
    xfs_db: p
    ...
    core.projid = 33
    core.uid = 0
    core.gid = 0
    ...