323ab5baa8
fix bug #769 : migrate: use -p on 'zfs send' to include properties
2015-10-15 10:33:34 +02:00
b70b0c58b3
complete_volume: avoid large list
2015-10-01 10:56:19 +02:00
bf7aed2674
implement complete_volume
2015-10-01 07:59:48 +02:00
98437f4c85
add bash completion for content type
2015-10-01 07:16:59 +02:00
37ba0aea5b
volume_list: moved code from PVE::API2::Storage::Content
...
For better code reuse.
2015-10-01 06:50:19 +02:00
746e530f72
white space cleanups: correctly intend code
2015-10-01 06:28:22 +02:00
180c8b020c
complete_storage: correctly pass storage config to storage_ids()
2015-10-01 06:26:35 +02:00
02e797b8e1
extend functionality to (de)activate_volumes with snapshots
...
this extension provide the capability to activate or deactivate snapshot,
so we can use this e.g. for LXC backup in snapshot mode.
2015-09-22 12:18:09 +02:00
f7621c0126
improve bash completions
2015-09-18 09:33:09 +02:00
c8943a85c9
remove non used parameter exclusive
...
This makes no sense because it should always be exclusive.
Also RDB checks it self.
LVM has not possibility to use lvchange.
DRBD is this feature not implemented.
2015-09-17 12:37:27 +02:00
1689e627a6
iSCSI ipv6 support
2015-08-31 15:50:34 +02:00
48e27f7937
scan_zfs: ignore subvolumes generated by our ZFSPoolPlugin
2015-08-28 11:01:41 +02:00
3932390b11
allow subvolume selection in ZPool storage
2015-08-28 10:56:55 +02:00
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