cancel
Showing results for 
Search instead for 
Did you mean: 

cluster configuration file

 
rajesh73
Super Advisor

cluster configuration file

Normally cluster configuration file kept under /etc/cmcluster/ & package configuration file kept under /etc/cmcluster/pakagename


But our enviorment pakage kept under /var/adm/cmcluster/package/log/db.log

Why this package configuration configure in /var/adm/cmcluster/package/log/db.log


2.Copy command doubt

cp -rp ------copy the files with permission and time stamp
cp -Rp_-------what is the use of this command
5 REPLIES 5
Bill Hassell
Honored Contributor

Re: cluster configuration file

This is very unusual. /var/adm is the log file directory, not a configuration or setting directory. It would be not only non-standard but also VERY confusing if the cluster config script is db.log. What makes you think that db.log is the configuration script?

 

For any command, the man page is most helpful:

 

-R    (recursive subtree copy) The -R option is identical to the -r option.

 

 

 

 



Bill Hassell, sysadmin
rajesh73
Super Advisor

Re: cluster configuration file

Thanks for your reply

You say /var/ADM/cmcluster/ used for log directory .but if cluster need to be put in debug mode .we need to be create one debug file under /var/ADM/cmcluster/ .please confirm


For any command, the man page is most helpful:

-R (recursive subtree copy) The -R option is identical to the -r option.


So you mean
cp -rp -----
cp -Rp_-----

The above command work same function
Bill Hassell
Honored Contributor

Re: cluster configuration file

>> You say /var/ADM/cmcluster/ used for log directory

>> but if cluster need to be put in debug mode .we need to be create one debug file under /var/ADM/cmcluster/

>> please confirm

 

No one can confirm this because debug mode is something you are defining. Your original question stated that the package script was in /var/adm/cmcluster. Keep in mind that the location and the contents of the package script (and even the cluster configuration file) can be anywhere -- but it would be EXTREMELY difficult for a new administrator to figure out where all the files are located if they are not kept in the standard location /etc/cmcluster.

 

So it seems that the log file (not the package script) is located in the /var/adm directory structure. Is there no documentation available that explains the cluster and the package design?

 

--------

 

>> So you mean
>> cp -rp -----
>> cp -Rp_-----
>> The above command work same function

 

That's what the man page says.

As with any unfamiliar command or option, it is standard sysadmin procedure to test the command, perhaps in a temporary directory.



Bill Hassell, sysadmin
Stephen Doud
Honored Contributor

Re: cluster configuration file

Legacy-style packages log files are located in the package control script directory unless the admin alters the log file location using this parameter in the package configuration file:

#SCRIPT_LOG_FILE

 

 

Modular-style packages can be configured to place their package log in the directory of the administrator's choosinging this parameter:

script_log_file                 $SGRUN/log/$SG_PACKAGE.log

 

Highlighted
rkjha_hp
Advisor

Re: cluster configuration file

Hi rajesh, As a standard/best practice, cluster package conf file should be kept in /etc/cmcluster/package and log files should be at /var/adm/cmcluster/log.

 

If the package files are not present at these paths you can get the conf file and save it at this path

# cmgetconf -p <pkg name> >>/etc/cmcluster/package/package.conf

 

We are using a debug file under /var/adm/cmcluster to start cluster in debug mode when it noramly integrated with SGeSAP. With this debug file cluster skips the startup procedure for SAP.

 

rajneesh