Commit Graph

49 Commits

Author SHA1 Message Date
27cc55d4fb fix typo 2012-09-07 12:59:26 +02:00
5753c9d1b6 storage : add volume_snapshot_delete
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-09-06 10:37:24 +02:00
22a2a633c4 storage: add volume_snapshot_rollback
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-09-06 10:37:01 +02:00
db60719cde storage : add volume_snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-09-06 10:36:40 +02:00
7e6c05dc2c Storage : add global volume_resize
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-08-07 08:09:00 +02:00
f3d4ef4626 move check_connection into activate_storage 2012-08-01 07:16:33 +02:00
f18199e580 volume_size_info: make it work with raw devices 2012-07-31 11:01:02 +02:00
20ccac1b6d add volume_size_info sub
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-27 10:44:03 +02:00
7028645e2e catch exception 2012-07-19 11:22:35 +02:00
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
8661655414 register all plugins 2012-07-17 12:58:38 +02:00
caf1960c76 register sheepdog plugin 2012-07-16 07:26:08 +02:00
6bf5629866 fix offline migration bug
Alway pass volname and storeid to plugin->path()
2012-07-16 06:45:13 +02:00
e5427b0097 rados block plugin update
config file
-----------
rbd: rbdtest
        monhost 10.3.94.27:6789;10.3.94.28:6789;10.3.94.29:6789
        pool pool2
        username admin
        authsupported cephx;none
        content images

key for user admin must be specified in:
---------------------------------------
/etc/pve/priv/ceph/storeid.username.key

/etc/pve/priv/ceph/rbdtest.admin.key   for this exemple.

(so we can have multiple users key by storage and multiple storage with same username)

I change "sub path" in Storage.pm to pass $storeid as third argument.

I rename property id to username, to be more clear.

removal of rbd_ prefix.

removal of trailing whitespace

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-06-02 12:00:33 +02:00
0509010d6e Add rados block plugin storage
This add rados plugin storage.

We need rbd command from ceph repository (ceph-common package) to create/delete volumes,I didn't have add depends for the moment.

/etc/pve/storage.cfg sample config

rbd: rbdtest
        rbd_monhost 10.3.94.27:6789;10.3.94.28:6789;10.3.94.29:6789
        rbd_pool pool2
        rbd_id admin
        rbd_key AQAmOcZPwNY7GRAAuvJjVAKIm1r3JKqLCa4LGQ==
        rbd_authsupported cephx;none
        content images

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-06-01 07:18:11 +02:00
5521b5805b fix return value for path() 2012-05-23 13:11:20 +02:00
7a2d5c1a26 use Sockets 2012-05-23 12:43:28 +02:00
1dc01b9f30 new plugin architecture 2012-05-23 08:00:13 +02:00
5c009b733e avoid call to lvs when deactivating devices
Because this can be slow if there are many devices.
2012-04-23 06:31:04 +02:00
75d75990b4 fix bug #171: fix path_to_volume_id for unmounted NFS 2012-04-18 12:34:39 +02:00
369977e8bb fix bug #148: set maxfiles for default local storage 2012-04-05 14:40:01 +02:00
dc2deeb8fe use dir_glob_* from PVE::Tools 2012-03-28 08:00:59 +02:00
da156fb3ef add line break to error message 2012-03-28 06:36:38 +02:00
446073f681 allow to set option 'maxfiles' 2012-03-23 07:43:28 +01:00
6bf7eb0903 use Digest::SHA instead of Digest::SHA1 2012-03-20 11:27:51 +01:00
d642361b29 new lvm option 'saferemove' to zero-out data when removing LVs 2012-03-09 09:43:01 +01:00
88c3abaf6e zero-ot data on LVM volumes 2012-03-07 12:32:02 +01:00
888709239d also list tar.gz and tar.lzo backup files 2012-02-07 12:54:16 +01:00
2494896aaa parse backup files and return owner vmid 2012-02-01 11:47:44 +01:00
05f697c983 use correct package prefix 2012-01-26 13:10:50 +01:00
8fba271817 moved format definition to pve-common 2012-01-26 11:55:28 +01:00
95e8e21cc5 allow optional slash in mount path
Seems NFS4 use that smetimes
2012-01-26 05:55:12 +01:00
db2ec87f83 use -e to test if volume exists
Because rootdir is a directory, not a file
2011-12-02 10:31:49 +01:00
02fae308ed fix iscsi size bug 2011-11-28 07:38:02 +01:00
3af60e62fa ignore errors from vgs 2011-11-25 09:43:29 +01:00
f81372ac59 improve error messages 2011-11-25 07:42:26 +01:00
6703353bb8 do not activate LVM volumes with vgchange -aly 2011-11-25 07:27:25 +01:00
c63913bf57 fix bug 44: allow to store vztmpl on NFS 2011-11-17 12:15:39 +01:00
1ac17c745e improved container support (rootdir) 2011-11-14 07:11:36 +01:00
d22a6133ab allow container rootdir on NFS 2011-11-07 11:14:32 +01:00
7814e05f6f implement file upload API 2011-11-03 09:22:53 +01:00
686e1d032b fix parse_volname_dir to support backup images 2011-10-20 11:05:05 +02:00
6a4d7398b3 allow multiple content types 2011-10-20 08:02:52 +02:00
568de3d125 allow backup to local storage and code cleanups 2011-10-18 11:23:31 +02:00
9dec0cb1f7 only activate lvm volumes on local node
Pass -aly to lvcreate.
2011-09-29 08:42:00 +02:00
6c64928f88 avoid warning about uninitialize value 2011-09-23 06:57:40 +02:00
dfe98e6437 Fix digest handling 2011-09-07 12:01:25 +02:00
04a2e4f39f fix shared attribute in storage list 2011-08-26 06:23:24 +02:00
b6cf0a6659 imported from svn 'pve-storage/pve2' 2011-08-23 07:43:03 +02:00