Hello, * Thomas Glanzmann <thomas@xxxxxxxxxxxx> [2017-08-17 20:47]: > So what is the best way under Debian 9 strech to create a second alua group, > set it to standby and set one of the two tpgs to the new alua group while > removing it from the default group? the current version of targetcli does not run on Debian 9. The fastest way to obtain the same is to install fedora server. There is a pretty recent version of targetcli which supports alua. In order to do the setup the following commands need to be executed: # create a standby alua group cd /backstores/fileio/shared-01.v102.tuvl.de/alua/ create standby tag=1 set alua alua_access_state=2 # Assign one LUn the standby alua group: cd /iscsi/iqn.2013-03.de.tuvl.v102.storage:shared-01.v102.tuvl.de/tpg2/luns/lun10 set alua alua_tg_pt_gp_name=standby Afterwards it looks like that: /> ls o- / ......................................................................................................................... [...] o- backstores .............................................................................................................. [...] | o- block .................................................................................................. [Storage Objects: 0] | o- fileio ................................................................................................. [Storage Objects: 1] | | o- shared-01.v102.tuvl.de .................................... [/iscsi1/shared-01.v102.tuvl.de (10.0GiB) write-back activated] | | o- alua ................................................................................................... [ALUA Groups: 2] | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized] | | o- standby ......................................................................................... [ALUA state: Standby] | o- pscsi .................................................................................................. [Storage Objects: 0] | o- ramdisk ................................................................................................ [Storage Objects: 0] o- iscsi ............................................................................................................ [Targets: 1] | o- iqn.2013-03.de.tuvl.v102.storage:shared-01.v102.tuvl.de ........................................................... [TPGs: 2] | o- tpg1 .................................................................................................. [gen-acls, no-auth] | | o- acls .......................................................................................................... [ACLs: 0] | | o- luns .......................................................................................................... [LUNs: 1] | | | o- lun10 ............................. [fileio/shared-01.v102.tuvl.de (/iscsi1/shared-01.v102.tuvl.de) (default_tg_pt_gp)] | | o- portals .................................................................................................... [Portals: 1] | | o- 10.102.227.143:3260 .............................................................................................. [OK] | o- tpg2 .................................................................................................. [gen-acls, no-auth] | o- acls .......................................................................................................... [ACLs: 0] | o- luns .......................................................................................................... [LUNs: 1] | | o- lun10 ...................................... [fileio/shared-01.v102.tuvl.de (/iscsi1/shared-01.v102.tuvl.de) (standby)] | o- portals .................................................................................................... [Portals: 1] | o- 10.102.2.0:3260 .................................................................................................. [OK] o- loopback ......................................................................................................... [Targets: 0] o- vhost ............................................................................................................ [Targets: 0] The ESX server reflects the same. I found no documentation on this, is there any? Cheers, Thomas -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html