]>
git.proxmox.com Git - pve-storage.git/log
Alexandre Derumier [Wed, 21 Nov 2012 17:11:31 +0000 (18:11 +0100)]
files: retrieve parent of a clone
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Fri, 2 Nov 2012 07:52:50 +0000 (08:52 +0100)]
remove timeouts from 'qemu-img snapshot' commands.
Those commands can take several minutes on larger files.
Dietmar Maurer [Wed, 31 Oct 2012 13:08:20 +0000 (14:08 +0100)]
bump version to 2.0-35
Alexandre Derumier [Wed, 31 Oct 2012 11:28:37 +0000 (12:28 +0100)]
sheepdog : delete snapshots when deleting volume
sheepdog don't delete snapshots automatically when deleting volume
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Wed, 31 Oct 2012 10:24:53 +0000 (11:24 +0100)]
rbd: purge snapshots before delete volume
we can't delete a rbd volume if snapshots exist
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Stefan Priebe [Wed, 31 Oct 2012 11:16:56 +0000 (12:16 +0100)]
PVE/API2/Storage/Status: remove hardcoded blowfish cipher PVE/Storage: remove hardcoded blowfish cipher
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
Dietmar Maurer [Mon, 22 Oct 2012 10:30:20 +0000 (12:30 +0200)]
bump version to 2.0-34
Alexandre Derumier [Tue, 16 Oct 2012 14:38:13 +0000 (16:38 +0200)]
rbd: get volume size for volumes list
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Tue, 16 Oct 2012 14:08:25 +0000 (16:08 +0200)]
rbd: add storage space stats
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Tue, 2 Oct 2012 11:35:10 +0000 (13:35 +0200)]
create 'dump' directory if storage contains containers
This is needed by openvz migrate to store state.
Dietmar Maurer [Tue, 25 Sep 2012 04:02:43 +0000 (06:02 +0200)]
bump version to 2.0-32
Dietmar Maurer [Thu, 20 Sep 2012 05:18:59 +0000 (07:18 +0200)]
code cleanup
Alexandre Derumier [Wed, 19 Sep 2012 10:20:21 +0000 (12:20 +0200)]
qcow2 : preallocate metadatas at file creation
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Wed, 19 Sep 2012 06:55:23 +0000 (08:55 +0200)]
use longer timeouts for snapshot commands
Dietmar Maurer [Wed, 19 Sep 2012 06:39:25 +0000 (08:39 +0200)]
nexenta: implement status
Dietmar Maurer [Wed, 19 Sep 2012 06:16:58 +0000 (08:16 +0200)]
nexenta: use import_lu on rollback
To avoid generation of new GUID.
Dietmar Maurer [Wed, 19 Sep 2012 05:38:40 +0000 (07:38 +0200)]
nexenta: fix parse_volname
And some coding style cleanups.
Dietmar Maurer [Mon, 17 Sep 2012 08:32:09 +0000 (10:32 +0200)]
nexenta: recursively delete all snapshots on vdisk_free
Dietmar Maurer [Mon, 17 Sep 2012 08:26:21 +0000 (10:26 +0200)]
nexenta: fix parameter for create_snapshot
Dietmar Maurer [Mon, 17 Sep 2012 08:12:36 +0000 (10:12 +0200)]
nexenta API cleanups
remove all uncommented sleep calls (will add them later if required). Use
new nexenta_request() syntax. Also removed strangs eval{} sections which
hide errors.
Dietmar Maurer [Mon, 17 Sep 2012 05:58:20 +0000 (07:58 +0200)]
nexenta: correctly get volsize (needs extra API call)
Dietmar Maurer [Fri, 7 Sep 2012 10:59:26 +0000 (12:59 +0200)]
fix typo
Alexandre Derumier [Thu, 6 Sep 2012 08:28:11 +0000 (10:28 +0200)]
iscsidirect : add volume_snapshot_delete
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:28:10 +0000 (10:28 +0200)]
lvm: add volume_snapshot_delete
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:28:09 +0000 (10:28 +0200)]
nexenta: add volume_snapshot_delete
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:28:08 +0000 (10:28 +0200)]
sheepdog: add volume_snapshot_delete
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:28:07 +0000 (10:28 +0200)]
rbd : add volume_snapshot_delete
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:28:06 +0000 (10:28 +0200)]
plugin: add volume_snapshot_delete
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:28:05 +0000 (10:28 +0200)]
storage : add volume_snapshot_delete
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:28:04 +0000 (10:28 +0200)]
iscsidirect : add volume_snapshot_rollback
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:28:03 +0000 (10:28 +0200)]
lvm : add volume_snapshot_rollback
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:28:02 +0000 (10:28 +0200)]
nexenta: add volume_snapshot_rollback
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:28:01 +0000 (10:28 +0200)]
sheepdog : add volume_snapshot_rollback
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:28:00 +0000 (10:28 +0200)]
rbd: add volume_snapshot_rollback
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:27:59 +0000 (10:27 +0200)]
plugin : add volume_snapshot_rollback
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:27:58 +0000 (10:27 +0200)]
storage: add volume_snapshot_rollback
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:27:57 +0000 (10:27 +0200)]
iscsidirect : add volume_snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:27:56 +0000 (10:27 +0200)]
lvm: add volume_snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:27:55 +0000 (10:27 +0200)]
nexenta: add volume_snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:27:54 +0000 (10:27 +0200)]
rbd : add volume_snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:27:53 +0000 (10:27 +0200)]
sheepdog : add volume_snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:27:52 +0000 (10:27 +0200)]
plugin : add volume_snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 6 Sep 2012 08:27:51 +0000 (10:27 +0200)]
storage : add volume_snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Fri, 24 Aug 2012 06:20:54 +0000 (08:20 +0200)]
bump version to 2.0-31
Alexandre Derumier [Tue, 21 Aug 2012 12:43:44 +0000 (14:43 +0200)]
nexenta: fix lun number parsing in sub path
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Fri, 17 Aug 2012 13:48:46 +0000 (15:48 +0200)]
nexenta: ssl option is optionnal
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Fri, 17 Aug 2012 13:16:41 +0000 (15:16 +0200)]
nexenta: add ssl option and clean errors handling
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Fri, 17 Aug 2012 13:16:40 +0000 (15:16 +0200)]
nexenta : add nodes and disable options
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Fri, 17 Aug 2012 13:16:39 +0000 (15:16 +0200)]
sheepdog : add nodes and disable options
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Fri, 17 Aug 2012 13:16:38 +0000 (15:16 +0200)]
rbd: add nodes and disable options
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Tue, 14 Aug 2012 10:40:21 +0000 (12:40 +0200)]
bump version to 2.0-30
Alexandre Derumier [Mon, 6 Aug 2012 09:57:33 +0000 (11:57 +0200)]
nexenta: volume_resize
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>
Alexandre Derumier [Mon, 6 Aug 2012 09:57:32 +0000 (11:57 +0200)]
sheepdog : volume_resize
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>
Alexandre Derumier [Mon, 6 Aug 2012 09:57:31 +0000 (11:57 +0200)]
rbd : volume_resize
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>
Alexandre Derumier [Mon, 6 Aug 2012 09:57:30 +0000 (11:57 +0200)]
ISCSIDirect : volume_resize
die as we can't resize scsi device plugins
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 6 Aug 2012 09:57:29 +0000 (11:57 +0200)]
ISCSIPlugin : volume_resize
die as we can't resize iscsi devices
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Mon, 6 Aug 2012 09:57:28 +0000 (11:57 +0200)]
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>
Alexandre Derumier [Mon, 6 Aug 2012 09:57:27 +0000 (11:57 +0200)]
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>
Alexandre Derumier [Mon, 6 Aug 2012 09:57:26 +0000 (11:57 +0200)]
Storage : add global volume_resize
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Sun, 5 Aug 2012 08:16:50 +0000 (10:16 +0200)]
ISCSIDirect : volume_size_info
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Sun, 5 Aug 2012 08:16:49 +0000 (10:16 +0200)]
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>
Alexandre Derumier [Sun, 5 Aug 2012 08:16:48 +0000 (10:16 +0200)]
nexenta: volume_size_info
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Sun, 5 Aug 2012 08:16:47 +0000 (10:16 +0200)]
rbd : volume_size_info
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Sun, 5 Aug 2012 08:16:46 +0000 (10:16 +0200)]
sheepdog : volume_size_info
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Sun, 5 Aug 2012 08:16:45 +0000 (10:16 +0200)]
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>
Dietmar Maurer [Wed, 1 Aug 2012 06:51:52 +0000 (08:51 +0200)]
bump version to 2.0-29
Dietmar Maurer [Wed, 1 Aug 2012 06:45:33 +0000 (08:45 +0200)]
use rpcinfo instead of Ping
This works for NFS servers behind firewalls.
Dietmar Maurer [Wed, 1 Aug 2012 05:16:33 +0000 (07:16 +0200)]
move check_connection into activate_storage
Dietmar Maurer [Tue, 31 Jul 2012 09:01:02 +0000 (11:01 +0200)]
volume_size_info: make it work with raw devices
Dietmar Maurer [Fri, 27 Jul 2012 08:47:06 +0000 (10:47 +0200)]
bump version to 2.0-28
Alexandre Derumier [Fri, 27 Jul 2012 06:00:18 +0000 (08:00 +0200)]
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>
Alexandre Derumier [Fri, 27 Jul 2012 06:00:17 +0000 (08:00 +0200)]
rbdplugin: volume_size_info
return nothing for now
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Fri, 27 Jul 2012 06:00:16 +0000 (08:00 +0200)]
sheepdogplugin: volume_size_info
return nothing for now
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Fri, 27 Jul 2012 06:00:15 +0000 (08:00 +0200)]
iscsidirectplugin : volume_size_info
return nothing for now
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Fri, 27 Jul 2012 06:00:14 +0000 (08:00 +0200)]
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>
Alexandre Derumier [Fri, 27 Jul 2012 06:00:13 +0000 (08:00 +0200)]
add volume_size_info for generic plugin
this use path and file_size_info like before
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Fri, 27 Jul 2012 06:00:12 +0000 (08:00 +0200)]
add volume_size_info sub
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Wed, 25 Jul 2012 13:50:23 +0000 (15:50 +0200)]
fix lvmscan
Dietmar Maurer [Thu, 19 Jul 2012 09:22:35 +0000 (11:22 +0200)]
catch exception
Dietmar Maurer [Thu, 19 Jul 2012 09:13:25 +0000 (11:13 +0200)]
bump version to 2.0-26
Alexandre Derumier [Wed, 18 Jul 2012 11:35:02 +0000 (13:35 +0200)]
iscsi: add check_connection
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Wed, 18 Jul 2012 11:35:01 +0000 (13:35 +0200)]
nfs: add check_connection
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Wed, 18 Jul 2012 11:35:00 +0000 (13:35 +0200)]
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>
Dietmar Maurer [Wed, 18 Jul 2012 12:03:30 +0000 (14:03 +0200)]
bump version to 2.0-25
Dietmar Maurer [Wed, 18 Jul 2012 04:04:09 +0000 (06:04 +0200)]
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.
Dietmar Maurer [Tue, 17 Jul 2012 13:10:55 +0000 (15:10 +0200)]
fix sheepdog path
We always need to specify a port, else kvm does not find the disk.
Dietmar Maurer [Tue, 17 Jul 2012 11:26:36 +0000 (13:26 +0200)]
cleanup rbd driver
Dietmar Maurer [Tue, 17 Jul 2012 10:57:44 +0000 (12:57 +0200)]
register all plugins
Dietmar Maurer [Tue, 17 Jul 2012 09:57:40 +0000 (11:57 +0200)]
bump version to 2.0-22
Dietmar Maurer [Tue, 17 Jul 2012 09:55:38 +0000 (11:55 +0200)]
cleanup white space errors
Alexandre Derumier [Sat, 14 Jul 2012 13:53:57 +0000 (15:53 +0200)]
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>
Alexandre Derumier [Sat, 14 Jul 2012 13:53:56 +0000 (15:53 +0200)]
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>
Dietmar Maurer [Mon, 16 Jul 2012 07:51:26 +0000 (09:51 +0200)]
sheepdog: implement storage status
Dietmar Maurer [Mon, 16 Jul 2012 07:13:19 +0000 (09:13 +0200)]
delete trailing white spaces
Dietmar Maurer [Mon, 16 Jul 2012 07:10:17 +0000 (09:10 +0200)]
sheepdog: use '-r' to get sizes in bytes, code cleanup
Use a common method collie_cmd() to assemble command using
correct server/port settings.
Dietmar Maurer [Mon, 16 Jul 2012 05:26:08 +0000 (07:26 +0200)]
register sheepdog plugin
Dietmar Maurer [Mon, 16 Jul 2012 05:18:07 +0000 (07:18 +0200)]
bump version to 2.0-21
Alexandre Derumier [Sat, 14 Jul 2012 13:53:55 +0000 (15:53 +0200)]
add sheepdog plugin
storage definition
-------------------
portal 127.0.0.1:7000
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Fri, 13 Jul 2012 13:22:12 +0000 (15:22 +0200)]
set shared=1 to sheepdog plugin
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Mon, 16 Jul 2012 04:45:13 +0000 (06:45 +0200)]
fix offline migration bug
Alway pass volname and storeid to plugin->path()