]> git.proxmox.com Git - pve-storage.git/log
pve-storage.git
8 years agoadd lvm thin plugin
Dietmar Maurer [Mon, 9 Nov 2015 10:05:57 +0000 (11:05 +0100)]
add lvm thin plugin

8 years agomove format registration to Plugin.pm
Dietmar Maurer [Mon, 9 Nov 2015 05:47:44 +0000 (06:47 +0100)]
move format registration to Plugin.pm

8 years agobump version to 4.0-31
Dietmar Maurer [Fri, 6 Nov 2015 15:40:35 +0000 (16:40 +0100)]
bump version to 4.0-31

8 years agozfs: enable posixacl and xattr for subvolumes
Dietmar Maurer [Fri, 6 Nov 2015 15:39:17 +0000 (16:39 +0100)]
zfs: enable posixacl and xattr for subvolumes

8 years agobump version to 4.0-30
Dietmar Maurer [Fri, 6 Nov 2015 07:37:02 +0000 (08:37 +0100)]
bump version to 4.0-30

8 years agofix bug #809: inheritance from ZFSPoolPlugin is not possible because we have to handl...
Wolfgang Link [Thu, 5 Nov 2015 13:24:07 +0000 (14:24 +0100)]
fix bug #809: inheritance from ZFSPoolPlugin is not possible because we have to handle there subvols too.

8 years agobump version to 4.0-29
Dietmar Maurer [Mon, 2 Nov 2015 16:14:21 +0000 (17:14 +0100)]
bump version to 4.0-29

8 years agoISCSIPlugin: improve session parser
Dietmar Maurer [Mon, 2 Nov 2015 16:12:14 +0000 (17:12 +0100)]
ISCSIPlugin: improve session parser

8 years agobump version to 4.0-28
Dietmar Maurer [Wed, 28 Oct 2015 10:31:18 +0000 (11:31 +0100)]
bump version to 4.0-28

8 years agoinsert the format type at volume_resize
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.

8 years agofix bug #769: migrate: use -p on 'zfs send' to include properties
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

8 years agoDRBD: Fix typo in comment.
Philipp Marek [Thu, 8 Oct 2015 08:24:47 +0000 (10:24 +0200)]
DRBD: Fix typo in comment.

8 years agoDRBD: Remove search loop, limit results via the query.
Philipp Marek [Thu, 8 Oct 2015 08:24:46 +0000 (10:24 +0200)]
DRBD: Remove search loop, limit results via the query.

8 years agobump version to 4.0-27
Dietmar Maurer [Mon, 12 Oct 2015 04:54:37 +0000 (06:54 +0200)]
bump version to 4.0-27

8 years agoallow to choose content type for local storage
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.

8 years agobump version to 4.0-26
Dietmar Maurer [Thu, 8 Oct 2015 09:51:39 +0000 (11:51 +0200)]
bump version to 4.0-26

8 years agozfspool: fix volume_size_info and volume_resize for subvols
Dietmar Maurer [Thu, 8 Oct 2015 07:49:36 +0000 (09:49 +0200)]
zfspool: fix volume_size_info and volume_resize for subvols

8 years agoallow containers on lvm
Dietmar Maurer [Thu, 1 Oct 2015 11:02:13 +0000 (13:02 +0200)]
allow containers on lvm

8 years agobump version to 4.0-25
Dietmar Maurer [Thu, 1 Oct 2015 08:57:49 +0000 (10:57 +0200)]
bump version to 4.0-25

8 years agocomplete_volume: avoid large list
Dietmar Maurer [Thu, 1 Oct 2015 08:56:19 +0000 (10:56 +0200)]
complete_volume: avoid large list

8 years agoadd missing completion hooks
Dietmar Maurer [Thu, 1 Oct 2015 05:42:37 +0000 (07:42 +0200)]
add missing completion hooks

8 years agoimplement complete_volume
Dietmar Maurer [Thu, 1 Oct 2015 05:59:05 +0000 (07:59 +0200)]
implement complete_volume

