a6f1262677
parse_volname: document return values
2015-08-12 07:34:58 +02:00
35533c68fb
add subvol support for directory storage
...
This storage type does not support subvol quotas, so we
only allow this if vdisk_alloc is called with size=0.
2015-08-12 06:11:10 +02:00
dec97937f2
zfs_parse_zvol_list: do not add pool to volname
...
Else, alloc and list return different volids.
2015-08-10 16:53:19 +02:00
d73060becd
storage_info: fix content filter
...
List all storages if $content filter is undefined.
2015-08-10 10:05:01 +02:00
583c2802f8
storage status API: allow to filter multiple content types
2015-08-07 09:46:49 +02:00
afdfbe5594
mask world r and group wx permissions in vdisk_alloc
...
Avoid world-readable disk files being created as suggested
in #416 by setting an umask to strip world permissions as
well as group write/exec permissions before calling
alloc_image.
2015-07-30 08:49:46 +02:00
13d2cb7980
allow templates using .xz compression
2015-07-01 10:06:24 +02:00
ee302b1caa
Fix nfsscan
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-06-10 10:55:06 +02:00
c67daeac17
ipv6 support for Storage::resolv_server
...
While in posix gethostbyname(3) does support ipv6, perl's gethostbyname
usually returns wrong results for names, or no results for ipv6
addresses. Since we provide a getaddrinfo helper already, we now use
that instead.
2015-05-12 10:39:15 +02:00
f5640e7d3b
remove running from Storage and check it in QemuServer
...
It is better to check if a VM is running in QemuServer then in Storage.
for the Storage there is no difference if it is running or not.
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-05-06 11:42:38 +02:00
e0852ba7dc
whitespace cleanups
2015-04-27 10:44:32 +02:00
3d621977f4
implement offline migration on zfs
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-04-27 10:44:23 +02:00
14770890e2
add dummy for DRBD9
2015-03-20 17:44:15 +01:00
399ab2b605
Fixed LV cleaning function. saferemove_throughput parameter added.
...
Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl >
2015-03-06 10:12:52 +01:00
f824c72250
cleanup error messages
2015-02-12 09:40:17 +01:00
b3f302c638
call volume_rollback_is_possible from PVE::Storage::volume_snapshot_rollback
...
That way it is automatically called for all plungins.
2015-02-12 09:28:52 +01:00
1597f1f9ad
Storage: add method volume_rollback_is_possible
...
add method volume_rollback_is_possible and redactor
Improve error handling
If snapshot is not reversible catch it before vm will lock and shutdown.
This is the case if zfs has an younger snapshot.
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-02-12 09:15:02 +01:00
584d97f646
implement zfsscan to list local zfs pools
2015-01-26 09:05:09 +01:00
85fda4dd7f
rename ZFSDirPlugin to ZFSPoolPlugin
...
Turned out it makes no sense to duplicated DirPlugin features. So I
also changed the name to make it less confusing. So we can only
create zvols inside a zfs pool with this plugin.
2015-01-24 14:17:55 +01:00
5bb8e01076
ZFSDirPlugin: new plugin for local zfs storage
...
We also want to use this as base class for ZFSPlugin, to increase
code sharing.
2015-01-22 07:54:10 +01:00
7bbc40045a
pass snapname to vdisk_clone and plugin clone_image
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag >
2014-07-17 07:59:49 +02:00
7ecc43edac
remove nexenta plugin
...
zfs plugin is better and faster and backward compatible
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-10-08 06:13:09 +02:00
4f914e6ec0
Added support for ZFS Storage Plugin
...
example of storage.cfg
zfs: omnios
blocksize 8k
target iqn.2010-09.org.openindiana:target1
pool pool1
iscsiprovider comstar
portal 192.168.0.1
sudo 1 (optionnal)
content images
note for fast ssh login:
on solaris host :
/etc/ssh/sshd_config
LookupClientHostnames no
VerifyReverseMapping no
GSSAPIAuthentication no
note for nexenta:
rm /root/.bash_profile
to avoid to go in nmc console by default
Signed-off-by: Michael Rasmussen <mir@datanom.net >
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-10-02 06:37:18 +02:00
ffd6f2f3ab
use warnings instead of global -w flag
2013-10-01 13:08:43 +02:00
35fbb2e645
new helper abs_filesystem_path()
...
Returns the absolute path for a <volid>. Also activates storage if possible.
2013-10-01 12:29:39 +02:00
ec4b0dc781
storage: add parse_volname
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-10-01 11:19:00 +02:00
1a3459ac78
delete trailing white-space
2013-08-12 11:56:41 +02:00
f4648aef06
add Glusterfs Plugin
...
storage.cfg
------------
glusterfs: glusterstore
path /mnt/pve/gluster
server server.fqdn (optional, default is localhost)
volume glustervolume
content images
maxfiles 1
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-08-12 11:55:06 +02:00
207ea85267
storage : sub path: add snapname argument
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-05-02 06:33:33 +02:00
1a259abc18
nexenta : nexenta_list_zvol : parse base volumes
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-02-14 10:25:04 +01:00
ff00afd7fb
vmid is integer an can be 0, so we need to use defined() to check if it is set
...
Note: The plan is to use vmid 0 to mark shared volumes.
2013-02-14 08:41:15 +01:00
f104d1dd07
storage : vdisk_free : eval parse_volname
...
If the storage have some customs volumes name, vdisk_free will hang
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-02-14 08:36:44 +01:00
32437ed279
check base image use count inside vdisk_free
...
To make it work with all storage types.
2013-02-01 06:55:39 +01:00
a7f3d90919
free_image: correctly check if base volume is not used
...
moved parse_volume_id to PVE::Storage::Plugin::parse_volume_id
2013-01-31 11:36:49 +01:00
188aca388e
return the volid, not the storage path
2013-01-31 08:47:27 +01:00
ad27ee3e4a
new method volume_is_base() to check if volume is a base volume
2013-01-31 08:42:26 +01:00
fcbec6545b
fix path_to_volume_id to work with base volumes and clones
2013-01-31 08:14:55 +01:00
2502b33b08
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
2013-01-30 12:55:37 +01:00
99473759b2
storage : has_feature
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2012-12-28 07:50:48 +01:00
a22854e540
also list vma backup archives
...
bump version to 2.3-1
2012-12-13 12:51:52 +01:00
45c2ee3526
PVE/API2/Storage/Status: remove hardcoded blowfish cipher PVE/Storage: remove hardcoded blowfish cipher
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag >
2012-10-31 14:05:40 +01:00
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