]>
git.proxmox.com Git - pve-storage.git/log
Dietmar Maurer [Thu, 14 Feb 2013 05:53:48 +0000 (06:53 +0100)]
use File::chdir instead of Cwd
To avoid errors in taint mode.
Dietmar Maurer [Fri, 1 Feb 2013 05:55:39 +0000 (06:55 +0100)]
check base image use count inside vdisk_free
To make it work with all storage types.
Dietmar Maurer [Thu, 31 Jan 2013 10:52:31 +0000 (11:52 +0100)]
use chattr to set immutable flag on base images
Dietmar Maurer [Thu, 31 Jan 2013 10:36:49 +0000 (11:36 +0100)]
free_image: correctly check if base volume is not used
moved parse_volume_id to PVE::Storage::Plugin::parse_volume_id
Dietmar Maurer [Thu, 31 Jan 2013 07:47:27 +0000 (08:47 +0100)]
return the volid, not the storage path
Dietmar Maurer [Thu, 31 Jan 2013 07:42:26 +0000 (08:42 +0100)]
new method volume_is_base() to check if volume is a base volume
Dietmar Maurer [Thu, 31 Jan 2013 07:14:55 +0000 (08:14 +0100)]
fix path_to_volume_id to work with base volumes and clones
Dietmar Maurer [Thu, 31 Jan 2013 06:47:02 +0000 (07:47 +0100)]
add stubs for create_base and cone_image
Dietmar Maurer [Wed, 30 Jan 2013 11:55:37 +0000 (12:55 +0100)]
implement vdisk_clone and vdisk_create_base
This is an iplementation for file base storage types.
changes compared to patches from Alexandre:
* use correct locking
* private find_free_diskname() with bug fixes
* changed names of new methods
* always refer to base volumes in volume names
Example volume names:
local:6000/base-6000-disk-9.raw
local:6000/base-6000-disk-9.raw/7000/vm-7000-disk-9.qcow2
local:6000/base-6000-disk-9.raw/7000/base-7000-disk-10.qcow2
Stefan Priebe [Mon, 21 Jan 2013 14:27:08 +0000 (15:27 +0100)]
RBDPlugin: introduce rbd_unittobytes / rbd tends to be human readable
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
Dietmar Maurer [Thu, 3 Jan 2013 10:46:27 +0000 (11:46 +0100)]
bump version to 2.3-2
Alexandre Derumier [Thu, 3 Jan 2013 08:57:54 +0000 (09:57 +0100)]
create rbd volume with format v2
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 3 Jan 2013 08:57:53 +0000 (09:57 +0100)]
rbd: use rbd ls -l
avoid to call rbd info for each volume
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 27 Dec 2012 15:07:20 +0000 (16:07 +0100)]
iscsidirect : has_feature
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 27 Dec 2012 15:07:19 +0000 (16:07 +0100)]
iscsi : has_feature
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 27 Dec 2012 15:07:18 +0000 (16:07 +0100)]
lvm: has_feature
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 27 Dec 2012 15:07:17 +0000 (16:07 +0100)]
nexenta: has_feature
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 27 Dec 2012 15:07:16 +0000 (16:07 +0100)]
sheepdog : has_feature
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 27 Dec 2012 15:07:15 +0000 (16:07 +0100)]
rbd : has_feature
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 27 Dec 2012 15:07:14 +0000 (16:07 +0100)]
plugin : has_feature
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 27 Dec 2012 15:07:13 +0000 (16:07 +0100)]
storage : has_feature
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Mon, 17 Dec 2012 10:50:22 +0000 (11:50 +0100)]
fix typo
Dietmar Maurer [Thu, 13 Dec 2012 11:51:52 +0000 (12:51 +0100)]
also list vma backup archives
bump version to 2.3-1
Alexandre Derumier [Wed, 12 Dec 2012 12:02:33 +0000 (13:02 +0100)]
sheepdog : fix volume_size_info && parentid check
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Wed, 21 Nov 2012 17:11:34 +0000 (18:11 +0100)]
sheepdog : retrieve parent of a clone
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Wed, 21 Nov 2012 17:11:33 +0000 (18:11 +0100)]
rbd: retrieve parent of a clone
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Wed, 21 Nov 2012 17:11:32 +0000 (18:11 +0100)]
nexenta: retrieve parent of a clone
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
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>