From: Marc G. <gr...@at...> - 2009-05-11 19:52:36
|
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/ |