4eff810db8
Bug-fix alloc_image in ZFSPlugin.pm
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-02-16 11:31:28 +01:00
b3f302c638
call volume_rollback_is_possible from PVE::Storage::volume_snapshot_rollback
...
That way it is automatically called for all plungins.
2015-02-12 09:28:52 +01:00
1597f1f9ad
Storage: add method volume_rollback_is_possible
...
add method volume_rollback_is_possible and redactor
Improve error handling
If snapshot is not reversible catch it before vm will lock and shutdown.
This is the case if zfs has an younger snapshot.
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-02-12 09:15:02 +01:00
a4034b9f19
zfspoolplugin: fix volume_resize
...
copy methode volume_resize form ZFSPlugin.pm to ZFSPoolPlugin.pm
refactor volume_resize
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-02-10 12:48:34 +01:00
86d472394a
zfs: auto import after reboot
...
this is necessary, because after a reboot all pools except rpool are gone
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-02-09 12:26:28 +01:00
9b61bc9e88
zfs: fix wait by alloc_image
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-01-30 06:24:56 +01:00
0a3d992f72
move activate_storage into ZFSPoolPlugin
2015-01-24 14:30:10 +01:00
85fda4dd7f
rename ZFSDirPlugin to ZFSPoolPlugin
...
Turned out it makes no sense to duplicated DirPlugin features. So I
also changed the name to make it less confusing. So we can only
create zvols inside a zfs pool with this plugin.
2015-01-24 14:17:55 +01:00
d3a282e83e
zfs: move and refactor code
...
copy and modify create_base and refactor clone_image
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-01-23 12:57:38 +01:00
2fc59177c9
zfs: implement zfs_get_latest_snapshot
...
To improve code sharing.
2015-01-23 12:57:38 +01:00
2b40ffaea9
zfs: move code fix metode call
...
duplicate code because can't refactor volume_snapshot_rollback
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-01-23 12:57:38 +01:00
d4c63dc147
zfs: move code
...
move activate_volume deactivate_volume from ZFSPlugin to ZFSDirPlugin
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-01-23 12:57:38 +01:00
ca04180f3b
zfs: move methode list_image
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-01-23 12:57:38 +01:00
cc80ed9c00
zfs: move code
...
move parse_volume from ZFSPlugin to ZFSDirPlugin, to avoid duplication
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-01-23 12:57:38 +01:00
b3ba95e493
zfs: move some code
...
move the most part of alloc_image to ZFSDirPlugin
Signed-off-by: Wolfgang Link <w.link@proxmox.com >
2015-01-23 12:57:28 +01:00
52f8fb7191
zfs: remove duplicate $object definition
2015-01-22 10:22:54 +01:00
b5e5f7e3a8
zfs: move common code to ZFSDirPlugin
2015-01-22 10:10:35 +01:00
6b5bca68e6
zfs: white space cleanups
2015-01-22 09:45:32 +01:00
34eaae3f8d
zfs: cleanup zfs_get_lu_name
2015-01-22 09:40:22 +01:00
e8004c9cb7
zfs: cleanup zfs_request
2015-01-22 09:37:52 +01:00
7730694e54
zfs: make zfs_request a virtual method
...
So that we can move common code into ZFSDirPlugin class.
2015-01-22 09:29:13 +01:00
5bb8e01076
ZFSDirPlugin: new plugin for local zfs storage
...
We also want to use this as base class for ZFSPlugin, to increase
code sharing.
2015-01-22 07:54:10 +01:00
3fad260379
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 >
2014-11-21 08:03:08 +01: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
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
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
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
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
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