cancel
Showing results for 
Search instead for 
Did you mean: 

GFS configuration

 
ats1
Frequent Advisor

GFS configuration

Hi all,

I have an error message during a GFS creation:

[root@toto /]# mount.gfs2 /dev/dm-10 home01/
mount.gfs2: can't connect to gfs_controld: Connection refused
mount.gfs2: can't connect to gfs_controld: Connection refused
mount.gfs2: can't connect to gfs_controld: Connection refused
mount.gfs2: can't connect to gfs_controld: Connection refused
mount.gfs2: can't connect to gfs_controld: Connection refused
mount.gfs2: can't connect to gfs_controld: Connection refused
mount.gfs2: can't connect to gfs_controld: Connection refused
mount.gfs2: can't connect to gfs_controld: Connection refused
mount.gfs2: can't connect to gfs_controld: Connection refused
mount.gfs2: can't connect to gfs_controld: Connection refused
mount.gfs2: gfs_controld not running
mount.gfs2: error mounting lockproto lock_dlm


i need your assistance please
3 REPLIES
Matti_Kurkela
Honored Contributor

Re: GFS configuration

Perhaps your cluster infrastructure is not running?

Your GFS2 filesystem is configured to use the "lock_dlm" lock protocol. This is required if you want to access the GFS2 filesystem on two or more hosts at the same time. If you want to use GFS2 on a single node only, you could select the dummy "lock_nolock" lock protocol.

To successfully use "lock_dlm", the kernel's DLM subsystem must be up and running, which requires that you must have set up a basic cluster configuration: a cluster with no services defined yet, but with heartbeat and fencing configured and running.

Normally the gfs_controld daemon starts along with other cluster daemons when you run "service cman start". Looks like your cman start-up has not been successful. You should fix that first.

Please show the output of "service cman status".

The outputs of "cman_tool status", "cman_tool nodes" and "cman_tool services" might be useful too.

Here's a technical description of the things that need to happen at GFS/GFS2 filesystem mount time:
http://people.redhat.com/teigland/rhel5-cluster-infrastructure.txt

MK
MK
ats1
Frequent Advisor

Re: GFS configuration

i use ha.cf, haressources and authkeys to configure my cluster with redhat5. i am not use cluster suite.
help me.is it possible to use gfs without lock_dlm? how can i unlock it?
Matti_Kurkela
Honored Contributor

Re: GFS configuration

The files ha.cf, haressources and authkeys are associated with the Linux cluster solution called "Heartbeat", not with the RedHat Cluster Suite. Without the capitalization, "heartbeat" is also a generic cluster concept.

Unfortunately it looks like the Heartbeat cluster infrastructure does not provide the cluster-wide locking services required by GFS or GFS2. It seems to allow for failover-type clusters only.

> is it possible to use gfs without lock_dlm?

No, unless you build your own cluster-wide lock management solution and integrate it with GFS. That would require some very careful programming, and a lot of testing after that.

> how can i unlock it?

You aren't even asking the right question :(

Lock_dlm is not required for the purpose of "unlocking the GFS filesystem", but for _locking_ individual files and certain critical parts of the GFS filesystem whenever one of the cluster members is making changes to them. Without the protection of the locks, another cluster member might try to change the same thing in a different way at the same time, causing filesystem corruption.

Lock_dlm (or some other cluster lock protocol) is an *essential* part of GFS implementation: if you try to use GFS in a cluster without an appropriate cluster lock protocol, the GFS filesystem will get corrupted just like a regular filesystem that is being accessed by two or more hosts simultaneously.

MK
MK