[pve-devel] [PATCH] Added missing 'import-lu' command to refactored ZFSPlugin.

2014-04-13 Thread Pablo Ruiz García
Signed-off-by: Pablo Ruiz García --- PVE/Storage/ZFSPlugin.pm |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm index ac8eb0a..d310a8c 100644 --- a/PVE/Storage/ZFSPlugin.pm +++ b/PVE/Storage/ZFSPlugin.pm @@ -41,6 +41,9

[pve-devel] [PATCH 3/5] Do not expose every value from storage.cfg as PMXCFG_*, and instead expose those few 'usefull' values like portal, target, pool, etc. Everything else should be handled by helpe

2014-04-12 Thread Pablo Ruiz García
Signed-off-by: Pablo Ruiz García --- PVE/Storage/ZFSPlugin.pm | 16 +++- 1 files changed, 3 insertions(+), 13 deletions(-) diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm index 80fc0ea..ac8eb0a 100644 --- a/PVE/Storage/ZFSPlugin.pm +++ b/PVE/Storage/ZFSPlugin.pm

[pve-devel] [PATCH 4/5] Added existing LunCmd code rewritten as independent scripts

2014-04-12 Thread Pablo Ruiz García
Signed-off-by: Pablo Ruiz García --- zfs-helpers/Common.pm | 285 zfs-helpers/comstar | 114 ++ zfs-helpers/iet | 488 zfs-helpers/istgt | 593 + 4 files

[pve-devel] [PATCH 1/5] This patch refactors ZFS's LUN management code, removing the existing LunCmds implementations, in favor of a single lun management infraestructure which just invokes a 'managem

2014-04-12 Thread Pablo Ruiz García
return the given ZVOL/LUN's number. This actual commands are modelled after the ones invoked by Comstar's LunCmd perl module, which even if it maybe a bit too coupled to Comstar's/Solaris' way of doing things. It seems to be flexible enough as to be usefull for other implementati

[pve-devel] [PATCH 5/5] Implemented --remote option to zfs helper scripts, allowing local vs remote execution.

2014-04-12 Thread Pablo Ruiz García
Signed-off-by: Pablo Ruiz García --- zfs-helpers/comstar | 12 ++-- zfs-helpers/iet | 20 zfs-helpers/istgt | 36 +--- 3 files changed, 47 insertions(+), 21 deletions(-) diff --git a/zfs-helpers/comstar b/zfs-helpers

[pve-devel] New Feature: ZFS 'generic' support for LUN management. (Take 3 ; ])

2014-04-12 Thread Pablo Ruiz García
Hello, This is a new version of my ZFS's LUN management code refactor, this time completely removing 'embedded' LunCmd drivers, and adding them as independent perl scripts to pve-storage repo. ZFSPlugin functionality has been tested and it works fine with our one zfs-helper, also, I've tried to

[pve-devel] [PATCH 2/5] Remove now deprecated LunCmd drivers.

2014-04-12 Thread Pablo Ruiz García
Signed-off-by: Pablo Ruiz García --- PVE/Storage/LunCmd/Comstar.pm | 102 --- PVE/Storage/LunCmd/Iet.pm | 478 - PVE/Storage/LunCmd/Istgt.pm | 580 - PVE/Storage/LunCmd/Makefile |5 - PVE/Storage/Makefile

[pve-devel] Refactor: Remove ZFS Plugin's LunCmd drivers in favor of a single helper-based 'generic' support for LUN management.

2014-03-18 Thread Pablo Ruiz García
Hello, This is a followup at my privous attempt at providing generic support of LUN management to ZFS Plugin by using an independent helper script/binary. This patch series refactors current ZFS Plugin, removing support for perl-based LunCmd drivers, and instead provides a generic-way of invokin

[pve-devel] [PATCH 2/2] Remove now deprecated LunCmd drivers.

2014-03-18 Thread Pablo Ruiz García
Signed-off-by: Pablo Ruiz García --- PVE/Storage/LunCmd/Comstar.pm | 102 --- PVE/Storage/LunCmd/Iet.pm | 478 - PVE/Storage/LunCmd/Istgt.pm | 580 - PVE/Storage/LunCmd/Makefile |5 - PVE/Storage/Makefile

[pve-devel] [PATCH 1/2] This patch refactors ZFS's LUN management code, removing the existing LunCmds implementations, in favor of a single lun management infraestructure which just invokes a 'managem

2014-03-18 Thread Pablo Ruiz García
return the given ZVOL/LUN's number. This actual commands are modelled after the ones invoked by Comstar's LunCmd perl module, which even if it maybe a bit too coupled to Comstar's/Solaris' way of doing things. It seems to be flexible enough as to be usefull for other implementati

[pve-devel] [PATCH 1/2] Added a new 'generic' LUN management driver to ZFS Plugin. This patch introduces a 'generic' LUN management driver which just invokes an independent 'management helper' (which

2014-02-22 Thread Pablo Ruiz García
ich even if it maybe a bit too coupled to Comstar's/Solaris' way of doing things. It seems to be flexible enough as to be usefull for other implementations (as there are already one for Iet and one for BSD's Istgt). Signed-off-by: Pablo Ruiz García --- PVE/Storage/LunCmd/Ge

[pve-devel] [PATCH 2/2] Improve parsing of zfs volumes (ZVOLs) in order to avoid filtering of zvols nested under another ZFS dataset.

2014-02-22 Thread Pablo Ruiz García
flexibility of zfs/zvol's management. Signed-off-by: Pablo Ruiz García --- PVE/Storage/ZFSPlugin.pm | 27 +-- 1 files changed, 13 insertions(+), 14 deletions(-) diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm index e89b131..873d67a 100644 ---

[pve-devel] New Feature: ZFS 'generic' support for LUN management

2014-02-22 Thread Pablo Ruiz García
Hello, Our iSCSI/ZFS infraestructure is somewhat specific to our environment, and I felt like adding a driver just for us was of no use for proxmox folks, nor for the community at large, so I've opted for an alternative way by introducing a 'generic' LUN management driver which just invokes an ind