Operating System - HP-UX
1833758 Members
2652 Online
110063 Solutions
New Discussion

change lcation of /etc/cmcluster

 
SOLVED
Go to solution
anat heilper
Frequent Advisor

change lcation of /etc/cmcluster

Hi,
I want to change the location of /etc/cmcluster files to another location on /usr. How do I do that?
Thanks,
Anat

6 REPLIES 6
Ivan Krastev
Honored Contributor

Re: change lcation of /etc/cmcluster

I don't think if this is possible via configuration.
Only possible is to create symllink in /etc/ name cmcluster which points to /usr/..../


regards,
ivan
anat heilper
Frequent Advisor

Re: change lcation of /etc/cmcluster

Thanks,
could you elaborate more on how to do that?
Secondly, I know that there s cluster.conf file where all the locations are defined, is there a safe way to modify them?
Anat
Gabriel Suchter
Advisor

Re: change lcation of /etc/cmcluster

Hi,

why do you want to change location of SG Cluster files from /etc to /usr?

Gabriel
Kapil Jha
Honored Contributor

Re: change lcation of /etc/cmcluster

Hey the only way is to create a link as said above,but why u want to move files space constraints or what.
You are right when u say
>>is there a safe way to modify them?
Its not a good idea to change location of default files.

BR,
Kapil
I am in this small bowl, I wane see the real world......
John Bigg
Esteemed Contributor
Solution

Re: change lcation of /etc/cmcluster

You cannot change the location of the system files in /etc/cmcluster such as cmclconfig, cfs, cmknowncmds and others depending on the SG release.

However, the cluster ascii file and all package files can be placed anywhere. It's just convention which has led to everyone using /etc/cmcluster for the package files but this is actually a bad location since log files should not really be located directly in /etc.

When building a new cluster simply locate the package files wherever you want and use cmapplyconf as usual. If you have existing packages you wish to move you would need to halt the packages, move the ascii, script and log files to a new location, edit the ascii file to specify a new script location and then run cmapplyconf to apply the new configuration with the new location.

SG 11.17 onwards allows you to specify a specific location for log files so they do not need to be placed in the same directory as the script file. This would be another alternate method of locating these files elsewhere. Specify SCRIPT_LOG_FILE in the packaghe ascii file.

And lastly, as has already been suggested you could move the whole directory and use a symbolic link. i.e. halt the cluster, mv /etc/cmcluster /mnt/newlocation/cmcluster; ln -s /mnt/newlocation/cmcluster /etc/cmcluster However, I'm not sure that scrictly this would be supported since you need to take care about making sure things are mounted at the correct time etc. I would not really suggest this last option.
anat heilper
Frequent Advisor

Re: change lcation of /etc/cmcluster

Thanks a lot
Anat