From: Stefano E. <ste...@so...> - 2009-05-13 08:51:23
|
Hi Marc, very very thank for your answer.......... I was becoming crazy !!! I tried and now it works. I take advantage of this email to ask for other informations. - It's possible configure two network interfaces of the server in order to have two interfaces Bond, for example bond0.11 and bond0.22, one for communication intra-cluster and the other for the service configured on the cluster ?? - The ip address configured for the service given by the cluster, for my files cluster.conf: <resources> <ip address="10.43.100.204" monitor_link="1"/> <script file="/etc/init.d/httpd" name="httpd"/> </resources> <service autostart="0" domain="failover" name="HTTPD"> <ip ref="10.43.100.204"/> <script ref="httpd"/> </service> I have to configure on a node of the cluster <clusternode name="clu01" votes="1" nodeid="1"> <com_info> <syslog name="clu01"/> <rootvolume name="/dev/sda2" fstype="ocfs2"/> <eth name="eth0" ip="10.43.100.203" mac="00:15:60:56:75:FD"/> <eth name="eth1" ip="10.43.100.204" mac="00:15:60:56:75:FC"/> </com_info> </clusternode> If I want to relocate the service on the node_2 when the node_1 fails, I must also configure the ip (10.43.100.204) in the section <com_info> of the node_2 ?? - It's possible to configure a service, for example httpd, to be active simultaneously on multiple nodes instead of having it running on one node and move it when the node falls ?? Thanks Ing. Stefano Elmopi Gruppo Darco - Area ICT Sistemi Via Ostiense 131/L Corpo B, 00154 Roma cell. 3466147165 tel. 0657060500 email:ste...@so... Il giorno 11/mag/09, alle ore 21:50, Marc Grimme ha scritto: > Hi Stefano, > On Monday 11 May 2009 18:49:44 Stefano Elmopi wrote: >> Hi Marc, >> >> I had read in the guide "Installing and Configuring a Shared Root >> Cluster" >> that you can make the bond with interfaces, I'm trying to do it but I >> am having problems. >> On the server in normal boot, without Open-Shared: >> >> ifconfig >> bond0 Link encap:Ethernet HWaddr 00:15:60:56:75:FD >> inet addr:10.43.100.203 Bcast:10.43.255.255 Mask: >> 255.255.0.0 >> inet6 addr: fe80::215:60ff:fe56:75fd/64 Scope:Link >> UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 >> RX packets:30897 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:332 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:0 >> RX bytes:2688920 (2.5 MiB) TX bytes:38900 (37.9 KiB) >> >> eth0 Link encap:Ethernet HWaddr 00:15:60:56:75:FD >> inet6 addr: fe80::215:60ff:fe56:75fd/64 Scope:Link >> UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 >> RX packets:15657 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:326 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:1000 >> RX bytes:1363172 (1.3 MiB) TX bytes:38408 (37.5 KiB) >> Interrupt:217 >> >> eth1 Link encap:Ethernet HWaddr 00:15:60:56:75:FD >> inet6 addr: fe80::215:60ff:fe56:75fd/64 Scope:Link >> UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 >> RX packets:15240 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:1000 >> RX bytes:1325748 (1.2 MiB) TX bytes:492 (492.0 b) >> Interrupt:225 >> >> >> >> My cluster.conf is: >> >> <?xml version="1.0"?> >> <cluster config_version="5" name="cluOCFS2" type="ocfs2"> >> >> <cman expected_votes="1" two_node="1"/> >> >> <clusternodes> >> >> <clusternode name="clu01" votes="1" nodeid="1"> >> <com_info> >> <syslog name="clu01"/> >> <rootvolume name="/dev/sda2" fstype="ocfs2"/> >> <eth name="eth0" mac="00:15:60:56:75:FD" master=bond0 >> slave=yes/> >> <eth name="eth1" mac="00:15:60:56:75:FC" master=bond0 >> slave=yes/> >> <eth name="bond0" ip="10.43.100.203" >> mask="255.255.0.0"/> >> <fenceackserver user="root" passwd="test123"/> >> </com_info> >> </clusternode> >> >> <clusternode name="clu02" votes="1" nodeid="2"> >> <com_info> >> <syslog name="clu01"/> >> <rootvolume name="/dev/sda2" fstype="ocfs2"/> >> <eth name="eth0" ip="10.43.100.187" >> mac="00:15:60:56:77:11"/> >> <fenceackserver user="root" passwd="test123"/> >> </com_info> >> </clusternode> >> >> <rm log_level="7" log_facility="local4"> >> <failoverdomains> >> <failoverdomain name="failover" ordered="0"> >> <failoverdomainnode name="clu01" >> priority="1"/> >> </failoverdomain> >> </failoverdomains> >> <resources> >> <ip address="10.43.100.203" >> monitor_link="1"/> >> <script file="/etc/init.d/httpd" >> name="httpd"/> >> </resources> >> <service autostart="0" domain="failover" >> name="HTTPD"> >> <ip ref="10.43.100.203"/> >> <script ref="httpd"/> >> </service> >> </rm> >> >> </clusternodes> >> >> </cluster> >> >> when Open-Shared start, it stopped saying that could not validate >> cluster configuration, >> and I can not understand what the parameter of the cluster.conf is >> not >> validated. >> I think that my bond configuration is not correct. >> >> Thanks > Looks good but you missed a tiny little thing. You need to enclose > the xml > attributes with ' or ". Means in line 12: > <eth name="eth0" mac="00:15:60:56:75:FD" master=bond0 slave=yes/> > => > <eth name="eth0" mac="00:15:60:56:75:FD" master="bond0" slave="yes"/> > dito for line 13. > > When I use your cluster.conf I can see it as follows: > [marc@generix3 ~]$ com-queryclusterconf -f /tmp/cluster.conf nodeids > Traceback (most recent call last): > File "/usr/bin/com-queryclusterconf", line 97, in ? > doc = reader.fromStream(file) > File "/usr/lib64/python2.4/site-packages/_xmlplus/dom/ext/reader/ > Sax2.py", > line 372, in fromStream > self.parser.parse(s) > File "/usr/lib64/python2.4/site-packages/_xmlplus/sax/ > expatreader.py", line > 109, in parse > xmlreader.IncrementalParser.parse(self, source) > File "/usr/lib64/python2.4/site-packages/_xmlplus/sax/ > xmlreader.py", line > 123, in parse > self.feed(buffer) > File "/usr/lib64/python2.4/site-packages/_xmlplus/sax/ > expatreader.py", line > 220, in feed > self._err_handler.fatalError(exc) > File "/usr/lib64/python2.4/site-packages/_xmlplus/dom/ext/reader/ > Sax2.py", > line 340, in fatalError > raise exception > xml.sax._exceptions.SAXParseException: <fdopen>:12:62: not well-formed > (invalid token) > when I change line12/13 like said it looks ok: > [marc@generix3 ~]$ com-queryclusterconf -f /tmp/cluster.conf nodeids > 2 1 > > Hope that helps keep going ;-) . > Regards Marc. > > -- > Gruss / Regards, > > Marc Grimme > http://www.atix.de/ http://www.open-sharedroot.org/ > > |