I've tried searching for this but I'm not sure if I'm wording it right.
I have a single physical server I want to use as iSCSI target. I have two volume groups but I want each volume group to only be available on a specific subnet by iSCSI. So for example, vg_1 is available on vlan_1 and vg_2 is available on vlan_2. I'm using Centos 7.9 for host OS with two Intel 10G X550T.
How do I bind, or more precisely where can I find how to bind the two different iSCSI nodes or IQNs to the different NICs? Is it possible? Is it advisable? Thank you.
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
Edit: Yes I didn't create the volume groups with LVM and just left the block devices (RAID 6 arrays) as is.