]> git.proxmox.com Git - pve-storage.git/log
pve-storage.git
11 years agobump version to 2.3-2
Dietmar Maurer [Thu, 3 Jan 2013 10:46:27 +0000 (11:46 +0100)]
bump version to 2.3-2

11 years agocreate rbd volume with format v2
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>
11 years agorbd: use rbd ls -l
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>
11 years agoiscsidirect : has_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:07:20 +0000 (16:07 +0100)]
iscsidirect : has_feature

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoiscsi : has_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:07:19 +0000 (16:07 +0100)]
iscsi : has_feature

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agolvm: has_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:07:18 +0000 (16:07 +0100)]
lvm: has_feature

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agonexenta: has_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:07:17 +0000 (16:07 +0100)]
nexenta: has_feature

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agosheepdog : has_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:07:16 +0000 (16:07 +0100)]
sheepdog : has_feature

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agorbd : has_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:07:15 +0000 (16:07 +0100)]
rbd : has_feature

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoplugin : has_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:07:14 +0000 (16:07 +0100)]
plugin : has_feature

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agostorage : has_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:07:13 +0000 (16:07 +0100)]
storage : has_feature

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agofix typo
Dietmar Maurer [Mon, 17 Dec 2012 10:50:22 +0000 (11:50 +0100)]
fix typo

11 years agoalso list vma backup archives
Dietmar Maurer [Thu, 13 Dec 2012 11:51:52 +0000 (12:51 +0100)]
also list vma backup archives

bump version to 2.3-1

11 years agosheepdog : fix volume_size_info && parentid check
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>
11 years agosheepdog : retrieve parent of a clone
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>
11 years agorbd: retrieve parent of a clone
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>
11 years agonexenta: retrieve parent of a clone
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>
11 years agofiles: retrieve parent of a clone
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>
11 years agoremove timeouts from 'qemu-img snapshot' commands.
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.

11 years agobump version to 2.0-35
Dietmar Maurer [Wed, 31 Oct 2012 13:08:20 +0000 (14:08 +0100)]
bump version to 2.0-35

11 years agosheepdog : delete snapshots when deleting volume
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>
11 years agorbd: purge snapshots before delete volume
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>
11 years agoPVE/API2/Storage/Status: remove hardcoded blowfish cipher PVE/Storage: remove hardcod...
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>
11 years agobump version to 2.0-34
Dietmar Maurer [Mon, 22 Oct 2012 10:30:20 +0000 (12:30 +0200)]
bump version to 2.0-34

11 years agorbd: get volume size for volumes list
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>
11 years agorbd: add storage space stats
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>
11 years agocreate 'dump' directory if storage contains containers
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.

11 years agobump version to 2.0-32
Dietmar Maurer [Tue, 25 Sep 2012 04:02:43 +0000 (06:02 +0200)]
bump version to 2.0-32

11 years agocode cleanup
Dietmar Maurer [Thu, 20 Sep 2012 05:18:59 +0000 (07:18 +0200)]
code cleanup

11 years agoqcow2 : preallocate metadatas at file creation
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>
11 years agouse longer timeouts for snapshot commands
Dietmar Maurer [Wed, 19 Sep 2012 06:55:23 +0000 (08:55 +0200)]
use longer timeouts for snapshot commands

11 years agonexenta: implement status
Dietmar Maurer [Wed, 19 Sep 2012 06:39:25 +0000 (08:39 +0200)]
nexenta: implement status

11 years agonexenta: use import_lu on rollback
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.

11 years agonexenta: fix parse_volname
Dietmar Maurer [Wed, 19 Sep 2012 05:38:40 +0000 (07:38 +0200)]
nexenta: fix parse_volname

And some coding style cleanups.

11 years agonexenta: recursively delete all snapshots on vdisk_free
Dietmar Maurer [Mon, 17 Sep 2012 08:32:09 +0000 (10:32 +0200)]
nexenta: recursively delete all snapshots on vdisk_free

11 years agonexenta: fix parameter for create_snapshot
Dietmar Maurer [Mon, 17 Sep 2012 08:26:21 +0000 (10:26 +0200)]
nexenta: fix parameter for create_snapshot

11 years agonexenta API cleanups
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.

11 years agonexenta: correctly get volsize (needs extra API call)
Dietmar Maurer [Mon, 17 Sep 2012 05:58:20 +0000 (07:58 +0200)]
nexenta: correctly get volsize (needs extra API call)

11 years agofix typo
Dietmar Maurer [Fri, 7 Sep 2012 10:59:26 +0000 (12:59 +0200)]
fix typo