8 years agoadd bash completion for content type
Dietmar Maurer [Thu, 1 Oct 2015 05:12:07 +0000 (07:12 +0200)]
add bash completion for content type

8 years agovolume_list: moved code from PVE::API2::Storage::Content
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.

8 years agowhite space cleanups: correctly intend code
Dietmar Maurer [Thu, 1 Oct 2015 04:28:22 +0000 (06:28 +0200)]
white space cleanups: correctly intend code

8 years agocomplete_storage: correctly pass storage config to storage_ids()
Dietmar Maurer [Thu, 1 Oct 2015 04:26:35 +0000 (06:26 +0200)]
complete_storage: correctly pass storage config to storage_ids()

8 years agopvesm list fix
Alen Grizonic [Mon, 28 Sep 2015 08:16:33 +0000 (10:16 +0200)]
pvesm list fix

8 years agovolume_snapshot_delete: deactivate before deleting
Wolfgang Bumiller [Fri, 25 Sep 2015 10:02:33 +0000 (12:02 +0200)]
volume_snapshot_delete: deactivate before deleting

8 years agobump version to 4.0-24
Dietmar Maurer [Fri, 25 Sep 2015 11:36:45 +0000 (13:36 +0200)]
bump version to 4.0-24

8 years agodrbd: use correct unit for storage sizes
Dietmar Maurer [Fri, 25 Sep 2015 11:34:55 +0000 (13:34 +0200)]
drbd: use correct unit for storage sizes

8 years agodrbd: return correct used/avail/total 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>
8 years agobump version to 4.0-23
Dietmar Maurer [Tue, 22 Sep 2015 10:19:39 +0000 (12:19 +0200)]
bump version to 4.0-23

8 years agoextend functionality to (de)activate_volumes with snapshots
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.

8 years agobump version to 4.0-22
Dietmar Maurer [Mon, 21 Sep 2015 10:25:57 +0000 (12:25 +0200)]
bump version to 4.0-22

8 years agoimprove bash completions
Dietmar Maurer [Fri, 18 Sep 2015 07:33:09 +0000 (09:33 +0200)]
improve bash completions

8 years agoconvert pvesm into a PVE::CLI class
Dietmar Maurer [Fri, 18 Sep 2015 06:21:17 +0000 (08:21 +0200)]
convert pvesm into a PVE::CLI class

8 years agoremove non used parameter exclusive
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.

8 years agofix lvm storage status
Dietmar Maurer [Fri, 11 Sep 2015 10:13:00 +0000 (12:13 +0200)]
fix lvm storage status

8 years agorbd: make activate_volume idempotent
Dietmar Maurer [Thu, 10 Sep 2015 09:10:35 +0000 (11:10 +0200)]
rbd: make activate_volume idempotent

8 years agobump version to 4.0-21
Dietmar Maurer [Thu, 10 Sep 2015 08:43:54 +0000 (10:43 +0200)]
bump version to 4.0-21

8 years agorbd: skip unmap if device is not mapped
Wolfgang Link [Thu, 10 Sep 2015 08:29:10 +0000 (10:29 +0200)]
rbd: skip unmap if device is not mapped

8 years agodrbd: also allow to configure content property
Dietmar Maurer [Thu, 10 Sep 2015 06:41:00 +0000 (08:41 +0200)]
drbd: also allow to configure content property

8 years agoallow to create containers on DRBD (content == rootdir)
Dietmar Maurer [Thu, 10 Sep 2015 06:29:23 +0000 (08:29 +0200)]
allow to create containers on DRBD (content == rootdir)

8 years agobump version to 4.0-20
Dietmar Maurer [Wed, 9 Sep 2015 05:57:52 +0000 (07:57 +0200)]
bump version to 4.0-20

8 years agoimprove free_image with deactivate_volumes
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.

8 years agobump version to 4.0-19
Dietmar Maurer [Tue, 8 Sep 2015 08:48:41 +0000 (10:48 +0200)]
bump version to 4.0-19

8 years agouse read_proc_mounts from PVE::ProcFSTools
Dietmar Maurer [Thu, 3 Sep 2015 08:16:38 +0000 (10:16 +0200)]
use read_proc_mounts from PVE::ProcFSTools

