]> git.proxmox.com Git - pve-storage.git/log
pve-storage.git
8 years agoadd lvmthinscan to CLI
Dietmar Maurer [Sat, 20 Feb 2016 09:11:59 +0000 (10:11 +0100)]
add lvmthinscan to CLI

8 years agobump version to 4.0-41
Dietmar Maurer [Sat, 20 Feb 2016 08:52:59 +0000 (09:52 +0100)]
bump version to 4.0-41

8 years agoprepare storage for lvmthin gui
Dominik Csapak [Fri, 19 Feb 2016 13:51:44 +0000 (14:51 +0100)]
prepare storage for lvmthin gui

this patch adds an lvmthin scan to the api, so that we can get a list
of thinpools for a specific vg via an api call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agobump version to 4.0-40
Dietmar Maurer [Thu, 28 Jan 2016 10:12:23 +0000 (11:12 +0100)]
bump version to 4.0-40

8 years agostorage_migrate: another ipv6 fix for an rsync command
Wolfgang Bumiller [Thu, 28 Jan 2016 08:33:48 +0000 (09:33 +0100)]
storage_migrate: another ipv6 fix for an rsync command

8 years agobump version to 4.0-39
Dietmar Maurer [Mon, 25 Jan 2016 09:49:14 +0000 (10:49 +0100)]
bump version to 4.0-39

8 years agoincrease timeout for ZFSPugin
Wolfgang Link [Mon, 25 Jan 2016 09:44:35 +0000 (10:44 +0100)]
increase timeout for ZFSPugin

This is useful on large zfs pools because they take longer to response.

8 years agolvmthin: allow to clone from snapshot
Dietmar Maurer [Wed, 20 Jan 2016 10:32:18 +0000 (11:32 +0100)]
lvmthin: allow to clone from snapshot

8 years agoremove option maxfiles from zfspool plugin
Dietmar Maurer [Wed, 30 Dec 2015 16:16:37 +0000 (17:16 +0100)]
remove option maxfiles from zfspool plugin

It makse no sense, because this plugin is unable to store backup files.

8 years agobump version to 4.0-38
Dietmar Maurer [Wed, 9 Dec 2015 15:16:31 +0000 (16:16 +0100)]
bump version to 4.0-38

8 years agonfs: is_mounted: match /^nfs.*/ type
Wolfgang Bumiller [Wed, 9 Dec 2015 12:22:19 +0000 (13:22 +0100)]
nfs: is_mounted: match /^nfs.*/ type

This is consistent with the old behavior.

8 years agobump version to 4.0-37
Dietmar Maurer [Wed, 9 Dec 2015 08:26:23 +0000 (09:26 +0100)]
bump version to 4.0-37

8 years agonfs/glusterfs: is_mounted fixes
Wolfgang Bumiller [Wed, 9 Dec 2015 07:44:50 +0000 (08:44 +0100)]
nfs/glusterfs: is_mounted fixes

The parse_proc_mounts change made the glusterfs is_mounted
check fail (causing it to be shown as inactive on the GUI).
The NFS check was stricter (not allowing a trailing / in the
source anymore).

8 years agoset RELEASE=4.1
Dietmar Maurer [Wed, 9 Dec 2015 07:27:19 +0000 (08:27 +0100)]
set RELEASE=4.1

8 years agobump version to 4.0-36
Dietmar Maurer [Wed, 9 Dec 2015 06:40:44 +0000 (07:40 +0100)]
bump version to 4.0-36

8 years agoRevert "Change zfspoolplugin path when snapshot is given."
Dietmar Maurer [Wed, 9 Dec 2015 06:38:36 +0000 (07:38 +0100)]
Revert "Change zfspoolplugin path when snapshot is given."

This reverts commit fdd31ce7594ffc4ccea68260091989a3cbc07cdb.

The assumption was wrong. Turned out that we cannot assume
snapshots are always mounted there.

8 years agobump version to 4.0-35
Dietmar Maurer [Thu, 26 Nov 2015 11:06:06 +0000 (12:06 +0100)]
bump version to 4.0-35

8 years agoallow rx permissions for group/world on .subvol dirs
Wolfgang Bumiller [Tue, 24 Nov 2015 08:43:13 +0000 (09:43 +0100)]
allow rx permissions for group/world on .subvol dirs

