]>
git.proxmox.com Git - pve-storage.git/log
Wolfgang Link [Fri, 23 Jan 2015 09:32:43 +0000 (10:32 +0100)]
zfs: move code
move activate_volume deactivate_volume from ZFSPlugin to ZFSDirPlugin
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Link [Fri, 23 Jan 2015 09:32:41 +0000 (10:32 +0100)]
zfs: ZFSDirPlugin add methode path
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Link [Fri, 23 Jan 2015 09:32:40 +0000 (10:32 +0100)]
zfs: move methode list_image
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Link [Fri, 23 Jan 2015 09:32:39 +0000 (10:32 +0100)]
zfsdir: implement free_image
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Link [Fri, 23 Jan 2015 09:32:38 +0000 (10:32 +0100)]
zfs: move code
move parse_volume from ZFSPlugin to ZFSDirPlugin, to avoid duplication
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Wolfgang Link [Fri, 23 Jan 2015 09:32:37 +0000 (10:32 +0100)]
zfs: move some code
move the most part of alloc_image to ZFSDirPlugin
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Dietmar Maurer [Thu, 22 Jan 2015 09:22:54 +0000 (10:22 +0100)]
zfs: remove duplicate $object definition
Dietmar Maurer [Thu, 22 Jan 2015 09:10:35 +0000 (10:10 +0100)]
zfs: move common code to ZFSDirPlugin
Dietmar Maurer [Thu, 22 Jan 2015 08:45:32 +0000 (09:45 +0100)]
zfs: white space cleanups
Dietmar Maurer [Thu, 22 Jan 2015 08:40:22 +0000 (09:40 +0100)]
zfs: cleanup zfs_get_lu_name
Dietmar Maurer [Thu, 22 Jan 2015 08:37:52 +0000 (09:37 +0100)]
zfs: cleanup zfs_request
Dietmar Maurer [Thu, 22 Jan 2015 08:29:13 +0000 (09:29 +0100)]
zfs: make zfs_request a virtual method
So that we can move common code into ZFSDirPlugin class.
Dietmar Maurer [Thu, 22 Jan 2015 06:58:42 +0000 (07:58 +0100)]
zfsdir: cleanup zfs_parse_size
Dietmar Maurer [Thu, 22 Jan 2015 06:54:10 +0000 (07:54 +0100)]
ZFSDirPlugin: new plugin for local zfs storage
We also want to use this as base class for ZFSPlugin, to increase
code sharing.
Dietmar Maurer [Fri, 21 Nov 2014 07:04:12 +0000 (08:04 +0100)]
bump version to 3.0-26
Alexandre Derumier [Thu, 20 Nov 2014 15:01:44 +0000 (16:01 +0100)]
rbd, zfs, sheepdog: bugfix : fix alloc_image if name is specified
Currently vmstate snapshot with rbd have wrong name,
because rbd alloc_image don't care if $name is provided
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Sat, 25 Oct 2014 07:47:39 +0000 (09:47 +0200)]
bump version to 3.0-25
Michael Rasmussen [Fri, 24 Oct 2014 22:16:32 +0000 (00:16 +0200)]
fix modification of read only bug
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Dietmar Maurer [Fri, 17 Oct 2014 07:30:47 +0000 (09:30 +0200)]
bump version to 3.0-24
Stoyan Marinov [Thu, 16 Oct 2014 16:14:18 +0000 (19:14 +0300)]
Add transport option for glusterfs storage
Signed-off-by: Stoyan Marinov <stoyan@marinov.us>
Dietmar Maurer [Wed, 10 Sep 2014 12:18:42 +0000 (14:18 +0200)]
bump version to 3.0-23
Dietmar Maurer [Wed, 10 Sep 2014 12:15:11 +0000 (14:15 +0200)]
allow iso upload for glusterfs
Dietmar Maurer [Wed, 27 Aug 2014 09:31:42 +0000 (11:31 +0200)]
bump version to 3.0-22
Dietmar Maurer [Wed, 27 Aug 2014 09:29:36 +0000 (11:29 +0200)]
glusterfs: new option server2 to specify backup volfile server
Dietmar Maurer [Thu, 17 Jul 2014 06:06:47 +0000 (08:06 +0200)]
bump version to 3.0-21
Stefan Priebe [Fri, 4 Jul 2014 08:30:56 +0000 (10:30 +0200)]
RBD: enable clone of snaps
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
Stefan Priebe [Fri, 4 Jul 2014 08:30:55 +0000 (10:30 +0200)]
rbd: unprotect snapshots before deletion
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
Stefan Priebe [Fri, 4 Jul 2014 08:30:53 +0000 (10:30 +0200)]
pass snapname to vdisk_clone and plugin clone_image
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
Dietmar Maurer [Thu, 17 Jul 2014 05:59:13 +0000 (07:59 +0200)]
cleanups
Stefan Priebe [Fri, 4 Jul 2014 08:30:54 +0000 (10:30 +0200)]
Storage Plugins: extend clone_image by snap parameter and add support to RBDPlugin
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
Stefan Priebe [Fri, 4 Jul 2014 08:30:52 +0000 (10:30 +0200)]
fix ' escaping of $snap parameter
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
Dietmar Maurer [Thu, 17 Jul 2014 05:37:23 +0000 (07:37 +0200)]
coding style cleanup
Stefan Priebe [Fri, 4 Jul 2014 08:30:51 +0000 (10:30 +0200)]
ceph/rbd: has a pretty strange error handling - install custom run_command function
Always use a custom error sub to get the real errors out of rbd command instead of the typical:
2014-02-06 11:20:20.187190
7f3b6c37c760 -1 librbd: removing snapshot from header failed: (16) Device or resource busy
before:
rbd: snapshot 'abc' is protected from removal.
TASK ERROR: rbd snapshot vm-173-disk-1' error: 2014-02-06 11:06:02.438336
7f6f4ac92760 -1 librbd: removing snapshot from header failed: (16) Device or resource busy
now:
TASK ERROR: rbd: snapshot 'abc' is protected from removal.
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
Dietmar Maurer [Wed, 25 Jun 2014 07:17:20 +0000 (09:17 +0200)]
bump version to 3.0-20
Chris Allen [Wed, 12 Mar 2014 00:32:17 +0000 (17:32 -0700)]
Added code to abort a snapshot rollback in ZFS if the snapshot selected is not the most recent. This is to avoid lu deletion when trying to rollback to a snapshot that isn't the newest.
Signed-off-by: Chris Allen <Chris Allen>
Chris Allen [Tue, 11 Mar 2014 22:07:53 +0000 (15:07 -0700)]
Added target-group and host-group options for ZFS comstar views. Use "comstar_tg" and "comstar_hg" in "/etc/pve/storage.pm".
Signed-off-by: Chris Allen <Chris Allen>
Chris Allen [Tue, 11 Mar 2014 17:46:24 +0000 (10:46 -0700)]
Fixed Istgt LUN Options handling.
Signed-off-by: Chris Allen <Chris Allen>
Chris Allen [Mon, 10 Mar 2014 20:06:09 +0000 (13:06 -0700)]
Fixed command substitution and output redirection in Istgt module to work in csh - the default shell in FreeBSD. Changed Istgt "restart" to "onerestart". This way a running istgt daemon will always restart whether or not it is enabled in rc.conf.
Signed-off-by: Chris Allen <Chris Allen>
Chris Allen [Mon, 10 Mar 2014 19:07:35 +0000 (12:07 -0700)]
Added "nowritecache" option to ZFS storage plugin. Turns off write caching on Comstar and Istgt LUNs created by the plugin. Has no effect on IET, as IET always uses write-through caching for blockio volumes not in read-only mode.
Signed-off-by: Chris Allen <Chris Allen>
Chris Allen [Sat, 1 Mar 2014 07:56:02 +0000 (23:56 -0800)]
Added sparse zvol support to ZFS.
To enable, add "sparse" to the ZFS storage section, you wish to use it on, in "/etc/pve/storage.pm"
Signed-off-by: Chris Allen <Chris Allen>
Pablo Ruiz Garcia [Sat, 22 Feb 2014 23:00:43 +0000 (00:00 +0100)]
Improve parsing of zfs volumes (ZVOLs) in order to avoid filtering of zvols nested under another ZFS dataset.
The actual code would only accept zvols like: POOL/vm-123-disk-1.
However, using POOL/DataSet/vm-123-disk-1 allows setting specific
proparties at POOL/DataSet level (like compression, etc.) which
would be inherited by any zvol created under such DataSet.
This allows more flexibility of zfs/zvol's management.
Signed-off-by: Pablo Ruiz GarcĂa <pablo.ruiz@gmail.com>
Alexandre Derumier [Mon, 27 Jan 2014 02:57:22 +0000 (03:57 +0100)]
update sheepdog storage module to 0.8
- collie command is now 'dog'
- KB size is now k
- snapshot rollback need force -f flag, to avoid confirm prompt
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Thu, 16 Jan 2014 08:38:52 +0000 (09:38 +0100)]
bump version to 3.0-19
Alexandre Derumier [Tue, 7 Jan 2014 22:50:02 +0000 (23:50 +0100)]
glusterfs : create volume through gluster block driver instead fuse mount point
forum user report slow qcow2 volume create with preallocated metadatas
http://forum.proxmox.com/threads/17471-GlusterFS-amp-Proxmox-Future-amp-QCOW2-Issues
(note that I can't reproduce it with qemu 1.7)
But redhat bugzilla have an entry about possible problem with volume is create through mount point.
https://bugzilla.redhat.com/show_bug.cgi?id=895830
So,It's better to manage it through gluster block driver directly.
(We need only the mount point to create directory and list images files)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Michael Rasmussen [Wed, 23 Oct 2013 00:53:08 +0000 (02:53 +0200)]
Use ssh key stored in pmxcfg. Use ssh -i /etc/pve/priv/zfs/portal_id_rsa for remote commands
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Michael Rasmussen [Wed, 23 Oct 2013 00:47:18 +0000 (02:47 +0200)]
Code clean up. Fix wrong indentation.
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Dietmar Maurer [Mon, 21 Oct 2013 04:14:43 +0000 (06:14 +0200)]
install Iet.pm
Michael Rasmussen [Sun, 20 Oct 2013 11:20:35 +0000 (13:20 +0200)]
Added support for iSCSI Enterprise Target Daemon (iet) iscsitarget used in Linux distributions.
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Michael Rasmussen [Sun, 20 Oct 2013 11:20:34 +0000 (13:20 +0200)]
Code clean up
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Dietmar Maurer [Fri, 18 Oct 2013 07:41:16 +0000 (09:41 +0200)]
add missing Makefile to install LunCmd/ modules
Dietmar Maurer [Fri, 18 Oct 2013 07:36:29 +0000 (09:36 +0200)]
bump version to 3.0-18
Michael Rasmussen [Wed, 16 Oct 2013 23:18:50 +0000 (01:18 +0200)]
Module to support istgt lun commands Istgt is used on any *BSD. As of FreeBSD 10 it seems FreeBSD will provide thier own native replacement.
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Michael Rasmussen [Wed, 16 Oct 2013 23:18:49 +0000 (01:18 +0200)]
Comstar lun commands moved to separate module
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Michael Rasmussen [Wed, 16 Oct 2013 23:18:48 +0000 (01:18 +0200)]
Prepare for adding support for istgt and openiscsi Refactor code. Move any LUN related to proper LUN module.
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Dietmar Maurer [Mon, 14 Oct 2013 05:40:09 +0000 (07:40 +0200)]
bump version to 3.0-17
Michael Rasmussen [Sat, 12 Oct 2013 23:51:41 +0000 (01:51 +0200)]
Fixes bug in calculating pool size
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Alexandre Derumier [Fri, 4 Oct 2013 12:44:45 +0000 (14:44 +0200)]
remove nexenta plugin
zfs plugin is better and faster and backward compatible
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Thu, 3 Oct 2013 05:32:59 +0000 (07:32 +0200)]
bump version to 3.0-16
Michael Rasmussen [Wed, 2 Oct 2013 20:13:37 +0000 (22:13 +0200)]
Remove unused functionality
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Dietmar Maurer [Wed, 2 Oct 2013 04:56:17 +0000 (06:56 +0200)]
bump version to 3.0-15
Dietmar Maurer [Wed, 2 Oct 2013 04:54:56 +0000 (06:54 +0200)]
code cleanups for ZFSPlugin
Michael Rasmussen [Wed, 2 Oct 2013 02:58:10 +0000 (04:58 +0200)]
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>
Dietmar Maurer [Tue, 1 Oct 2013 11:07:46 +0000 (13:07 +0200)]
use warnings instead of global -w flag
Dietmar Maurer [Tue, 1 Oct 2013 10:39:02 +0000 (12:39 +0200)]
improve changelog
Dietmar Maurer [Tue, 1 Oct 2013 10:26:19 +0000 (12:26 +0200)]
new helper abs_filesystem_path()
Returns the absolute path for a <volid>. Also activates storage if possible.
Dietmar Maurer [Tue, 1 Oct 2013 09:28:57 +0000 (11:28 +0200)]
bump version to 3.0-14
Alexandre Derumier [Wed, 25 Sep 2013 08:26:54 +0000 (10:26 +0200)]
storage: add parse_volname
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Thu, 19 Sep 2013 04:44:40 +0000 (06:44 +0200)]
bump version to 3.0-13
Dietmar Maurer [Thu, 19 Sep 2013 04:41:51 +0000 (06:41 +0200)]
bug fix: use filesysetm_path for LVM/iSCSI storage
So that the genrice Storage::Plugin code works again (get_subdir() fails on
this type of storage).
Dietmar Maurer [Tue, 17 Sep 2013 07:09:44 +0000 (09:09 +0200)]
bump version to 3.0-12
Dietmar Maurer [Tue, 17 Sep 2013 07:03:01 +0000 (09:03 +0200)]
introduce new method filesystem_path()
If a plugin overwrites method path() to return optimized setting for qemu,
it can now still use the generic methods from PVE::Storage::Plugin which works
on file system paths (for example the glusterfs plugin).
Dietmar Maurer [Thu, 5 Sep 2013 11:14:27 +0000 (13:14 +0200)]
fix RELEASE
Dietmar Maurer [Thu, 5 Sep 2013 11:02:40 +0000 (13:02 +0200)]
add reference to git version
Dietmar Maurer [Wed, 4 Sep 2013 11:21:18 +0000 (13:21 +0200)]
avoid nested parameter exception
Dietmar Maurer [Wed, 4 Sep 2013 09:16:38 +0000 (11:16 +0200)]
bump version to 3.0-11
Dietmar Maurer [Wed, 4 Sep 2013 08:18:50 +0000 (10:18 +0200)]
auto-detect format for files with vmdk extension
Dietmar Maurer [Wed, 4 Sep 2013 08:17:47 +0000 (10:17 +0200)]
return error if volume does not exists
Dietmar Maurer [Tue, 13 Aug 2013 08:06:03 +0000 (10:06 +0200)]
API: add scan method for glusterfs
Dietmar Maurer [Tue, 13 Aug 2013 04:45:42 +0000 (06:45 +0200)]
bump version to 3.0-10
Dietmar Maurer [Mon, 12 Aug 2013 09:56:41 +0000 (11:56 +0200)]
delete trailing white-space
Alexandre Derumier [Mon, 12 Aug 2013 07:59:00 +0000 (09:59 +0200)]
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>
Dietmar Maurer [Mon, 24 Jun 2013 08:08:59 +0000 (10:08 +0200)]
bump version to 3.0-9
Alexandre Derumier [Fri, 21 Jun 2013 12:46:13 +0000 (14:46 +0200)]
sheepdog : fix create_base with storeid !='sheepdog'
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Fri, 21 Jun 2013 12:40:52 +0000 (14:40 +0200)]
sheepdog: fix find_next_volume with storeid != 'sheepdog', find display volume size
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Tue, 4 Jun 2013 11:10:21 +0000 (13:10 +0200)]
bump version to 3.0-8
Stefan Priebe [Mon, 3 Jun 2013 19:12:10 +0000 (21:12 +0200)]
--format is deprecated
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
Dietmar Maurer [Fri, 31 May 2013 09:51:57 +0000 (11:51 +0200)]
bump version to 3.0-7
Stefan Priebe [Fri, 31 May 2013 09:46:08 +0000 (11:46 +0200)]
be more verebose on rbd commands to get progress
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
Alexandre Derumier [Mon, 27 May 2013 09:41:37 +0000 (11:41 +0200)]
nexenta: nexenta_get_zvol_size : parse result to avoid tainted value
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Mon, 27 May 2013 04:38:14 +0000 (06:38 +0200)]
nexenta: skip disks whith no owner
We also do this for LVM. Else I get:
> qm rescan --vmid 100
Use of uninitialized value $owner in string ne at /usr/share/perl5/PVE/Storage/NexentaPlugin.pm line 356.
Dietmar Maurer [Fri, 24 May 2013 12:53:40 +0000 (14:53 +0200)]
nexenta: disable ssl_opt verify_hostname
Else we are unable to connect to the server when using ssl.
Dietmar Maurer [Tue, 14 May 2013 09:25:03 +0000 (11:25 +0200)]
bump version to 3.0-6 and fix bug from previous commit
Dietmar Maurer [Tue, 14 May 2013 07:58:59 +0000 (09:58 +0200)]
bump version to 3.0-5
Alexandre Derumier [Tue, 14 May 2013 07:01:10 +0000 (09:01 +0200)]
rbd : clone volume to same pool that base volume
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Tue, 14 May 2013 07:56:11 +0000 (09:56 +0200)]
extend storage list API with useful parameters for clone
Add ability to list shared storages availavlable on souce and target node.
Dietmar Maurer [Mon, 13 May 2013 06:04:50 +0000 (08:04 +0200)]
bump version to 3.0-4
Dietmar Maurer [Mon, 13 May 2013 06:00:16 +0000 (08:00 +0200)]
since wheezy, iscsiadm -m session throw an error code if no session exist.
So we can't bring up the iscsi storage
This patch is based on the patch submitted by Alexandre, but we only
suppress error messages when there are no active sessions. Other errors still
trigges an exceptions.
Dietmar Maurer [Thu, 2 May 2013 04:37:01 +0000 (06:37 +0200)]
bump version to 3.0-3
Alexandre Derumier [Thu, 2 May 2013 03:51:51 +0000 (05:51 +0200)]
rbd: sub path: add snapname argument
needed for qemu-img convert from src snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Alexandre Derumier [Thu, 2 May 2013 03:51:50 +0000 (05:51 +0200)]
sheepdog: sub path: add snapname argument
needed for qemu-img convert from src snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>