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 will > 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 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). As far as I know openscsi does only privode a initiator. Please correct me if I am wrong. Is the iscsi target this project: http://iscsitarget.sourceforge.net/ 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 universal > one). You can take the LSB init script. Please be sute that the script provided by the project REALLY conforms to the LSB. See: http://www.linux-ha.org/LSBResourceAgent > 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 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 as > well. > > I have attached the RA script here. --> > http://www.nabble.com/file/p21465186/tgtd RA for ISCSI Target daemon (tgtd) See the Dummy RA for a sample and build your own based on that one. You also can copy and paste the important parts from the LSB script, provided it comes 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 included in the project. Greetings, -- 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: [email protected] 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 [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