vdisk_alloc comes in with an umask of 0037, which means the
.subvol dir has permissions 0740, which means that the root
directory of containers has permissions 0740, essentially
preventing the users inside a container from accessing
anything.

8 years agobump version to 4.0-34
Dietmar Maurer [Thu, 19 Nov 2015 11:38:56 +0000 (12:38 +0100)]
bump version to 4.0-34

8 years agoChange zfspoolplugin path when snapshot is given.
Wolfgang Link [Thu, 19 Nov 2015 11:28:20 +0000 (12:28 +0100)]
Change zfspoolplugin path when snapshot is given.

Zfs subvol snapshots are always mounted under $path_of_subvol/.zfs/$snapname

8 years agobump version to 4.0-33
Dietmar Maurer [Wed, 18 Nov 2015 10:01:57 +0000 (11:01 +0100)]
bump version to 4.0-33

8 years agoFixed ZFS over iSCSI snapshot rollback
Phillip Schichtel [Thu, 12 Nov 2015 19:00:37 +0000 (20:00 +0100)]
Fixed ZFS over iSCSI snapshot rollback

I converted several zfs_request($class, ...) calls to $class->zfs_request(...) calls in ZFSPoolPlugin.pm and removed a superfluous $class parameter in ZFSPlugin.pm.

Fixes #816

Signed-off-by: Phillip Schichtel <phillip.public@schich.tel>
8 years agobump version to 4.0-32
Dietmar Maurer [Sat, 14 Nov 2015 09:38:24 +0000 (10:38 +0100)]
bump version to 4.0-32

8 years agomake use of the new ProcFSTools::parse_proc_mounts
Wolfgang Bumiller [Fri, 13 Nov 2015 11:21:44 +0000 (12:21 +0100)]
make use of the new ProcFSTools::parse_proc_mounts

8 years agolvmthin: enable copy from snapshot feature
Dietmar Maurer [Thu, 12 Nov 2015 10:15:37 +0000 (11:15 +0100)]
lvmthin: enable copy from snapshot feature

8 years agolvmthin: allow to acces snapshots in filesystem_path
Dietmar Maurer [Thu, 12 Nov 2015 10:14:47 +0000 (11:14 +0100)]
lvmthin: allow to acces snapshots in filesystem_path

8 years agolvmthin: fix used space (only use data%)
Dietmar Maurer [Thu, 12 Nov 2015 08:47:49 +0000 (09:47 +0100)]
lvmthin: fix used space (only use data%)

8 years agolvmthin: implement template/clone
Dietmar Maurer [Thu, 12 Nov 2015 08:31:45 +0000 (09:31 +0100)]
lvmthin: implement template/clone

8 years agonew helper lvm_find_free_diskname()
Dietmar Maurer [Thu, 12 Nov 2015 08:29:00 +0000 (09:29 +0100)]
new helper lvm_find_free_diskname()

8 years agolvmthin alloc_image: add additional test if VG exists
Dietmar Maurer [Thu, 12 Nov 2015 07:02:50 +0000 (08:02 +0100)]
lvmthin alloc_image: add additional test if VG exists

8 years agolvmthin: implement snapshot and rollback
Dietmar Maurer [Thu, 12 Nov 2015 06:28:28 +0000 (07:28 +0100)]
lvmthin: implement snapshot and rollback

8 years agolvmthin volume_resize: reuse code from parent class
Dietmar Maurer [Wed, 11 Nov 2015 09:18:44 +0000 (10:18 +0100)]
lvmthin volume_resize: reuse code from parent class

8 years agowhite space cleanups
Dietmar Maurer [Wed, 11 Nov 2015 08:17:31 +0000 (09:17 +0100)]
white space cleanups

8 years agoLvmThinPlugin: improve basic functionality, better code reuse
Dietmar Maurer [Wed, 11 Nov 2015 08:07:55 +0000 (09:07 +0100)]
LvmThinPlugin: improve basic functionality, better code reuse

8 years agoimplement generic lvm_list_volumes()
Dietmar Maurer [Wed, 11 Nov 2015 07:42:08 +0000 (08:42 +0100)]
implement generic lvm_list_volumes()

This replace lvm_lvs, and return a list of all volumes. That way
we can reuse code for LvmThin.

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