8 years agomove read_proc_mounts from NFSPlugin to Tools.
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.

8 years agoCorrect manpage examples to newer syntax
Emmanuel Kasper [Mon, 31 Aug 2015 13:37:23 +0000 (15:37 +0200)]
Correct manpage examples to newer syntax

8 years agobump version to 4.0-18
Dietmar Maurer [Mon, 31 Aug 2015 13:51:53 +0000 (15:51 +0200)]
bump version to 4.0-18

8 years agoGlusterfsPlugin: replace Net::Ping with tcp_ping
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.

8 years agoiSCSI ipv6 support
Wolfgang Bumiller [Mon, 31 Aug 2015 09:02:25 +0000 (11:02 +0200)]
iSCSI ipv6 support

8 years agobump version to 4.0-17
Dietmar Maurer [Fri, 28 Aug 2015 09:42:40 +0000 (11:42 +0200)]
bump version to 4.0-17

8 years agofix to prevent uninitialized variable massage.
Wolfgang Link [Fri, 28 Aug 2015 09:12:50 +0000 (11:12 +0200)]
fix to prevent uninitialized variable massage.

8 years agoscan_zfs: ignore subvolumes generated by our ZFSPoolPlugin
Dietmar Maurer [Fri, 28 Aug 2015 09:01:41 +0000 (11:01 +0200)]
scan_zfs: ignore subvolumes generated by our ZFSPoolPlugin

8 years agoallow subvolume selection in ZPool storage
Wolfgang Bumiller [Thu, 27 Aug 2015 12:53:12 +0000 (14:53 +0200)]
allow subvolume selection in ZPool storage

8 years agopath: corretly implement path to snapshots
Dietmar Maurer [Thu, 27 Aug 2015 10:03:46 +0000 (12:03 +0200)]
path: corretly implement path to snapshots

8 years agoAdd content type rootfs to RBD and extend manual
Wolfgang Link [Tue, 25 Aug 2015 07:47:53 +0000 (09:47 +0200)]
Add content type rootfs to RBD and extend manual

8 years agobump versionm to 4.0-16
Dietmar Maurer [Wed, 19 Aug 2015 13:41:19 +0000 (15:41 +0200)]
bump versionm to 4.0-16

8 years agoremove storage access permissions after delete
Alen Grizonic [Wed, 19 Aug 2015 08:28:13 +0000 (10:28 +0200)]
remove storage access permissions after delete

8 years agoadded remove storage (exist) check
Alen Grizonic [Wed, 19 Aug 2015 08:28:12 +0000 (10:28 +0200)]
added remove storage (exist) check

8 years agobump version to 4.0-15
Dietmar Maurer [Tue, 18 Aug 2015 14:28:10 +0000 (16:28 +0200)]
bump version to 4.0-15

8 years agoupload API: safer filename handling
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.

8 years agoparse_volname: document return values
Dietmar Maurer [Wed, 12 Aug 2015 05:34:58 +0000 (07:34 +0200)]
parse_volname: document return values

8 years agoparse_volname: always return image format
Dietmar Maurer [Wed, 12 Aug 2015 05:01:07 +0000 (07:01 +0200)]
parse_volname: always return image format

8 years agoZFSPoolPlugin: improve subvol support
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

8 years agoadd subvol support for directory storage
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.

8 years agozfs_parse_zvol_list: do not add pool to volname
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.

8 years agostorage_info: fix content filter
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.

8 years agorbd: add support to krbd
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>
8 years agobump version to 4.0-14
Dietmar Maurer [Fri, 7 Aug 2015 07:45:55 +0000 (09:45 +0200)]
bump version to 4.0-14

8 years agostorage status API: allow to filter multiple content types
Dietmar Maurer [Fri, 7 Aug 2015 07:44:22 +0000 (09:44 +0200)]
storage status API: allow to filter multiple content types

8 years agofix bug #664
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.

8 years agobump version to 4.0-13
Dietmar Maurer [Thu, 30 Jul 2015 06:50:53 +0000 (08:50 +0200)]
bump version to 4.0-13

