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 will
replicate to node 2.  I would like to have heartbeat monitor and control the
daemons that run on all the machines.  At this point, I am only worried
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).  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 universal
one).  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 in
the shell to see if the syntax was wrong in any way, but it's not.  This is
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
* rc=2: Validation failed.  Did you supply enough options with -o ?
Aborting tests

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 as
well.

I have attached the RA script here. --> 
http://www.nabble.com/file/p21465186/tgtd RA for ISCSI Target daemon (tgtd) 

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!
-- 
View this message in context: 
http://www.nabble.com/ISCSI-Target-%28tgtd%29---heartbeat-tp21465186p21465186.html
Sent from the Linux-HA mailing list archive at Nabble.com.

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to