On 10/06/2014 13:56, Len Weincier via smartos-discuss wrote:
> {
> "update_disks": [
> {
> "path":
> "/dev/zvol/rdsk/zones/b38b2932-7a93-492d-8e91-7c03d67d18c6-disk1",
> "size": 1000
> }
> ]
> }
Well, if you use the command "vmadm validate"
vmadm validate update kvm -f upddisk.json
You will get an error:
{
"bad_values": [],
"bad_properties": [
"disks.*.size"
],
"missing_properties": []
}
Maybe, contrary to the vmadm man page, "size" is not updatable.
However, if you grow the zvol size using
zfs set volsize=20G zones/uuid-disk0
and then you issue the "vmadm get" command, you will see the disk.size
value accordingly updated.
By the way I have alway followed this guide:
<http://wiki.smartos.org/display/DOC/Resizing+Linux+VM+Disks>
Ciao
A
-------------------------------------------
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