3 Replies Latest reply: Jul 30, 2012 9:10 AM by 952131 RSS

    CLUSTER "Oracle Linux 6.2" ON Oracle VIRTUAL BOX

    952131
      Hi there, i'm gonna create a Linux cluster on virtual box! can someone give me an advice or a guide to create it?! because i tryed it! but the services doesn't start when i launch the command " clusvcadm -e service_name -m node-name " !!!!!

      here my cluster.conf:


      <?xml version="1.0"?>
      <cluster config_version="61" name="cluster">
           <clusternodes>
                <clusternode name="nodo-1.localdomain" nodeid="1"/>
                <clusternode name="nodo-2.localdomain" nodeid="2"/>
           </clusternodes>
           <cman expected_votes="1" two_node="1"/>
           <rm>
                <failoverdomains>
                     <failoverdomain name="nagios" nofailback="1">
                          <failoverdomainnode name="nodo-1.localdomain"/>
                          <failoverdomainnode name="nodo-2.localdomain"/>
                     </failoverdomain>
                </failoverdomains>
                <resources>
                     <apache config_file="conf/httpd.conf" name="Apache" server_root="/etc/httpd" shutdown_wait="0"/>
                     <script file="/etc/init.d/nagios" name="Nagios"/>
                     <ip address="172.16.1.5/255.255.0.0" sleeptime="10"/>
                     <netfs export="/mnt/nagios" force_unmount="on" fstype="nfs" host="172.16.1.3" mountpoint="/usr/local/nagios" name="nfs_disk" options="rw"/>
                     <script file="/etc/init.d/httpd" name="HTTPD"/>
                </resources>
                <service autostart="0" domain="nagios" max_restarts="3" name="service_nagios" recovery="restart" restart_expire_time="3">
                     <ip ref="172.16.1.5/255.255.0.0">
                          <netfs ref="nfs_disk">
                               <script ref="HTTPD">
                                    <script ref="Nagios"/>
                               </script>
                          </netfs>
                     </ip>
                </service>
           </rm>
      </cluster>
        • 1. Re: CLUSTER "Oracle Linux 6.2" ON Oracle VIRTUAL BOX
          Catch 22
          What you probably really need is a complete guide. Unless you have more luck with Google, it seems the specific guide you are looking for does not exist. You can however find similar guides and try to adapt it.

          If you need to troubleshoot a problem, you will certainly have to provide more info and describe the error rather than just showing your cluster.conf file.
          • 2. Re: CLUSTER "Oracle Linux 6.2" ON Oracle VIRTUAL BOX
            EdStevens
            949128 wrote:
            Hi there, i'm gonna create a Linux cluster on virtual box! can someone give me an advice or a guide to create it?! because i tryed it! but the services doesn't start when i launch the command " clusvcadm -e service_name -m node-name " !!!!!
            <snip>

            You might find this helpful: http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-oracle-linux-6-using-virtualbox.php
            • 3. Re: CLUSTER "Oracle Linux 6.2" ON Oracle VIRTUAL BOX
              952131
              SOLVED IT!!! i did put this string in the file and everything was working fine!:


              <netfs export="/mnt/source_nfs_server" exportpath="/mnt/source_nfs_server" force_unmount="1" fstype="nfs" host="source_nfs_server_IP" mountpoint="/usr/local/destination" name="nfs_nagios" nfstype="nfs" options="rw"/>


              <netfs ref="nfs_nagios"/>



              ;)