Bind different iscsi nodes on different IP address
Thank you all for the comments. Very helpful. I just created one IQN, then created two TPGs assigning each block device to each TPG then binding the different vlan IP addresses to the respective TPG's portals. Here's the targetcli commands I used
//Create the backstore off block devices
/backstores/block> create name=block_ds1 dev=/dev/sdb
Created block storage object block_ds1 using /dev/sdb.
/backstores/block> create name=block_ds2 dev=/dev/sdc
Created block storage object block_ds2 using /dev/sdc.
//create target
/iscsi> create
Created target
iqn.2003-01.org.linux-iscsi.dsrv26-virstor.x8664:sn.dd4ab7d436a3
Created TPG1
//portal default already created on all addresses. Need to delete so we can bind portal to specific address
/iscsi/iqn.20.../tpg1/portals> delete 0.0.0.0 3260
Deleted network portal 0.0.0.0:3260
/iscsi/iqn.20.../tpg1/portals> create 192.168.253.2
Using default IP port 3260
Created network portal 192.168.253.2:3260.
//create tpg2 and bind portal to ip address
/iscsi/iqn.20....dd4ab7d436a3> create tpg2
Created TPG 2.
Default portal not created, TPGs within a target cannot share ip:port.
/iscsi/iqn.20....dd4ab7d436a3> cd tpg2/portals
/iscsi/iqn.20.../tpg2/portals> create 192.168.254.2
Using default IP port 3260
Created network portal 192.168.254.2:3260.
//create LUNs from block backstores
/iscsi/iqn.20....dd4ab7d436a3> cd tpg1
/iscsi/iqn.20...b7d436a3/tpg1> luns/ create /backstores/block/block_ds1
Created LUN 0.
/iscsi/iqn.20...b7d436a3/tpg1> cd ..
/iscsi/iqn.20....dd4ab7d436a3> cd tpg2
/iscsi/iqn.20...b7d436a3/tpg2> luns/ create /backstores/block/block_ds2
Created LUN 0.
Edit: Yes I didn't create the volume groups with LVM and just left the block devices (RAID 6 arrays) as is.