On 7/29/16 11:31 , Humberto Ramirez wrote:
> Is there a limit on KVM disks? trying to add a 500gb disk fails:
>
> vmadm update uuid < adddisk.json
> Command failed: cannot create 'zones/uuid-disk1': out of space
>
> adddisk.json:
> {
> "add_disks": [
> {
> "boot": false,
> "model": "virtio",
> "block_size": 131072,
> "compression": "lz4",
> "size":500000000000
> }
> ]
> }
You didn't request 500 GB you requested a lot more than that. The size
parameter is in MiB per vmadm(1M):
disks.*.size:
Size of disk in MiB. You should only specify this parameter if you´ve
not included the image_* parameters. It will show up in get requests
for all disks whether you´ve specified or not as a means to determine
the size of the zvol.
Important: size is required when you don´t include image_uuid for a disk
and not allowed when you do.
type: integer (size in MiB)
vmtype: KVM
listable: yes (see above)
create: yes
update: yes (special, see description in ´update´ section above)
default: no
Robert
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com