Hi Nic, I'm currently trying to simulate an ALUA setup with tcm_loop. What I did was to create one fileio backend two alua target portal groups: target/core/fileio_0 target/core/fileio_0/disk1 target/core/fileio_0/disk1/alua/default_tg_pt_gp # cat target/core/fileio_0/disk1/alua/default_tg_pt_gp/tg_pt_gp_id 0 target/core/fileio_0/disk1/alua/secondary_tg_pt_gp # cat target/core/fileio_0/disk1/alua/secondary_tg_pt_g/tg_pt_gp_id 1 And one tcm_loop HBA with two tgpts: # cat loopback/naa.60014056caf7d8fc/tpgt_0/lun/lun_0/alua_tg_pt_gp TG Port Alias: default_tg_pt_gp TG Port Group ID: 0 TG Port Primary Access State: Standby TG Port Primary Access Status: Altered by Implicit ALUA TG Port Secondary Access State: None TG Port Secondary Access Status: None # cat loopback/naa.60014056caf7d8fc/tpgt_1/lun/lun_0/alua_tg_pt_gp TG Port Alias: secondary_tg_pt_gp TG Port Group ID: 1 TG Port Primary Access State: Active/Optimized TG Port Primary Access Status: Altered by Implicit ALUA TG Port Secondary Access State: None TG Port Secondary Access Status: None REPORT TARGET PORT GROUPS reports this layout correctly: # sg_rtpg /dev/sdb Report target port groups: target port group id : 0x0 , Pref=0 target port group asymmetric access state : 0x02 T_SUP : 1, O_SUP : 1, LBD_SUP : 0, U_SUP : 1, S_SUP : 1, AN_SUP : 1, AO_SUP : 1 status code : 0x02 vendor unique status : 0x00 target port count : 01 Relative target port ids: 0x04 target port group id : 0x1 , Pref=0 target port group asymmetric access state : 0x00 T_SUP : 1, O_SUP : 1, LBD_SUP : 0, U_SUP : 1, S_SUP : 1, AN_SUP : 1, AO_SUP : 1 status code : 0x02 vendor unique status : 0x00 target port count : 01 Relative target port ids: 0x05 But the VPD page 0x83 information is wrong: # sg_vpd -p di /dev/sdb Device Identification VPD page: Addressed logical unit: designator type: NAA, code set: Binary 0x6001405de00000000000000000000000 designator type: T10 vendor identification, code set: ASCII vendor id: LIO-ORG vendor specific: FILEIO:uuidgen designator type: Logical unit group, code set: Binary Logical unit group: 0x0 Target port: designator type: Relative target port, code set: Binary transport: Serial Attached SCSI Protocol (SPL-3) Relative target port: 0x4 designator type: Target port group, code set: Binary transport: Serial Attached SCSI Protocol (SPL-3) Target port group: 0x0 [ .. ] # sg_vpd -p di /dev/sdc Device Identification VPD page: Addressed logical unit: designator type: NAA, code set: Binary 0x6001405de00000000000000000000000 designator type: T10 vendor identification, code set: ASCII vendor id: LIO-ORG vendor specific: FILEIO:uuidgen designator type: Logical unit group, code set: Binary Logical unit group: 0x0 Target port: designator type: Relative target port, code set: Binary transport: Serial Attached SCSI Protocol (SPL-3) Relative target port: 0x4 designator type: Target port group, code set: Binary transport: Serial Attached SCSI Protocol (SPL-3) Target port group: 0x0 IE the second device refers to the information from the _first_ device. I've tried to step through the code, to the number of lists and backreferences got me confused ... But it looks as if core_alua_store_tg_pt_gp_info() does not rearrange all required the information and pointers. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 21284 (AG Nürnberg) -- 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