Wido wrote:
> Hello,
> 
> Last night i had the idea of building a multipath iSCSI setup with
> DRBD in Primary/Primary.
> 
> My idea was/is:
> 
> I have two machines with a 30GB partition wich is synced via DRBD (i
> assume everybody here is familiar with DRBD).
> 
> My DRBD is running fine both machines are UpToDate and they are both
> primary.
> 
> On top of /dev/drbd0 i made a LVM VG with the name "data", in this VG
> i created 3 LV's with a size of 5GB.
> 
> For this e-mail i'll call the machines target1, target2 and iscsi-
> initiator
> 
> target1: 192.168.5.199
> target2: 192.168.5.200
> iscsi-initiator: 192.168.5.198
> 
> On both the targets i have created the folling ietd.conf:
> 
> Target iqn.2007-04.nl.pcextreme:ha
>         Lun 0 Path=/dev/data/lun0,Type=fileio
>         Lun 1 Path=/dev/data/lun1,Type=fileio
>         Lun 2 Path=/dev/data/lun2,Type=fileio
> 
> So both targets have the same IQN and i tried to create a multipath
> from the client to both tartgets:
> 
> iscsiadm -m discovery -t sendtargets -p 192.168.5.199
> iscsiadm -m discovery -t sendtargets -p 192.168.5.200
> iscsiadm -m node -T iqn.2007-04.nl.pcextreme:ha -p 192.168.5.199 --
> login
> iscsiadm -m node -T iqn.2007-04.nl.pcextreme:ha -p 192.168.5.200 --
> login
> 
> This works and i get a total of 6 new SCSI devices, but multipath
> won't recognize them as a redundant path:
> 
> r...@iscsi-client:~# multipath -ll
> 149455400000000000000000001000000595800000f000000dm-3 IET     ,VIRTUAL-
> DISK
> [size=5.0G][features=0][hwhandler=0]
> \_ round-robin 0 [prio=1][active]
>  \_ 5:0:0:0 sde 8:64  [active][ready]
> 149455400000000000000000001000000dd3c00000e000000dm-0 IET     ,VIRTUAL-
> DISK
> [size=5.0G][features=0][hwhandler=0]
> \_ round-robin 0 [prio=1][active]
>  \_ 4:0:0:1 sdc 8:32  [active][ready]
> 149455400000000000000000001000000925800000f000000dm-5 IET     ,VIRTUAL-
> DISK
> [size=5.0G][features=0][hwhandler=0]
> \_ round-robin 0 [prio=1][active]
>  \_ 5:0:0:2 sdg 8:96  [active][ready]
> 149455400000000000000000001000000655800000f000000dm-4 IET     ,VIRTUAL-
> DISK
> [size=5.0G][features=0][hwhandler=0]
> \_ round-robin 0 [prio=1][active]
>  \_ 5:0:0:1 sdf 8:80  [active][ready]
> 149455400000000000000000001000000a03c00000e000000dm-1 IET     ,VIRTUAL-
> DISK
> [size=5.0G][features=0][hwhandler=0]
> \_ round-robin 0 [prio=1][active]
>  \_ 4:0:0:0 sdb 8:16  [active][ready]
> 149455400000000000000000001000000193d00000e000000dm-2 IET     ,VIRTUAL-
> DISK
> [size=5.0G][features=0][hwhandler=0]
> \_ round-robin 0 [prio=1][active]
>  \_ 4:0:0:2 sdd 8:48  [active][ready]
> r...@iscsi-client:~#
> 
> Is this a target issue because the "sessions" are not synchronized
> between both targets? Or is this related to Open-iSCSI and multipath?
> 

multipath does not use any iscsi info like targetname or portal to build 
the multipath device. It just uses something like scsi vpd page info.

I think in your ietd.conf you will want to use the ScsiId or ScsiSN 
setting in the Path line.


 > Target iqn.2007-04.nl.pcextreme:ha
 >         Lun 0 Path=/dev/data/lun0,Type=fileio,scsi_id=some-uuid1
 >         Lun 1 Path=/dev/data/lun1,Type=fileio,scsi_id=some-uuid2
 >         Lun 2 Path=/dev/data/lun2,Type=fileio,scsi_id=some-uuid3

Then in the other target box have the scsi_id uuids match up.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to