About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Thu 26 Jun 2003 - 03:51:38 BST


On Mon, Jun 23, 2003 at 01:16:57AM +0200, Roland Moriz wrote:
> Hi,

Hi Roland!

> mount shows me:
> /dev/sda9 on /home type ext3 (rw,usrquota,grpquota,ctxquota)
>
> then i did:
>
> s2:/home # edquota -x -f /home 17
>
> [set some limits]
> :wq
>
> edquota: WARNING - /dev/sda9: cannot change current block allocation

I would say, you changed the 'block' value, which is not
intented and therefor not permitted ..
try instead to change the soft/hard values ;)

> s2:~ # quota -x 17
> Disk quotas for context #17 (cid 17): none
> :-(
>
> (that was after a fews reboot and now vservers were running)
>
> also "repquota /home" doesn't show me contexts - maybe because no
> vserver was running...

here is a short example regarding context quota:

# quotacheck -vaugxm
   <heavy work ... with animation>

# quotaon -vaugx
/dev/hd1/part2 [/vservers]: group quotas turned on
/dev/hd1/part2 [/vservers]: user quotas turned on
/dev/hd1/part2 [/vservers]: context quotas turned on

# edquota -x 10
Disk quotas for context 10 (cid 10):
  Filesystem blocks soft hard inodes soft hard
  /dev/hd1/part2 12 100 200 1 0 0

# repquota -augx

...
*** Report for context quotas on device /dev/hd1/part2
Block grace time: 7days; Inode grace time: 7days
                        Block limits File limits
Context used soft hard grace used soft hard grace
---------------------------------------------------------------------------
#0 0 -- 161902 0 0 9272 0 0
#10 0 -- 12 100 200 1 0 0

now you can test with

# chcontext --cap \!CAP_SYS_RESOURCE --ctx 10 \
           dd if=/dev/zero of=ctx10.dat bs=1024k count=5

this will fail at 200k ...

best,
Herbert

> with kind regards,
> Mit freundlichen Gruessen,
>
> Roland Moriz
> --
> Muenchen/Germany - http://www.roland-moriz.de/


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 26 Jun 2003 - 04:05:36 BST by hypermail 2.1.3