Help with gfs/fencing/gnbd
Hey smart people, was hoping someone could help me out here. I am more of a programmer but can get around debian/centos systems.
I'm trying to put together a simple 2 node attaching to a shared gfs directory from a 3rd server.
1U 1U
| |
| |
|
4U
Ok, I've read and read and I get confused on the more I read. I installed CentOS on all 3 machines. Added "Cluster Storage" and "Clustering" on all 3. Fired up Luci and created a cluster with all 3 servers.
So far so good right?
[root@db1 ~]# cman_tool nodes
Node Sts Inc Joined Name
1 M 812 2010-01-25 16:15:15 infa2.mydomain.com
2 M 792 2010-01-25 16:02:35 db1.mydomain.com
3 M 808 2010-01-25 16:13:35 infa1.mydomain.com
Now, I have 2 problems.
1. If I perform a service cman restart, it says "Stopping fencing" and never comes back until I hit control C. (even does this on boot up) So, basically, I'm trying to figure out how I set up fencing on these 3 servers. This is just a test lab for me so I don't have APC remote rebooters/ipmi cards. I will post my cluster.conf at the end for comments in how I can set up the fencing.
2. As I understand it, once I get the cluster going, I create my pg, vg and lv:
LV Name /dev/infa/infa_lv
VG Name infa
LV Size 273.00 GB
now, I start gnbd_serv and export the filesystem:
gnbd_export -d /dev/infa/infa_lv -e infa_gfs
as that seemed to have worked.
Now, in my 2 nodes, I import them:
gnbd_import -i db1.ayont.com
Now, if I try to mount it:
mount.gfs2 /dev/gnbd/infa_gfs /storage/
and it just hangs. I see it though:
brw-r--r-- 1 root root 252, 0 Jan 25 16:36 infa_gfs
[root@infa1 gnbd]# pwd
/dev/gnbd
Am I close? Way far off...??? Thanks for any help, pulling my hair out, one at a time.
My cluster.conf file:
<?xml version="1.0"?>
<cluster alias="infa" config_version="4" name="infa">
<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="infa2.ayont.com" nodeid="1" votes="1">
<fence>
<method name="single">
<device name="gnbd" nodename="infa2.ayont.com"/>
</method>
</fence>
</clusternode>
<clusternode name="db1.ayont.com" nodeid="2" votes="1">
<fence/>
</clusternode>
<clusternode name="infa1.ayont.com" nodeid="3" votes="1">
<fence>
<method name="single">
<device name="gnbd" nodename="infa1.ayont.com"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman/>
<fencedevices><fencedevice name="gnbd" agent="fence_gnbd" servers="db1.ayont.com"/></fencedevices>
<rm>
<failoverdomains/>
<resources/>
</rm>
</cluster>
|