Alexandre Derumier
3bac137c9f
ISCSIDirect : volume_resize
...
die as we can't resize scsi device plugins
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-08-07 08:09:11 +02:00
Alexandre Derumier
0244a7b9c6
ISCSIPlugin : volume_resize
...
die as we can't resize iscsi devices
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-08-07 08:09:09 +02:00
Alexandre Derumier
530defb603
lvmplugin : volume_resize
...
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>
2012-08-07 08:09:06 +02:00
Alexandre Derumier
81f5058c01
plugins : add volume_resize
...
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>
2012-08-07 08:09:03 +02:00
Alexandre Derumier
7e6c05dc2c
Storage : add global volume_resize
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-08-07 08:09:00 +02:00
Alexandre Derumier
6f714585f2
ISCSIDirect : volume_size_info
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-08-06 06:10:21 +02:00
Alexandre Derumier
3a0c324642
ISCSIDirect : fixes and cleanup
...
-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>
2012-08-06 06:10:16 +02:00
Alexandre Derumier
60301ee037
nexenta: volume_size_info
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-08-06 06:10:13 +02:00
Alexandre Derumier
c95c307373
rbd : volume_size_info
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-08-06 06:10:10 +02:00
Alexandre Derumier
c732d5dbac
sheepdog : volume_size_info
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-08-06 06:10:06 +02:00
Alexandre Derumier
a1301c92d6
ISCSIPlugin : remove specific volume_size_info
...
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>
2012-08-06 06:10:03 +02:00
Dietmar Maurer
2cefe81557
bump version to 2.0-29
2012-08-01 08:51:52 +02:00
Dietmar Maurer
86a9a680de
use rpcinfo instead of Ping
...
This works for NFS servers behind firewalls.
2012-08-01 08:45:33 +02:00
Dietmar Maurer
f3d4ef4626
move check_connection into activate_storage
2012-08-01 07:16:33 +02:00
Dietmar Maurer
f18199e580
volume_size_info: make it work with raw devices
2012-07-31 11:01:02 +02:00
Dietmar Maurer
573778eaf7
bump version to 2.0-28
2012-07-27 10:47:06 +02:00
Alexandre Derumier
c3013a8be5
nexentaplugin : volume_size_info
...
return nothing for now.
This also avoid de call soap api each time in sub path.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-27 10:45:21 +02:00
Alexandre Derumier
0002d9cc30
rbdplugin: volume_size_info
...
return nothing for now
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-27 10:45:18 +02:00
Alexandre Derumier
27923b43c7
sheepdogplugin: volume_size_info
...
return nothing for now
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-27 10:45:16 +02:00
Alexandre Derumier
baf6965931
iscsidirectplugin : volume_size_info
...
return nothing for now
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-27 10:45:14 +02:00
Alexandre Derumier
a548fd488f
iscsiplugin:volume_size_info
...
return nothing for now, as we can't get volume used inside the volume, stats are empty.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-27 10:45:06 +02:00
Alexandre Derumier
e47e548e51
add volume_size_info for generic plugin
...
this use path and file_size_info like before
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-27 10:44:46 +02:00
Alexandre Derumier
20ccac1b6d
add volume_size_info sub
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-27 10:44:03 +02:00
Dietmar Maurer
6d64e9e065
fix lvmscan
2012-07-25 15:50:23 +02:00
Dietmar Maurer
7028645e2e
catch exception
2012-07-19 11:22:35 +02:00
Dietmar Maurer
55dea49287
bump version to 2.0-26
2012-07-19 11:13:25 +02:00
Alexandre Derumier
03b5bfdf9c
iscsi: add check_connection
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-19 11:00:39 +02:00
Alexandre Derumier
4d284721ed
nfs: add check_connection
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-19 11:00:06 +02:00
Alexandre Derumier
c9eeac0131
add check_connection in storage_check_enabled.
...
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>
2012-07-19 10:58:19 +02:00
Dietmar Maurer
3c199da32c
bump version to 2.0-25
2012-07-18 14:03:30 +02:00
Dietmar Maurer
8c3abf126f
re-add hack for empty pool
...
fresh created and empty rbd pool, throw a 500 error with "pool xxx doesn't contain rbd images" message.
2012-07-18 06:04:09 +02:00
Dietmar Maurer
f7a1e35f69
fix sheepdog path
...
We always need to specify a port, else kvm does not find the disk.
2012-07-17 15:12:49 +02:00
Dietmar Maurer
411476cd32
cleanup rbd driver
2012-07-17 13:26:36 +02:00
Dietmar Maurer
8661655414
register all plugins
2012-07-17 12:58:38 +02:00
Dietmar Maurer
6caf6537e0
bump version to 2.0-22
2012-07-17 11:57:40 +02:00
Dietmar Maurer
2677f6239d
cleanup white space errors
2012-07-17 11:55:38 +02:00
Alexandre Derumier
40cd7d27d5
add nexenta plugin
...
storage definition
------------------
portal 192.168.0.1
target iqn.1986-03.com.sun:....
login myloginwithjsonpermission
password jsonuserpassword
pool Yourpool
blocksize 4K
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-17 11:49:53 +02:00
Alexandre Derumier
b345cad347
add iscsidirect plugin
...
This use libiscsi
storage definition:
------------------
portal 192.168.0.1
target iqn.1986-03.com.sun:....
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-17 11:48:27 +02:00
Dietmar Maurer
e9256323c0
sheepdog: implement storage status
2012-07-16 09:51:26 +02:00
Dietmar Maurer
7f8373d270
delete trailing white spaces
2012-07-16 09:13:19 +02:00
Dietmar Maurer
be6339fc3a
sheepdog: use '-r' to get sizes in bytes, code cleanup
...
Use a common method collie_cmd() to assemble command using
correct server/port settings.
2012-07-16 09:10:17 +02:00
Dietmar Maurer
caf1960c76
register sheepdog plugin
2012-07-16 07:26:08 +02:00
Dietmar Maurer
27a685aee3
bump version to 2.0-21
2012-07-16 07:18:07 +02:00
Alexandre Derumier
e4fc8228a7
add sheepdog plugin
...
storage definition
-------------------
portal 127.0.0.1:7000
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-16 07:14:53 +02:00
Alexandre Derumier
1270370d9b
set shared=1 to sheepdog plugin
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-16 07:03:42 +02:00
Dietmar Maurer
6bf5629866
fix offline migration bug
...
Alway pass volname and storeid to plugin->path()
2012-07-16 06:45:13 +02:00
Alexandre Derumier
d70e7f6c0d
rbd : add owner attribute when rbs ls
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-06-19 06:42:35 +02:00
Alexandre Derumier
4e2d3bc8ea
rbd : use keyring file instead keyfile
...
we need 1 keyring by rbd storage
/etc/pve/priv/ceph/storagename.keyring
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-06-18 13:44:56 +02:00
Dietmar Maurer
571abaa611
add newline to error message
2012-06-18 06:30:27 +02:00
Alexandre Derumier
3e195ccccb
rbd : rbd_ls: doesn't throw error if pool doesn't contain image
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-06-18 06:04:57 +02:00