[pve-devel] LXC volumes on ZFS over iSCSI

Michael Rasmussen mir at datanom.net
Mon Oct 10 21:31:51 CEST 2016


On Mon, 10 Oct 2016 22:12:56 +0300
Dmitry Petuhov <mityapetuhov at gmail.com> wrote:

> We could rework iscsi-manipulation code into another behavior. For exmaple, Dell PS-series SAN exports each volume in separate target, lun 0. So we can login into this target in activate_volume() and logout in deactivate_volume(). See my plugin for these storages: https://github.com/mityarzn/pve-storage-custom-dellps
> Also, there's note about bug in debian's multipath-tools in plugin's README.
> 
> That way we can have LUNs only on hosts, where they're needed. Except some cases where PVE does not call deactivate_volume() for some reason (I think these are bugs?).
> 
I think this is bad hack. A target for each Lun will mean 100's or even
1000's of targets. I am quit convinced that my idea can be implemented
and I think that is, IMHO a much more clean solution.

My solution:
Create:
  New volume
  New lun

Start/activate:
  New view
  Foreach node:
    iscsiadm --session --rescan

stop/deactivate:
  Remove view
  Foreach node:
    echo 1 > /sys/bus/scsi/devices/${H:B:T:L}/delete (Where H = host:B
= bus:T = target:L = lun)  

Remove:
  Delete Lun
  Delete volume

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
/usr/games/fortune -es says:
Talkers are no good doers.
		-- William Shakespeare, "Henry VI"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20161010/e2fa0d7b/attachment.sig>


More information about the pve-devel mailing list