Hiho, Thank you for your help
I got the tool ( I think it came with the pacemaker-package) from http://download.opensuse.org/repositories/server:/ha-clustering/RHEL_5/i386/pacemaker-heartbeat-0.6.1-5.3.i386.rpm With the -c-Flag now the next error occurred: # /usr/lib/heartbeat/haresources2cib.py -c /etc/ha.d/ha.cf /etc/ha.d/haresources can not parse this line:noderz Traceback (most recent call last): File "/usr/lib/heartbeat/haresources2cib.py", line 514, in ? cib_file = open(target_file, "w") IOError: [Errno 2] No such file or directory: '@HA_VARLIBHBDIR@/crm/cib.xml' But this time I went into the sourcecode and replaced the variable placeholders with the static directory /usr/lib/heartbeat. After that change, the script worked. It created a cib.xml, but again stopped at an error: can not parse this line:noderz There is only one "noderz" in my ha.cf and this is in the "node"-line, where I declare the nodes, that belong to the cluster. *grml* I'm looking forward to have a working CIB-file soon ;) Greetings Florian -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Dejan Muhamedagic Gesendet: Mittwoch, 13. Februar 2008 15:27 An: General Linux-HA mailing list Betreff: Re: [Linux-HA] haresources2cib.py-error Hi, On Wed, Feb 13, 2008 at 02:57:59PM +0100, Schmidt, Florian wrote: > Hello again, > > i just wanted to try to convert my V1-haresource into the V2-cib.xml via the > python-tool, but an error occurred. > I'm not Linux-Specialist enough, to correct the error myself, so could > anyone tell me, what to do? > > > # /usr/lib/heartbeat/haresources2cib.py /etc/ha.d/haresources > Traceback (most recent call last): > File "/usr/lib/heartbeat/haresources2cib.py", line 451, in ? > config = open(config_file, "r").readlines() > IOError: [Errno 2] No such file or directory: '@HA_HBCONF_DIR@/ha.cf' The tool was not configured properly. @HA_HBCONF_DIR@ should've been replaced with /etc/ha.d. Don't know where did you get it from. As a quick workaround, you can specify the ha.cf using -c: # /usr/lib/heartbeat/haresources2cib.py -c /etc/ha.d/ha.cf /etc/ha.d/haresources Thanks, Dejan > > PS: I do have a ha.cf in /etc/ha.d/ -directory, but it seems like the tool > doesn't find it?!? > > Thanks a lot > > Regards > > Florian Schmidt > > altro consult Deutschland GmbH > GB IT-Services > Mittelbacher Strasse 3 > 09224 Chemnitz > Germany > Tel. +49 371 88 17016 > Fax +49 371 88 17460 > E-Mail [EMAIL PROTECTED] > web www.altroconsult.de > Special Expertise Partner SAP for HCM > > -----Urspr?ngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Andrew Beekhof > Gesendet: Mittwoch, 13. Februar 2008 09:10 > An: General Linux-HA mailing list > Betreff: Re: AW: [Linux-HA] Disadvantages when configuring Heartbeat V2 like > V1 > > > On Feb 12, 2008, at 5:45 PM, Schmidt, Florian wrote: > > > Hi, > > > > I already read about this script, but cannot find it in the directory. > > Maybe the .rpms I installed didn't include this? > > > > rpm -qa | grep heart: > > > > heartbeat-resources-2.1.3-12.1 > > heartbeat-2.1.3-12.1 > > heartbeat-common-2.1.3-12.1 > > ok, they're the packages from the build-service... make sure you also > get the Pacemaker package too (the CRM has been spun-off and is now > maintained as Pacemaker) > > > I wanted to try updating to a newer version, but noticed, that it IS > > the newest version, referring to http://linux-ha.org/download/index.html > > . > > > > I'll now try another source for the files and reinstall them. > > > > Some other ideas, where this script could be? O_o ;) > > the script is bundled with the pacemaker package (since it's of no use > if you're running a v1 cluster without pacemaker) > > > > > > > Regards, > > > > Florian Schmidt > > > > altro consult Deutschland GmbH > > GB IT-Services > > Mittelbacher Strasse 3 > > 09224 Chemnitz > > Germany > > Tel. +49 371 88 17016 > > Fax +49 371 88 17460 > > E-Mail [EMAIL PROTECTED] > > web www.altroconsult.de > > Special Expertise Partner SAP for HCM > > > > -----Urspr?ngliche Nachricht----- > > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > ] Im Auftrag von Miroslav Strugarevic > > Gesendet: Dienstag, 12. Februar 2008 16:49 > > An: General Linux-HA mailing list > > Betreff: Re: [Linux-HA] Disadvantages when configuring Heartbeat V2 > > like V1 > > > > On Feb 12, 2008 4:07 PM, Schmidt, Florian > > <[EMAIL PROTECTED]> wrote: > >> > >> Hi eyeryone, > >> > >> I do have Heartbeat V2 installed and wanted (because I have V2 so > >> configure it with V2-tools) ("crm yes")). But it's much harder to > >> understand the V2-configuration with its cib.xml and all the > >> concepts. > >> > >> So are there any disadvantages when using the V1-configuration with a > >> Heartbeat V2? > > > > Hi, > > > > you could use this script to convert V1 to V2 style. > > > > # /usr/lib/heartbeat/haresources2cib.py /etc/ha.d/haresources > > > > This script will create V2 config file /var/lib/heartbeat/crm/cib.xml > > (Then you could use hbclient or hb_gui to modified cluster settings). > > > > Good luck! > > > >> We only want to make some services high-available (FTP etc.) in a > >> cluster with two nodes and mirror some filesystems to the active node > >> via DRBD. > >> > >> Tanks for answers :) > >> > >> Flori > >> > >> _______________________________________________ > >> Linux-HA mailing list > >> [email protected] > >> http://lists.linux-ha.org/mailman/listinfo/linux-ha > >> See also: http://linux-ha.org/ReportingProblems > >> > > _______________________________________________ > > Linux-HA mailing list > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems > > _______________________________________________ > > Linux-HA mailin > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
