<div>
<div>Hi,</div><div><br></div><div>I have tried the onequota on OpenNebula 3.0. I want to control each</div><div>user's storage usage, but quota does not work as instructed.</div><div>For example, oneadmin allowed 50GB(51200MB) for user "ota" (uid:1).</div><div>he is using 30GB of storage now.</div><div><br></div><div>[oneadmin@asccmp004 ~]$ oneuser list</div><div> ID GROUP NAME PASSWORD</div><div> 0 oneadmin oneadmin XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div><div> 1 soum ota YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY</div><div>[oneadmin@asccmp004 ~]$ oneimage list ota</div><div> ID USER GROUP NAME SIZE TYPE REGTIME PUB PER STAT RVMS</div><div> 5 ota soum macprefix_ip 5G OS 11/29 15:59:31 Yes No rdy 0</div><div> 7 ota soum context 5G OS 11/30 16:23:30 Yes No rdy 0</div><div> 9 ota soum block 20G DB 12/02 14:47:25 No Yes rdy 0</div><div>[oneadmin@asccmp004 ~]$ onequota set 1 storage 51200</div><div>[oneadmin@asccmp004 ~]$ onequota list</div><div> uid cpu num_vms memory storage</div><div> 1 0 0 0 51200</div><div>[oneadmin@asccmp004 ~]$ onequota show 1</div><div> uid cpu num_vms memory storage</div><div> 1 0/0 0/0 0/0 35844/51200</div><div><br></div><div>Then ota tryed to register 5GB image, but "STORAGE quota exceeded"</div><div>occurred.</div><div><div><br></div><div>[ota@asccmp004]% ls -lh /work/tmp/centos_context.img</div><div>-rw-r--r-- 1 ota users 5.0G Nov 30 16:21 /work/tmp/centos_context.img</div><div>[ota@asccmp004]% cat image_quota.one</div><div>NAME = "quota"</div><div>PATH = /work/tmp/centos_context.img</div><div>TYPE = OS</div><div>PUBLIC = YES</div><div>PERSISTENT = NO</div><div>DESCRIPTION = "Test for OpenNebula 3.0 quota"</div><div>[ota@asccmp004]% oneimage create image_quota.one</div><div>[ImageAllocate] User [1] : STORAGE quota exceeded (Quota: 51200, Used: 30723, Requested: 5368709120).</div><div><br></div><div>Why this error occurred?</div><div><br></div><div>I am using OpenNebula 3.0 on Scientific Linux 6.1(x86_64). OpenNeubla</div><div>builded from source.</div><div><br></div><div>Thanks,</div></div>
</div>
<div><div><br></div><div>-- </div><div>Akihiko Ota</div><div><br></div></div>