8 years agomask world r and group wx permissions in vdisk_alloc
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.

8 years agobump version to 4.0-12
Dietmar Maurer [Wed, 1 Jul 2015 08:08:19 +0000 (10:08 +0200)]
bump version to 4.0-12

8 years agoallow templates using .xz compression
Dietmar Maurer [Wed, 1 Jul 2015 08:06:24 +0000 (10:06 +0200)]
allow templates using .xz compression

8 years agoFix ZFSPoolPlugin path for subvol
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>
8 years agobump version to 4.0-11
Dietmar Maurer [Fri, 19 Jun 2015 10:12:04 +0000 (12:12 +0200)]
bump version to 4.0-11

8 years agodrbd: improve error messages
Dietmar Maurer [Fri, 19 Jun 2015 10:10:45 +0000 (12:10 +0200)]
drbd: improve error messages

8 years agobump version to 4.0-10
Dietmar Maurer [Thu, 18 Jun 2015 11:53:42 +0000 (13:53 +0200)]
bump version to 4.0-10

8 years agodrbd: implement deactivate_volume (but code is disabled for now)
Dietmar Maurer [Thu, 18 Jun 2015 11:06:30 +0000 (13:06 +0200)]
drbd: implement deactivate_volume (but code is disabled for now)

8 years agodrbd: use old code to wait for diskless assignment
Dietmar Maurer [Thu, 18 Jun 2015 10:21:44 +0000 (12:21 +0200)]
drbd: use old code to wait for diskless assignment

8 years agodrbd: remov hack, because bug is fixed upstream
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

8 years agodrbd: correctly check all result codes
Dietmar Maurer [Thu, 18 Jun 2015 09:45:04 +0000 (11:45 +0200)]
drbd: correctly check all result codes

8 years agodrbd: correctly wait for diskless assignments
Dietmar Maurer [Thu, 18 Jun 2015 04:27:19 +0000 (06:27 +0200)]
drbd: correctly wait for diskless assignments

8 years agodrbd: improve workaround for set_drbdsetup_props
Dietmar Maurer [Thu, 18 Jun 2015 04:21:38 +0000 (06:21 +0200)]
drbd: improve workaround for set_drbdsetup_props

8 years agobump version to 4.0-9
Dietmar Maurer [Wed, 17 Jun 2015 09:26:32 +0000 (11:26 +0200)]
bump version to 4.0-9

8 years agodrbd: call set_drbdsetup_props after auto-deploy
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?!

8 years agobump version to 4.0-8
Dietmar Maurer [Wed, 17 Jun 2015 06:59:03 +0000 (08:59 +0200)]
bump version to 4.0-8

8 years agodrbd: set allow-two-primaries=yes
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.

8 years agobump version to 4.0-7
Dietmar Maurer [Tue, 16 Jun 2015 08:06:35 +0000 (10:06 +0200)]
bump version to 4.0-7

8 years agoinstall trigger for pve-api-updates
Dietmar Maurer [Tue, 16 Jun 2015 08:05:22 +0000 (10:05 +0200)]
install trigger for pve-api-updates

8 years agobump version to 4.0-6
Dietmar Maurer [Wed, 10 Jun 2015 08:56:53 +0000 (10:56 +0200)]
bump version to 4.0-6

8 years agoFix nfsscan
Wolfgang Link [Tue, 9 Jun 2015 08:01:48 +0000 (10:01 +0200)]
Fix nfsscan

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoinclude ::1 in localhost check in get_active_server
Wolfgang Bumiller [Tue, 26 May 2015 14:10:30 +0000 (16:10 +0200)]
include ::1 in localhost check in get_active_server

8 years agoNFS: replace rpcinfo with showmounts
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.

8 years agoNFSPlugin: deal with ipv6 addresses and fix regexps
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.

8 years agoallow ipv6 addresses in Storage::verify_server
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.

8 years agodrbd: avoid warning about undefined value
Dietmar Maurer [Mon, 18 May 2015 12:15:35 +0000 (14:15 +0200)]
drbd: avoid warning about undefined value