[pve-devel] activate/deactivate volume

Michael Rasmussen mir at datanom.net
Sun Oct 23 23:57:35 CEST 2016


Hi all,

The following procedures is what I use to handle activating and
deactivating LXC volumes. The procedures works as intended but maybe I
have forgotten something?

Procedure for activating a LXC volume:

if session does not exist
	login to target
	deactivate all luns in session
get list of active luns
get lun number to activate
make list of our luns (active + new lun)
rescan session
deactivate all luns except our luns

Procedure for deactivating a LXC volume:

if session exists
	get lun number to deactivate
	deactivate lun


-- 
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:
Bore, n.:
	A person who talks when you wish him to listen.
		-- Ambrose Bierce, "The Devil's Dictionary"
-------------- 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/20161023/c422e9c7/attachment.sig>


More information about the pve-devel mailing list