Red Hat Bugzilla – Bug 151081
redhat-config-cluster clobbers /etc/cluster.xml symlink
Last modified: 2009-04-16 16:07:10 EDT
Description of problem: redhat-config-cluster does not follow symlinks when
Version-Release number of selected component (if applicable): 1.0.3-1
How reproducible: Move cluster.xml to another location, and symlink to
/etc/cluster.xml. Modify with redhat-config-cluster. The symlink will be
replaced with a new, regular file, and the target will be unmodified.
Steps to Reproduce:
1. cp /etc/cluster.xml /shared/filesystem/
2. ln -sf /shared/filesystem/cluster.xml /etc/
3. redhat-config-cluster # alter config slightly
4. ls -l /etc/cluster.xml
-rw------- 1 root root 1761 Mar 14 11:33 /etc/cluster.xml
Symlink to desired location of cluster.xml is replaced by a regular file
containing the new configuration.
Target of symlink is replaced by regular file containing the new configuration.
Since all my cluster members are also part of a GFS cluster, it would be
convenient to place a shared cluster.xml on a shared file system, and let
/etc/cluster.xml be a symlink. I am doing this with several other configuration
files successfully, but this unfortunate behavior of redhat-config-cluster
defeats my strategy. Please fix in a future version.
Fixed in U6 candidate build 1.0.8-1.0
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.