IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
resize volume using nexenta api. (online or offline).
we can't use qmp block_resize with libiscsi to online update disk size in guest (throw error), so return undef;
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
use collie command to resize disk (online or offline).
we can't use qmp block_resize to online resize size in guest (throw error) , so return undef.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
resize disk with rbd command if vm is offline
otherwise we can use qmp block_resize if vm is online
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
resize the lvm device (online or offline)
return 1 to use qmp block_resize to online update size in guest
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
this add qemu-img resize for file devices (raw - qcow2) if vm is offline.
otherwise we need to use online qmp block_resize
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
-use "lunX" for volume name.
previously it was only the lun number, and it conflict with current syntax to disk alloc disk size.
-scsi-ls return size in Gb, so we need to convert to bytes
-small cleanups
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
no need to use volume_size_info, we can use generic volume_size_info from Plugin. (file_size_info)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Currently, if a storage have an infinite timeout (nfs hard option or iscsi with high timeout for failover),
and if the storage is down or is doing ha failover with dual controller
- pvestatd hang on storage_info. (So pve-manager see the host as down, and hang on differents parts, gui,rrds display)
- pvedaemon hang on differents place (storage disk list,vm_status, hardware info,...)
- I also see a lot of qemu-img info process hanging in uninterruptible sleep state with iscsi storage.
This patch add a check to see if the storage is accessible.
For nfs and iscsi : ping with a timeout of 2 second. (Maybe this can be polish with some kind of filesystem/storage read test with timeout...)
Default for other storage plugins is to check nothing. (not a problem with sheepdog,ceph,libiscsi... as commands have timeout)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>