]>
git.proxmox.com Git - pve-storage.git/log
Wolfgang Link [Wed, 28 Oct 2015 09:41:04 +0000 (10:41 +0100)]
insert the format type at volume_resize
qemu-img needs now the format to resize image.
Wolfgang Bumiller [Thu, 15 Oct 2015 07:41:09 +0000 (09:41 +0200)]
fix bug #769: migrate: use -p on 'zfs send' to include properties
Philipp Marek [Thu, 8 Oct 2015 08:24:47 +0000 (10:24 +0200)]
DRBD: Fix typo in comment.
Philipp Marek [Thu, 8 Oct 2015 08:24:46 +0000 (10:24 +0200)]
DRBD: Remove search loop, limit results via the query.
Dietmar Maurer [Mon, 12 Oct 2015 04:54:37 +0000 (06:54 +0200)]
bump version to 4.0-27
Dietmar Maurer [Mon, 12 Oct 2015 04:52:28 +0000 (06:52 +0200)]
allow to choose content type for local storage
Also allow to disable local storage.
Dietmar Maurer [Thu, 8 Oct 2015 09:51:39 +0000 (11:51 +0200)]
bump version to 4.0-26
Dietmar Maurer [Thu, 8 Oct 2015 07:49:36 +0000 (09:49 +0200)]
zfspool: fix volume_size_info and volume_resize for subvols
Dietmar Maurer [Thu, 1 Oct 2015 11:02:13 +0000 (13:02 +0200)]
allow containers on lvm
Dietmar Maurer [Thu, 1 Oct 2015 08:57:49 +0000 (10:57 +0200)]
bump version to 4.0-25
Dietmar Maurer [Thu, 1 Oct 2015 08:56:19 +0000 (10:56 +0200)]
complete_volume: avoid large list
Dietmar Maurer [Thu, 1 Oct 2015 05:42:37 +0000 (07:42 +0200)]
add missing completion hooks
Dietmar Maurer [Thu, 1 Oct 2015 05:59:05 +0000 (07:59 +0200)]
implement complete_volume
Dietmar Maurer [Thu, 1 Oct 2015 05:12:07 +0000 (07:12 +0200)]
add bash completion for content type
Dietmar Maurer [Thu, 1 Oct 2015 04:50:19 +0000 (06:50 +0200)]
volume_list: moved code from PVE::API2::Storage::Content
For better code reuse.
Dietmar Maurer [Thu, 1 Oct 2015 04:28:22 +0000 (06:28 +0200)]
white space cleanups: correctly intend code
Dietmar Maurer [Thu, 1 Oct 2015 04:26:35 +0000 (06:26 +0200)]
complete_storage: correctly pass storage config to storage_ids()
Alen Grizonic [Mon, 28 Sep 2015 08:16:33 +0000 (10:16 +0200)]
pvesm list fix
Wolfgang Bumiller [Fri, 25 Sep 2015 10:02:33 +0000 (12:02 +0200)]
volume_snapshot_delete: deactivate before deleting
Dietmar Maurer [Fri, 25 Sep 2015 11:36:45 +0000 (13:36 +0200)]
bump version to 4.0-24
Dietmar Maurer [Fri, 25 Sep 2015 11:34:55 +0000 (13:34 +0200)]
drbd: use correct unit for storage sizes
Thomas Lamprecht [Fri, 25 Sep 2015 08:59:27 +0000 (10:59 +0200)]
drbd: return correct used/avail/total sizes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dietmar Maurer [Tue, 22 Sep 2015 10:19:39 +0000 (12:19 +0200)]
bump version to 4.0-23
Wolfgang Link [Fri, 18 Sep 2015 09:57:07 +0000 (11:57 +0200)]
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.
Dietmar Maurer [Mon, 21 Sep 2015 10:25:57 +0000 (12:25 +0200)]
bump version to 4.0-22
Dietmar Maurer [Fri, 18 Sep 2015 07:33:09 +0000 (09:33 +0200)]
improve bash completions
Dietmar Maurer [Fri, 18 Sep 2015 06:21:17 +0000 (08:21 +0200)]
convert pvesm into a PVE::CLI class
Wolfgang Link [Wed, 16 Sep 2015 11:11:18 +0000 (13:11 +0200)]
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.
Dietmar Maurer [Fri, 11 Sep 2015 10:13:00 +0000 (12:13 +0200)]
fix lvm storage status
Dietmar Maurer [Thu, 10 Sep 2015 09:10:35 +0000 (11:10 +0200)]
rbd: make activate_volume idempotent
Dietmar Maurer [Thu, 10 Sep 2015 08:43:54 +0000 (10:43 +0200)]
bump version to 4.0-21
Wolfgang Link [Thu, 10 Sep 2015 08:29:10 +0000 (10:29 +0200)]
rbd: skip unmap if device is not mapped
Dietmar Maurer [Thu, 10 Sep 2015 06:41:00 +0000 (08:41 +0200)]
drbd: also allow to configure content property
Dietmar Maurer [Thu, 10 Sep 2015 06:29:23 +0000 (08:29 +0200)]
allow to create containers on DRBD (content == rootdir)
Dietmar Maurer [Wed, 9 Sep 2015 05:57:52 +0000 (07:57 +0200)]
bump version to 4.0-20
Wolfgang Link [Tue, 8 Sep 2015 10:23:53 +0000 (12:23 +0200)]
improve free_image with deactivate_volumes
this is necessary to prevent an error when trying to remove a mapped volume.
Dietmar Maurer [Tue, 8 Sep 2015 08:48:41 +0000 (10:48 +0200)]
bump version to 4.0-19
Dietmar Maurer [Thu, 3 Sep 2015 08:16:38 +0000 (10:16 +0200)]
use read_proc_mounts from PVE::ProcFSTools
Wolfgang Link [Thu, 3 Sep 2015 06:51:46 +0000 (08:51 +0200)]
move read_proc_mounts from NFSPlugin to Tools.
this function will be uesd in more path of the code.
Emmanuel Kasper [Mon, 31 Aug 2015 13:37:23 +0000 (15:37 +0200)]
Correct manpage examples to newer syntax
Dietmar Maurer [Mon, 31 Aug 2015 13:51:53 +0000 (15:51 +0200)]
bump version to 4.0-18
Wolfgang Bumiller [Mon, 31 Aug 2015 09:02:26 +0000 (11:02 +0200)]
GlusterfsPlugin: replace Net::Ping with tcp_ping
Using PVE::Network::tcp_ping on port 7 (echo) for ipv6
support.
Wolfgang Bumiller [Mon, 31 Aug 2015 09:02:25 +0000 (11:02 +0200)]
iSCSI ipv6 support
Dietmar Maurer [Fri, 28 Aug 2015 09:42:40 +0000 (11:42 +0200)]
bump version to 4.0-17
Wolfgang Link [Fri, 28 Aug 2015 09:12:50 +0000 (11:12 +0200)]
fix to prevent uninitialized variable massage.
Dietmar Maurer [Fri, 28 Aug 2015 09:01:41 +0000 (11:01 +0200)]
scan_zfs: ignore subvolumes generated by our ZFSPoolPlugin
Wolfgang Bumiller [Thu, 27 Aug 2015 12:53:12 +0000 (14:53 +0200)]
allow subvolume selection in ZPool storage
Dietmar Maurer [Thu, 27 Aug 2015 10:03:46 +0000 (12:03 +0200)]
path: corretly implement path to snapshots
Wolfgang Link [Tue, 25 Aug 2015 07:47:53 +0000 (09:47 +0200)]
Add content type rootfs to RBD and extend manual
Dietmar Maurer [Wed, 19 Aug 2015 13:41:19 +0000 (15:41 +0200)]
bump versionm to 4.0-16
Alen Grizonic [Wed, 19 Aug 2015 08:28:13 +0000 (10:28 +0200)]
remove storage access permissions after delete
Alen Grizonic [Wed, 19 Aug 2015 08:28:12 +0000 (10:28 +0200)]
added remove storage (exist) check
Dietmar Maurer [Tue, 18 Aug 2015 14:28:10 +0000 (16:28 +0200)]
bump version to 4.0-15
Wolfgang Bumiller [Tue, 18 Aug 2015 11:54:06 +0000 (13:54 +0200)]
upload API: safer filename handling
Replace possibly-dangerous characters in uploaded filenames
with underscores, this includes spaces, colons, commas,
equal signs and any byte >= 128. Previously only spaces were
turned into underscores.
Also shell_quote the destination for scp.
Use '--' for some shell commands for safety.
Use brackets around the scp destination for ipv6 support.
Dietmar Maurer [Wed, 12 Aug 2015 05:34:58 +0000 (07:34 +0200)]
parse_volname: document return values
Dietmar Maurer [Wed, 12 Aug 2015 05:01:07 +0000 (07:01 +0200)]
parse_volname: always return image format
Dietmar Maurer [Wed, 12 Aug 2015 04:49:15 +0000 (06:49 +0200)]
ZFSPoolPlugin: improve subvol support
- return format with parse_volname
- consider subvol in zfs_find_free_diskname
Dietmar Maurer [Wed, 12 Aug 2015 04:04:41 +0000 (06:04 +0200)]
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.
Dietmar Maurer [Mon, 10 Aug 2015 14:53:19 +0000 (16:53 +0200)]
zfs_parse_zvol_list: do not add pool to volname
Else, alloc and list return different volids.
Dietmar Maurer [Mon, 10 Aug 2015 08:05:01 +0000 (10:05 +0200)]
storage_info: fix content filter
List all storages if $content filter is undefined.
Alexandre Derumier [Thu, 30 Jul 2015 07:57:31 +0000 (09:57 +0200)]
rbd: add support to krbd
Can be use by lxc (but also qemu)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Fri, 7 Aug 2015 07:45:55 +0000 (09:45 +0200)]
bump version to 4.0-14
Dietmar Maurer [Fri, 7 Aug 2015 07:44:22 +0000 (09:44 +0200)]
storage status API: allow to filter multiple content types
Wolfgang Link [Thu, 23 Jul 2015 11:22:27 +0000 (13:22 +0200)]
fix bug #664
Catch the error, if the dataset doesn't exists.
If it will not catched, you can't remove a VM.
Dietmar Maurer [Thu, 30 Jul 2015 06:50:53 +0000 (08:50 +0200)]
bump version to 4.0-13
Wolfgang Bumiller [Tue, 21 Jul 2015 06:44:06 +0000 (08:44 +0200)]
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.
Dietmar Maurer [Wed, 1 Jul 2015 08:08:19 +0000 (10:08 +0200)]
bump version to 4.0-12
Dietmar Maurer [Wed, 1 Jul 2015 08:06:24 +0000 (10:06 +0200)]
allow templates using .xz compression
Wolfgang Link [Mon, 22 Jun 2015 08:34:45 +0000 (10:34 +0200)]
Fix ZFSPoolPlugin path for subvol
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Dietmar Maurer [Fri, 19 Jun 2015 10:12:04 +0000 (12:12 +0200)]
bump version to 4.0-11
Dietmar Maurer [Fri, 19 Jun 2015 10:10:45 +0000 (12:10 +0200)]
drbd: improve error messages
Dietmar Maurer [Thu, 18 Jun 2015 11:53:42 +0000 (13:53 +0200)]
bump version to 4.0-10
Dietmar Maurer [Thu, 18 Jun 2015 11:06:30 +0000 (13:06 +0200)]
drbd: implement deactivate_volume (but code is disabled for now)
Dietmar Maurer [Thu, 18 Jun 2015 10:21:44 +0000 (12:21 +0200)]
drbd: use old code to wait for diskless assignment
Dietmar Maurer [Thu, 18 Jun 2015 09:55:56 +0000 (11:55 +0200)]
drbd: remov hack, because bug is fixed upstream
see http://git.drbd.org/gitweb.cgi?p=drbdmanage.git;a=commitdiff;h=
8056e58b929673afb2d4a33d82fdeea4d43f8667
Dietmar Maurer [Thu, 18 Jun 2015 09:45:04 +0000 (11:45 +0200)]
drbd: correctly check all result codes
Dietmar Maurer [Thu, 18 Jun 2015 04:27:19 +0000 (06:27 +0200)]
drbd: correctly wait for diskless assignments
Dietmar Maurer [Thu, 18 Jun 2015 04:21:38 +0000 (06:21 +0200)]
drbd: improve workaround for set_drbdsetup_props
Dietmar Maurer [Wed, 17 Jun 2015 09:26:32 +0000 (11:26 +0200)]
bump version to 4.0-9
Dietmar Maurer [Wed, 17 Jun 2015 09:23:52 +0000 (11:23 +0200)]
drbd: call set_drbdsetup_props after auto-deploy
Else it gets not assigned. For some unknown reason, we need to sleep
to avoid a split brain?!
Dietmar Maurer [Wed, 17 Jun 2015 06:59:03 +0000 (08:59 +0200)]
bump version to 4.0-8
Dietmar Maurer [Wed, 17 Jun 2015 06:57:32 +0000 (08:57 +0200)]
drbd: set allow-two-primaries=yes
So that we can do live migrations.
Dietmar Maurer [Tue, 16 Jun 2015 08:06:35 +0000 (10:06 +0200)]
bump version to 4.0-7
Dietmar Maurer [Tue, 16 Jun 2015 08:05:22 +0000 (10:05 +0200)]
install trigger for pve-api-updates
Dietmar Maurer [Wed, 10 Jun 2015 08:56:53 +0000 (10:56 +0200)]
bump version to 4.0-6
Wolfgang Link [Tue, 9 Jun 2015 08:01:48 +0000 (10:01 +0200)]
Fix nfsscan
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Bumiller [Tue, 26 May 2015 14:10:30 +0000 (16:10 +0200)]
include ::1 in localhost check in get_active_server
Wolfgang Bumiller [Thu, 21 May 2015 08:24:52 +0000 (10:24 +0200)]
NFS: replace rpcinfo with showmounts
rpcinfo from rpcbind-0.2.1 in debian doesn't support ipv6 addresses.
At the same time the used command only actually tests for
portmapper/rpcbind availability, not for NFS directly.
Storage::scan_nfs uses /sbin/showmount to get a list of NFS exports from a
server and happily accepts ipv6 addresses. It is also more specific to NFS.
Replacing the rpcinfo call with showmount here means checking explicitly
for NFS and supporting IPv6 without the need for an updated rpcbind
package.
Wolfgang Bumiller [Wed, 20 May 2015 14:57:31 +0000 (16:57 +0200)]
NFSPlugin: deal with ipv6 addresses and fix regexps
NFS needs brackets around ipv6 addresses.
Also: nfs_is_mounted needs to quote the variables. This becomes apparent
when ipv6 addresses are used as then the address would otherwise be
treated as a character class, causing the check to always fail.
Wolfgang Bumiller [Wed, 20 May 2015 14:57:30 +0000 (16:57 +0200)]
allow ipv6 addresses in Storage::verify_server
Replaced regex with existing PVE::JSONSchema::verify_... functions.
Dietmar Maurer [Mon, 18 May 2015 12:15:35 +0000 (14:15 +0200)]
drbd: avoid warning about undefined value
Dietmar Maurer [Mon, 18 May 2015 12:12:59 +0000 (14:12 +0200)]
fix typo
Dietmar Maurer [Tue, 12 May 2015 08:40:12 +0000 (10:40 +0200)]
bump version to 4.0-5
Wolfgang Bumiller [Tue, 12 May 2015 07:42:37 +0000 (09:42 +0200)]
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.
Wolfgang Link [Wed, 6 May 2015 07:57:35 +0000 (09:57 +0200)]
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>
Dietmar Maurer [Fri, 1 May 2015 12:42:49 +0000 (14:42 +0200)]
zfspool: new format 'subvol' to handle filesystems inside datasets
We use this for containers.
Dietmar Maurer [Fri, 1 May 2015 09:29:15 +0000 (11:29 +0200)]
correctly parse lxc backup files
Dietmar Maurer [Thu, 30 Apr 2015 04:45:29 +0000 (06:45 +0200)]
ZFSPoolPlugin: allow nested datasets
Dietmar Maurer [Wed, 29 Apr 2015 04:59:48 +0000 (06:59 +0200)]
add newlines to error messages
Dietmar Maurer [Mon, 27 Apr 2015 08:09:18 +0000 (10:09 +0200)]
whitespace cleanups