11 years agoiscsidirect : add volume_snapshot_delete
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>
11 years agolvm: add volume_snapshot_delete
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>
11 years agonexenta: add volume_snapshot_delete
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>
11 years agosheepdog: add volume_snapshot_delete
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>
11 years agorbd : add volume_snapshot_delete
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>
11 years agoplugin: add volume_snapshot_delete
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>
11 years agostorage : add volume_snapshot_delete
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>
11 years agoiscsidirect : add volume_snapshot_rollback
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>
11 years agolvm : add volume_snapshot_rollback
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>
11 years agonexenta: add volume_snapshot_rollback
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>
11 years agosheepdog : add volume_snapshot_rollback
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>
11 years agorbd: add volume_snapshot_rollback
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>
11 years agoplugin : add volume_snapshot_rollback
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>
11 years agostorage: add volume_snapshot_rollback
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>
11 years agoiscsidirect : add volume_snapshot
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>
11 years agolvm: add volume_snapshot
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>
11 years agonexenta: add volume_snapshot
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>
11 years agorbd : add volume_snapshot
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>
11 years agosheepdog : add volume_snapshot
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>
11 years agoplugin : add volume_snapshot
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>
11 years agostorage : add volume_snapshot
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>
11 years agobump version to 2.0-31
Dietmar Maurer [Fri, 24 Aug 2012 06:20:54 +0000 (08:20 +0200)]
bump version to 2.0-31

11 years agonexenta: fix lun number parsing in sub path
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>
11 years agonexenta: ssl option is optionnal
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>
11 years agonexenta: add ssl option and clean errors handling
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>
11 years agonexenta : add nodes and disable options
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>
11 years agosheepdog : add nodes and disable options
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>
11 years agorbd: add nodes and disable options
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>
11 years agobump version to 2.0-30
Dietmar Maurer [Tue, 14 Aug 2012 10:40:21 +0000 (12:40 +0200)]
bump version to 2.0-30

11 years agonexenta: volume_resize
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>
11 years agosheepdog : volume_resize
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>
11 years agorbd : volume_resize
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>
11 years agoISCSIDirect : volume_resize
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>
11 years agoISCSIPlugin : volume_resize
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>
11 years agolvmplugin : volume_resize
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>
11 years agoplugins : add volume_resize
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>
11 years agoStorage : add global volume_resize
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>
11 years agoISCSIDirect : volume_size_info
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>
11 years agoISCSIDirect : fixes and cleanup
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>
11 years agonexenta: volume_size_info
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>
11 years agorbd : volume_size_info
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>
11 years agosheepdog : volume_size_info
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>
11 years agoISCSIPlugin : remove specific volume_size_info
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>
11 years agobump version to 2.0-29
Dietmar Maurer [Wed, 1 Aug 2012 06:51:52 +0000 (08:51 +0200)]
bump version to 2.0-29

11 years agouse rpcinfo instead of Ping
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.

11 years agomove check_connection into activate_storage
Dietmar Maurer [Wed, 1 Aug 2012 05:16:33 +0000 (07:16 +0200)]
move check_connection into activate_storage

11 years agovolume_size_info: make it work with raw devices
Dietmar Maurer [Tue, 31 Jul 2012 09:01:02 +0000 (11:01 +0200)]
volume_size_info: make it work with raw devices

11 years agobump version to 2.0-28
Dietmar Maurer [Fri, 27 Jul 2012 08:47:06 +0000 (10:47 +0200)]
bump version to 2.0-28

11 years agonexentaplugin : volume_size_info
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>
11 years agorbdplugin: volume_size_info
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>
11 years agosheepdogplugin: volume_size_info
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>
11 years agoiscsidirectplugin : volume_size_info
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>
11 years agoiscsiplugin:volume_size_info
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>
11 years agoadd volume_size_info for generic plugin
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>
11 years agoadd volume_size_info sub
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>
11 years agofix lvmscan
Dietmar Maurer [Wed, 25 Jul 2012 13:50:23 +0000 (15:50 +0200)]
fix lvmscan

11 years agocatch exception
Dietmar Maurer [Thu, 19 Jul 2012 09:22:35 +0000 (11:22 +0200)]
catch exception

11 years agobump version to 2.0-26
Dietmar Maurer [Thu, 19 Jul 2012 09:13:25 +0000 (11:13 +0200)]
bump version to 2.0-26

11 years agoiscsi: add check_connection
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>
11 years agonfs: add check_connection
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>
11 years agoadd check_connection in storage_check_enabled.
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>