Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Applications > Global File System (GFS) > Issue <<  19 of 71 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 9976
Last update: 02-07-07
Issue:
Why am I getting a "Permission Denied" error when I attempt to mount my Global File System as root?
Resolution:

Release found:Red Hat Enterprise Linux 4

Resolution:
One possible problem is that the cluster name does not match the GFS name. This will be evident by messages, such as the following, appearing in the /var/log/messages file on one of the nodes:

myHostName kernel: lock_dlm: cman cluster name "alpha_cluster" does not match file system cluster name "cluster_mod"
The name of the cluster is specified in the /etc/cluster/cluster.conf file in this line:
<cluster config_version="9" name="alpha_cluster"></cluster>
The name of the GFS is specified when the file system is created:
gfs_mkfs -p lock_dlm -t cluster1:gfsLogVol -j 3 /dev/vg0/gfslv


Note: In this case it would be "cluster1". It is also available by examining the GFS superblock via the "gfs_tool sb /dev/<Path To GFS Device> table" command. For example:

# gfs_tool sb /dev/mapper/vgroup0-gfslv table
current lock table name = "cluster_mod:gfslv"

The name of the cluster and GFS MUST match. The cluster can be renamed by editing the /etc/cluster/cluster.conf file or using system-config-cluster, propagating the file to each node and restarting the cluster. Alternately, the GFS can be renamed via the "gfs_tool sb /dev/<Path To GFS Device> table ClusterName:GFSLogVol" command. For example:
# gfs_tool sb /dev/mapper/vgroup0-gfslv table alpha_cluster:gfslv
You shouldn't change any of these values if the filesystem is mounted.

Are you sure? [y/n] y

current lock table name = "cluster_mod:gfslv"
new lock table name = "alpha_cluster:gfslv"

Done

Once the lock table name matches the cluster name, the GFS partition should no longer give the "Permission Denied" errors when attempting to mount it.

Note: Changing the name of the filesystem may have adverse effects on other cluster node members attempting to mount the GFS filesystem.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Applications > Global File System (GFS) > Issue <<   19  of  71  >>