[one-users] STORAGE quota exceeded

Akihiko Ota skywalker.37th at gmail.com
Sun Dec 11 21:21:34 PST 2011


Hi,

I have tried the onequota on OpenNebula 3.0. I want to control each
user's storage usage, but quota does not work as instructed.
For example, oneadmin allowed 50GB(51200MB) for user "ota" (uid:1).
he is using 30GB of storage now.

[oneadmin at asccmp004 ~]$ oneuser list
  ID GROUP    NAME                                                      PASSWORD
   0 oneadmin oneadmin                  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
   1 soum     ota                       YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
[oneadmin at asccmp004 ~]$ oneimage list ota
  ID USER     GROUP    NAME            SIZE TYPE          REGTIME PUB PER STAT  RVMS
   5 ota      soum     macprefix_ip      5G   OS   11/29 15:59:31 Yes  No  rdy     0
   7 ota      soum     context           5G   OS   11/30 16:23:30 Yes  No  rdy     0
   9 ota      soum     block            20G   DB   12/02 14:47:25  No Yes  rdy     0
[oneadmin at asccmp004 ~]$ onequota set 1 storage 51200
[oneadmin at asccmp004 ~]$ onequota list
 uid      cpu  num_vms   memory  storage
   1        0        0        0    51200
[oneadmin at asccmp004 ~]$ onequota show 1
 uid          cpu      num_vms       memory      storage
   1          0/0          0/0          0/0  35844/51200

Then ota tryed to register 5GB image, but "STORAGE quota exceeded"
occurred.

[ota at asccmp004]% ls -lh /work/tmp/centos_context.img
-rw-r--r-- 1 ota users 5.0G Nov 30 16:21 /work/tmp/centos_context.img
[ota at asccmp004]% cat image_quota.one
NAME          = "quota"
PATH          = /work/tmp/centos_context.img
TYPE          = OS
PUBLIC        = YES
PERSISTENT    = NO
DESCRIPTION   = "Test for OpenNebula 3.0 quota"
[ota at asccmp004]% oneimage create image_quota.one
[ImageAllocate] User [1] : STORAGE quota exceeded (Quota: 51200, Used: 30723, Requested: 5368709120).

Why this error occurred?

I am using OpenNebula 3.0 on Scientific Linux 6.1(x86_64). OpenNeubla
builded from source.

Thanks, 

-- 
Akihiko Ota

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111212/fa257973/attachment.htm>


More information about the Users mailing list