Skip to contentSkip to conversation

XFS + LVM + quota = disk quota exceeded

DISCUSSION Patryk Lason 2 participants 3 messages Feb 18, 2010 – Feb 19, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

I'm not able to touch a file on an XFS filesystem with quotas created on an LVM volume.
Even if I set limits to 10TB on 2TB device.

OS: CentOS release 5.4 (Final)
Kernel: Linux nfs 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20 07:32:21 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
Path to xfs: /lib/modules/2.6.18-164.11.1.el5/kernel/fs/xfs/xfs.ko

Device: /dev/mapper/lvm--people-people on /people type xfs (rw,noatime,usrquota,grpquota)

--- Volume group ---
VG Name lvm-people
System ID

  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               2.00 TB
  PE Size               4.00 MB
  Total PE              524031
  Alloc PE / Size       524031 / 2.00 TB
  Free  PE / Size       0 / 0
  VG UUID               XYOrZr-6Pqv-JPKP-cuKU-xcbO-vfet-rbRgkO

--- Logical volume ---

  LV Name                /dev/lvm-people/people
  VG Name                lvm-people
  LV UUID                X766hc-NkTy-TGFb-3FJE-syOg-uwwk-LrbYyc
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 TB
  Current LE             524031
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:12
# xfs_info /people/
meta-data=/dev/mapper/lvm--people-people isize=256    agcount=32, 
agsize=16768992 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=536607744, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal               bsize=4096   blocks=32768, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
Quoted 1 line

From xfs_quota:

Disk quotas for User xxx (1111)
Filesystem Blocks Quota Limit Warn/Time Mounted
on
/dev/mapper/lvm--people-people

                        742740 10737418240 10737418240   00 [--------] /people
# su - xxx
$ pwd
/people/xxx
$ touch a
touch: cannot touch `a': Disk quota exceeded

What may be wrong and where?

Regards,
Patryk

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#1 lore raw
Quoted 5 lines · Patryk Lason

Hello,

I'm not able to touch a file on an XFS filesystem with quotas created on an LVM volume.
Even if I set limits to 10TB on 2TB device.

...

Quoted 8 lines

From xfs_quota:
Disk quotas for User xxx (1111)
Filesystem Blocks Quota Limit Warn/Time Mounted
on
/dev/mapper/lvm--people-people

                        742740 10737418240 10737418240   00 [--------] /people
Quoted 8 lines
# su - xxx
$ pwd
/people/xxx
$ touch a
touch: cannot touch `a': Disk quota exceeded

What may be wrong and where?

file quota maybe, not block quota; quota -i ?

-Eric

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw
Quoted 25 lines · Eric Sandeen
Quoted 5 lines · Patryk Lason

Hello,

I'm not able to touch a file on an XFS filesystem with quotas created on an LVM volume.
Even if I set limits to 10TB on 2TB device.

...

Quoted 16 lines

From xfs_quota:
Disk quotas for User xxx (1111)
Filesystem Blocks Quota Limit Warn/Time
Mounted on
/dev/mapper/lvm--people-people

                        742740 10737418240 10737418240   00 [--------]

/people

# su - xxx
$ pwd
/people/xxx
$ touch a
touch: cannot touch `a': Disk quota exceeded
Quoted 3 lines
Quoted 1 line

What may be wrong and where?

file quota maybe, not block quota; quota -i ?

Looks like I've found it.
I played with "-d" parameter for "limit" in xfs_quota. I wanted to set default quota for users, but using the following command:

limit -u bsoft=5g bhard=7g isoft=0 ihard=0 -d

the limit is set also for groups.
That's why I couldn't created any file.

I have xfsprogs-2.9.4.

Regards,
Patryk

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs