>>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) I'm afraid of behaviour if a node is not joinable to do the delete or rescan. Seem to be difficult to manage with big cluster. I'm curious to see result of: Start/activate: (PVE::Storage::activate_volume) echo "c t l" > /sys/class/scsi_host/hosth/scan stop/deactivate: (PVE::Storage::deactivate_volume) echo 1 > /sys/bus/scsi/devices/${H:B:T:L}/delete ----- Mail original ----- De: "datanom.net" <m...@datanom.net> À: "pve-devel" <pve-devel@pve.proxmox.com> Envoyé: Lundi 10 Octobre 2016 21:31:51 Objet: Re: [pve-devel] LXC volumes on ZFS over iSCSI On Mon, 10 Oct 2016 22:12:56 +0300 Dmitry Petuhov <mityapetu...@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" _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel