[Linux-HA] ISCSI Target (tgtd) & heartbeat
ebannister at acsacc.com
Mon Jan 26 09:13:47 MST 2009
Thank you Dr. Schwartzkopff,
I should have initially been more clear in regards to this. And for that, I
apologize. When it comes to scripting, I'm rather new myself. However, I
have learned much and have tweaked out my script. I now have a working RA
for tgtd. But it is the minimum for what it needs to run. It is also not
universal. Here is a copy of the latest script that I have created ->
http://www.nabble.com/file/p21668200/tgtd tgtd script . It is missing
parameters that will allow this script to be universal. An associate of
mine as well as myself will be diligently working on this script and
perfecting it over the course of the next few weeks.
For more clarification, there are actually three packages that you can use
for iSCSI. There is Open-iSCSI, iSCSI Enterprise Target, and Linux Target
Framework (tgt). We are using Linux Target Framework (tgt). Here is a site
that may give you a little more insight ->
Unfortunately, we are stuck using the Linux Target Framework. I have been
told before I was involved with this project that CentOS has this as a
standard, although it is in fact possible to compile another package.
And in regards to your question about DRBD? We are using it to replicate
the data between the two targets (only) and we will be using heartbeat to
monitor and control the nodes. Ideally, that is how we would like things to
Once again, thank you for all your help. I hope to learn much from you and
many others on this forum.
Michael Schwartzkopff wrote:
> Am Freitag, 16. Januar 2009 16:11:22 schrieb Ethan Bannister:
>> I am rather new to Linux-HA, however I find that I have a good
>> understanding of the concepts.
>> I am attempting to create a two-node SAN cluster. There each node will
>> contain a target and and initiator. The data that is stored on node 1
>> replicate to node 2.
> Why don't you use DRBD for replication?
>> I would like to have heartbeat monitor and control
>> the daemons that run on all the machines. At this point, I am only
>> about getting the iscsi target daemon to work with heartbeat. From my
>> research, I have found that there are two different types of framework.
>> Open ISCSI and ISCSI Target (tgtd).
> As far as I know openscsi does only privode a initiator. Please correct me
> I am wrong. Is the iscsi target this project:
> This software is quite stable and runs with Linux-HA.
>> I am using ISCSI target which means
>> that I need to create my own tgtd resource agent because there is not one
>> that comes with the package (unless anyone is willing to donate a
> You can take the LSB init script. Please be sute that the script provided
> the project REALLY conforms to the LSB. See:
>> So this is where my problem comes in. I'm rather new to scripting,
>> and I have pieced together what looks like a working script. But when I
>> test it out using ocf-tester, it comes up with errors. I ran the script
>> the shell to see if the syntax was wrong in any way, but it's not. This
>> what happens when I try to test the file using ocf-tester:
>> $ ocf-tester -n tgtd /usr/lib/ocf/resource.d/acs/tgtd
>> Beginning tests for /usr/lib/ocf/resource.d/acs/tgtd...
>> * rc=2: The meta-data action cannot fail and must return 0
> What is unclear here? Just return "0" in the script.
>> * rc=2: Validation failed. Did you supply enough options with -o ?
>> Aborting tests
> Same here. Needs arguments.
>> I should also add that I tested out the XML data from the agent/script in
>> Firefox to tell me if I had any syntax errors and it appears to be fine
>> I have attached the RA script here. -->
>> http://www.nabble.com/file/p21465186/tgtd RA for ISCSI Target daemon
> See the Dummy RA for a sample and build your own based on that one. You
> can copy and paste the important parts from the LSB script, provided it
> with a proper license (i.e. GPL).
>> Ultimately, I would like it to work so I can use it. But also so I can
>> tweak it out and submit it for the use of others. But for right now, I'd
>> be satisfied if it just worked.
>> Thanks for any help you can bring me!
> Anyway. It would be interesting to have a good working OCF RA for iSCSI
> target. Please go on and post your final result. I am sure it will be
> in the project.
> Dr. Michael Schwartzkopff
> MultiNET Services GmbH
> Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
> Tel: +49 - 89 - 45 69 11 0
> Fax: +49 - 89 - 45 69 11 21
> mob: +49 - 174 - 343 28 75
> mail: misch at multinet.de
> web: www.multinet.de
> Sitz der Gesellschaft: 85630 Grasbrunn
> Registergericht: Amtsgericht München HRB 114375
> Geschäftsführer: Günter Jurgeneit, Hubert Martens
> PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
> Skype: misch42
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> See also: http://linux-ha.org/ReportingProblems
View this message in context: http://www.nabble.com/ISCSI-Target-%28tgtd%29---heartbeat-tp21465186p21668200.html
Sent from the Linux-HA mailing list archive at Nabble.com.
More information about the Linux-HA