Hello, I set up a Debian 9, with a Linux kernel 4.12.10 but is also happens with the stock kernel. I have two qlogic fc HBAs in target mode. I have two alua groups, one active/optimized the other standby. When I reboot 12 ESX Servers. the 'standby' alua group switches to 'active optimized'. I can set it back manually to 'standby' but I wonder why that happens and what I can do to keep it as standby. Here is my configuration: (debian) [~] /root/venv-targetcli/bin/targetcli /bin/targetcli targetcli shell version 2.1.fb47 Copyright 2011-2013 by Datera, Inc and others. For help on commands, type 'help'. /> ls o- / ......................................................................................................................... [...] o- backstores .............................................................................................................. [...] | o- block .................................................................................................. [Storage Objects: 0] | o- fileio ................................................................................................. [Storage Objects: 1] | | o- vol1 ................................................................................ [/vol1 (5.0GiB) write-back activated] | | o- alua ................................................................................................... [ALUA Groups: 2] | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized] | | o- standby ................................................................................ [ALUA state: Active/optimized] | o- pscsi .................................................................................................. [Storage Objects: 0] | o- ramdisk ................................................................................................ [Storage Objects: 0] o- iscsi ............................................................................................................ [Targets: 0] o- loopback ......................................................................................................... [Targets: 0] o- qla2xxx .......................................................................................................... [Targets: 2] | o- naa.2100001b3297ecee ............................................................................................. [gen-acls] | | o- acls ........................................................................................................... [ACLs: 24] | | | o- naa.100000fd45494d39 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd45494d41 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd45494d59 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd45494d61 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd45494dd9 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd45494de1 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd45494df9 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd45494e01 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd45495d19 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd45495d21 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd45498c69 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd45498c71 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd4549bcd9 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd4549bce1 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd4549bcf9 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd4549bd01 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd4549cc89 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd4549cc91 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd4549eca9 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd4549ecb1 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd4549ecf9 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd4549ed01 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd454a62b9 ................................................................................... [Mapped LUNs: 1] | | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | | o- naa.100000fd454a62c1 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- luns ............................................................................................................ [LUNs: 1] | | o- lun1 .................................................................................... [fileio/vol1 (/vol1) (standby)] | o- naa.500143800630fb38 ............................................................................................. [gen-acls] | o- acls ........................................................................................................... [ACLs: 24] | | o- naa.100000fd45494d39 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd45494d41 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd45494d59 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd45494d61 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd45494dd9 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd45494de1 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd45494df9 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd45494e01 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd45495d19 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd45495d21 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd45498c69 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd45498c71 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd4549bcd9 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd4549bce1 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd4549bcf9 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd4549bd01 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd4549cc89 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd4549cc91 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd4549eca9 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd4549ecb1 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd4549ecf9 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd4549ed01 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd454a62b9 ................................................................................... [Mapped LUNs: 1] | | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | | o- naa.100000fd454a62c1 ................................................................................... [Mapped LUNs: 1] | | o- mapped_lun1 ................................................................................... [lun1 fileio/vol1 (rw)] | o- luns ............................................................................................................ [LUNs: 1] | o- lun1 ........................................................................... [fileio/vol1 (/vol1) (default_tg_pt_gp)] o- vhost ............................................................................................................ [Targets: 0] o- xen_pvscsi ....................................................................................................... [Targets: 0] /> I do the following to set it to standby: /> cd /backstores/fileio/vol1/alua/ /backstores/fileio/vol1/alua> ls o- alua ........................................................................................................... [ALUA Groups: 2] o- default_tg_pt_gp ............................................................................... [ALUA state: Active/optimized] o- standby ........................................................................................ [ALUA state: Active/optimized] /backstores/fileio/vol1/alua> cd standby /backstores/f.../alua/standby> ls o- standby .......................................................................................... [ALUA state: Active/optimized] /backstores/f.../alua/standby> set alua alua_access_state=2 Parameter alua_access_state is now '2'. /backstores/f.../alua/standby> cd .. /backstores/fileio/vol1/alua> ls o- alua ........................................................................................................... [ALUA Groups: 2] o- default_tg_pt_gp ............................................................................... [ALUA state: Active/optimized] o- standby ................................................................................................. [ALUA state: Standby] /backstores/fileio/vol1/alua> exit Global pref auto_save_on_exit=true Last 10 configs saved in /etc/target/backup. Configuration saved to /etc/target/saveconfig.json 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