b200cefd06
fix modification of read only bug
...
Signed-off-by: Michael Rasmussen <mir@datanom.net >
2014-10-25 09:46:28 +02:00
187ca53927
Add transport option for glusterfs storage
...
Signed-off-by: Stoyan Marinov <stoyan@marinov.us >
2014-10-17 09:29:18 +02:00
a66159e356
glusterfs: new option server2 to specify backup volfile server
2014-08-27 11:29:36 +02:00
44c3689afc
RBD: enable clone of snaps
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag >
2014-07-17 08:04:12 +02:00
f90a0a20e7
rbd: unprotect snapshots before deletion
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag >
2014-07-17 08:00:34 +02:00
63da6d7983
cleanups
2014-07-17 07:59:13 +02:00
f236eaf80e
Storage Plugins: extend clone_image by snap parameter and add support to RBDPlugin
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag >
2014-07-17 07:54:36 +02:00
2362bc8798
fix ' escaping of $snap parameter
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag >
2014-07-17 07:38:43 +02:00
c97c5b3b0b
coding style cleanup
2014-07-17 07:37:23 +02:00
c693f74953
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 >
2014-07-17 07:26:09 +02:00
a315b9ff56
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>
2014-06-25 09:14:03 +02:00
454c15e270
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>
2014-06-25 09:13:54 +02:00
551534a3bc
Fixed Istgt LUN Options handling.
...
Signed-off-by: Chris Allen <Chris Allen>
2014-06-25 09:13:45 +02:00
c521e801ae
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>
2014-06-25 09:13:31 +02:00
70986fd9e4
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>
2014-06-25 09:13:03 +02:00
a9bd7bdfdc
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>
2014-06-25 09:11:49 +02:00
5e4791804c
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 >
2014-02-27 06:21:38 +01:00
76f60be802
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 >
2014-01-28 07:06:13 +01:00
db7922dcef
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 >
2014-01-16 09:38:03 +01:00
3b219e8037
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 >
2013-10-23 06:26:30 +02:00
86f00da603
Code clean up. Fix wrong indentation.
...
Signed-off-by: Michael Rasmussen <mir@datanom.net >
2013-10-23 06:26:26 +02:00
dda2651943
install Iet.pm
2013-10-21 06:14:43 +02:00
78a64432ff
Added support for iSCSI Enterprise Target Daemon (iet) iscsitarget used in Linux distributions.
...
Signed-off-by: Michael Rasmussen <mir@datanom.net >
2013-10-21 06:13:35 +02:00
099925e4ba
Code clean up
...
Signed-off-by: Michael Rasmussen <mir@datanom.net >
2013-10-21 06:13:05 +02:00
b1045cc2ca
add missing Makefile to install LunCmd/ modules
2013-10-18 09:41:16 +02:00
a62d1e992d
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 >
2013-10-18 09:34:36 +02:00
ee31ad019c
Comstar lun commands moved to separate module
...
Signed-off-by: Michael Rasmussen <mir@datanom.net >
2013-10-18 09:34:12 +02:00
a7d56be676
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 >
2013-10-18 09:33:56 +02:00
1fca146493
Fixes bug in calculating pool size
...
Signed-off-by: Michael Rasmussen <mir@datanom.net >
2013-10-14 07:21:08 +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
98735f827a
Remove unused functionality
...
Signed-off-by: Michael Rasmussen <mir@datanom.net >
2013-10-03 07:32:07 +02:00
5332e6c97e
code cleanups for ZFSPlugin
2013-10-02 06:54:56 +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
452e3ee780
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).
2013-09-19 06:41:51 +02:00
08480ce768
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).
2013-09-17 09:05:17 +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
9165b0153e
sheepdog : fix create_base with storeid !='sheepdog'
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-06-24 10:07:46 +02:00
9538d0475a
sheepdog: fix find_next_volume with storeid != 'sheepdog', find display volume size
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-06-24 10:07:33 +02:00
a8c3f8f6ac
--format is deprecated
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag >
2013-06-04 13:09:02 +02:00
8cc610093b
be more verebose on rbd commands to get progress
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag >
2013-05-31 11:50:41 +02:00
0b79e98ccb
nexenta: nexenta_get_zvol_size : parse result to avoid tainted value
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-05-28 12:39:09 +02:00
c55a499dfe
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.
2013-05-27 06:40:37 +02:00
72d9f66e51
nexenta: disable ssl_opt verify_hostname
...
Else we are unable to connect to the server when using ssl.
2013-05-24 14:53:40 +02:00
3e29c0f229
rbd : clone volume to same pool that base volume
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-05-14 10:04:01 +02:00
7acee37a30
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.
2013-05-13 08:00:16 +02:00
38e6ec3fbd
rbd: sub path: add snapname argument
...
needed for qemu-img convert from src snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-05-02 06:34:55 +02:00
24cec3aa77
sheepdog: sub path: add snapname argument
...
needed for qemu-img convert from src snapshot
Signed-off-by: Alexandre Derumier <aderumier@odiso.com >
2013-05-02 06:34:32 +02:00
8897f5dcc5
rbd -p parameter is only valid for the src (see man). Add the pool to the target as well.
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag >
2013-04-22 06:17:15 +02:00
87cf5d409c
use integer size in rbd size parameter
2013-03-25 12:55:09 +01:00