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.
Yes indeed, that worked!
For the record, my ietd.conf
Target iqn.2007-04.nl.pcextreme:ha
Lun 0 Path=/dev/data/lun0,Type=fileio,ScsiId=nWFKhBCMq56JfSzq
Lun 1 Path=/dev/data/lun1,Type=fileio,ScsiId=wrOhZ1hVFANuQOJM
Lun 2 Path=/dev/data/lun2,Type=fileio,ScsiId=pW8e21PNf7WR2FDh
-
Met vriendelijke groet,
Wido den Hollander
Hoofd Systeembeheer / CSO
Telefoon Support Nederland: 0900 9633 (45 cpm)
Telefoon Support België: 0900 70312 (45 cpm)
Telefoon Direct: (+31) (0)20 50 60 104
Fax: +31 (0)20 50 60 111
E-mail: sup...@pcextreme.nl
Website: http://www.pcextreme.nl
Kennisbank: http://support.pcextreme.nl/
Netwerkstatus: http://nmc.pcextreme.nl
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "open-iscsi" group.
> To post to this group, send email to open-...@googlegroups.com
> To unsubscribe from this group, send email to open-iscsi+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/open-iscsi
> -~----------~----~----~----~------~----~------~--~---
>
I strongly recommend you to use a primary/standby setup + heartbeat
when using dm-multipath instead of a primary/primary setup. With the
latter setup you risk to run into data corruption. See also
http://lkml.org/lkml/2009/4/13/80.
Bart.
At the moment this is only a proof of concept wich seems to be working
fine.
I had some thoughts about it:
* The iSCSI target should not run in Write-Back mode
* DRBD should run in synchronus mode (protocol C)
* I should use the failover policy with dm-multipath instead of
round-robin.
I got this setup working last night and i started bonnie++ on a lun wich
is still running with no errors yet, but ofcourse this should be tested
me thurough.
As far as my knowlegde goes, this setup should be working as long as i
don't start using clustered filesystems since these is only one
initiator writing to the LUN?
And again, i am only testing this setup, my production envirioment will
stick to the Primary/Standby situation with heartbeat.
-
Met vriendelijke groet,
Wido den Hollander
Hoofd Systeembeheer / CSO
Telefoon Support Nederland: 0900 9633 (45 cpm)
Telefoon Support België: 0900 70312 (45 cpm)
Telefoon Direct: (+31) (0)20 50 60 104
Fax: +31 (0)20 50 60 111
E-mail: sup...@pcextreme.nl
Website: http://www.pcextreme.nl
Kennisbank: http://support.pcextreme.nl/
Netwerkstatus: http://nmc.pcextreme.nl