/sbin/mount.gfs2: waiting for gfs_controld to startAppearently we have to cluster. Gee, it would have been nice if they had included those instructions in the "Prerequisites" section. So... What does it take?
/sbin/mount.gfs2: gfs_controld not running
/sbin/mount.gfs2: error mounting lockproto lock_dlm
I tried the system-config-cluster and didn't get the results I wanted. It wanted one node to be a primary, the other a secondary. I tried hacking cluster.conf, but too many variables (literal and metaphorical). So I built two VMs, attached them to the same LVM, and tried to get GFS to work.
Load packages:
# yum install cman gfs2-utils lvm2-clusterThese seem to be the minimum. There is a bug with Fedora 8, where it won't load unless you do two yum updates first. If you have an x86_64 system, make sure it only loads the 64 bit version. Easy enough.
The heart of the cluster is the non-existent /etc/custer/cluster.conf, which can be generated by several automated tools, all of which are broken. In other words, you absolutely must enter it by hand. Here's what we need:
<?xml version="1.0"?>Again, this is a bare minimum config.
<cluster name="clust" config_version="1">
<cman two_node="1" expected_votes="1">
</cman>
<clusternodes>
<clusternode name="gfs1.terran.lan" votes="1" nodeid="1">
<fence>
<method name="single">
<device name="human" ipaddr="gfs1.terran.lan"/>
</method>
</fence>
</clusternode>
<clusternode name="gfs2.terran.lan" votes="1" nodeid="2">
<fence>
<method name="single">
<device name="human" ipaddr="gfs2.terran.lan"/>
</method>
</fence>
</clusternode>
</clusternodes>
<fence_devices>
<fence_device name="human" agent="fence_manual"/>
</fence_devices>
</cluster>
Now try it:
# service cman startGlory! It started.
Time to mount:
# mount /dev/sdb1 /gfsArrrrrgh! The error message:
/sbin/mount.gfs2: can't connect to gfs_controld: Connection rufused
No entry for lock_dlm_plock foundNo, it is not missing:
Is dlm missing from kernel?
# lsmod | grep dlmOkay, back to the drawing board.
lock_dlm 25449 0
gfs2 489593 1 lock_dlm
dlm 123049 4 lock_dlm
configfs 32617 2 dlm
No comments:
Post a Comment