LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   rhel5 - lucci - cluster - problem (https://www.linuxquestions.org/questions/linux-enterprise-47/rhel5-lucci-cluster-problem-610877/)

mjanota 01-03-2008 12:29 PM

rhel5 - lucci - cluster - problem
 
Hi everybody,

I am working on a Linux cluster. I am a beginner and can't jump over one thing.

I am using rh5 with ricci and lucci. Have two nodes and I try to configure a cluster. I have the following error trying to create a cluster on a node:

******
Unable to add the key for node 172.21.35.101 to the trusted key list.
Unable to connect to 172.21.35.101: Error setting up SSL connection to 172.21.35.101
******

The other server's IP is 172.21.35.100. I have two network cards in each one. they are joined with cross-over and thru the network.

If anybody could help I would appreciate it much.
Thanks
Mirek

brianmcgee 01-03-2008 02:02 PM

You need to configure SSL on your webserver to configure the cluser with lucci. However I would recommend to edit /etc/cluster/cluster.conf manually (system-config-cluster may be used to get a sample clustger.conf). You will certainly learn a lot more and it is easier to get help on the net as you are able to describe your configuration steps with more detail.

mjanota 01-03-2008 03:04 PM

Thank you for your reply !

I was using system-config-cluster before, but problem was similar it said "the other" node is not a part of the cluster or something similar.
I would appreciate a step by step advice or simple files or whatever please.

thank you
Mirek

Quote:

Originally Posted by brianmcgee (Post 3010151)
You need to configure SSL on your webserver to configure the cluser with lucci. However I would recommend to edit /etc/cluster/cluster.conf manually (system-config-cluster may be used to get a sample clustger.conf). You will certainly learn a lot more and it is easier to get help on the net as you are able to describe your configuration steps with more detail.


brianmcgee 01-03-2008 06:34 PM

Each node needs an entry in /etc/hosts. The hostname must be identical to the nodename in /etc/cluster.conf.
Code:

172.16.40.50  node01
172.16.40.51  node02

You need to create the /etc/yum.repos.d/csgfs.repo file:
Code:

[csgfs]
name=CentOS-5 - CSGFS
baseurl=http://mirror.centos.org/centos/$releasever/csgfs/$basearch/
gpgcheck=1
enabled=1

The following packages need to be installed on all nodes:
Code:

# yum install cman gfs-utils kmod-gfs lvm2-cluster
lvm2 clustering needs to be enabled
Code:

lvmconf --enable-cluster
For a beginning, the following /etc/cluster.conf may be used:
Code:

<?xml version="1.0"?>
<cluster config_version="1" name="atixcluster">
        <cman expected_votes="1" two_node="1"/>
        <fence_daemon clean_start="1" post_fail_delay="0" post_join_delay="3"/>
        <clusternodes>
                <clusternode name="node01" votes="1" nodeid="1">
                        <fence>
                                <method name="1">
                                </method>
                        </fence>
                </clusternode>
        <clusternode name="node02" votes="1" nodeid="2">
                        <fence>
                                <method name="1">
                                </method>
                        </fence>
                </clusternode>
        </clusternodes>
  <cman/>
  <fencedevices/>
  <rm>
          <failoverdomains/>
          <resources/>
  </rm>
</cluster>

Please note that you must configure a valid fencing method for productive use. The default method "Fence manual" is only suitable for first tests.

Also be aware that this is a special two node configuration.

It is better to include a third node or a quorum device to get another vote and to further avoid any split brain issues.

Now you may start your cluster:
Code:

# /etc/init.d/ccsd start
# /etc/init.d/cman start
# /etc/init.d/fenced start

Now you may create your first GFS volume:
Code:

# pvcreate /dev/sdx
# vgcreate vg_gfs /dev/sdx
# lvcreate lvcreate -l $(vgdisplay vg_gfs | grep "Total PE" | cut -d " " -f18-) -n lv_gfs vg_gfs
# gfs_mkfs -j 3 -t atixcluster:lv_gfs -p lock_dlm /dev/vg_gfs/lv_gfs

Have fun...

brianmcgee 01-03-2008 06:35 PM

Doublepost

mjanota 01-04-2008 07:10 AM

Thanks Brian,

I'll work on that ASAP and let you know how it looks like. Just one question: I am using RedHat5 and you suggest to enter CentOS line in /etc/yum.repos.d/csgfs.repo file, ist that correct ?

Mirek

brianmcgee 01-05-2008 01:52 AM

If you use RHEL 5 you need an active subscription to Red Hat Network with the additional GFS and Cluster Suite channels registered for your machine.


All times are GMT -5. The time now is 04:19 AM.