cluster.log file


 
Thread Tools Search this Thread
Operating Systems AIX cluster.log file
# 1  
Old 12-10-2010
cluster.log file

Hi
My cluster.log file is eating up most of the space in /usr filesystem. I have an active passive HACMP cluster (version 5.4).

cnpsit02 [/usr/es/adm] #du -sg * | sort -nr
1.72 cluster.log

cnpsit01 [/usr/es/adm] #du -sg * | sort -nr
2.32 cluster.log

Please let me know how to solve this. Thanks.
# 2  
Old 12-10-2010
if your cluster.log is file and not a directory, maybe something like
Code:
# make a copy of your log

cp /usr/es/adm/cluster.log /tmp/cluster.log

# zip the copy to avoid wasting too much space

gzip /tmp/cluster.log

# keep temporary the 300 last line of your logfile 
# put it back to your logfile in a replace (>) manner (not a append >> manner) AND using a cat
# so you won't loose the inode of the logfile so the process that is currently dealing with your logfile won't get fooled.

tail -300 /usr/es/adm/cluster.log >/tmp/cluster.log.tmp && cat /tmp/cluster.log.tmp >/usr/es/adm/cluster.log

# cleanup the temporary file you've used

rm /tmp/cluster.log.tmp


Last edited by ctsgnb; 12-10-2010 at 02:25 PM..
# 3  
Old 12-10-2010
Using /var for logs is one of the most common mistakes when configuring an HACMP cluster. This is a very long story that dates back to at least HACMP V4 and it is very sad that IBM did not manage to get around that problem for years now. So it is the cluster admin's responsibility to not do that. Search this group for questions related to /var getting full and how to avoid that.

You move the cluster logs positions with cluster commands only. Read the cllog manpage. There is also a CSPOC panel if you prefer SMIT.

To take the pressure from the /var filesystem you could remove (i.e. mv and/or rm) unused logs (the rolling logs have a trailing number with 1 being the youngest and 7 the oldest log). Some logs are being held open by cluster processes. You must not move them but you could blank them with
Code:
# > big.log

or if you prefer the non-AIX long version
Code:
# cat /dev/null > big.log

This way you can prevent your server from dying a painfull and slow death. If you think you still need the log's content just copy it to any place you like before blanking it.
# 4  
Old 12-10-2010
I already answered this question in your previous post Which files can be deleted in /usr in an aix hacmp node?

on both servers create a file system for the HACMP logs and configure HACMP to log there. and then setup a rotate job.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

AIX Cluster Show shared file systems.

Hello, I am working on applications on an AIX 6.1 two-node cluster, with an active and passive node. Is there a command that will show me which mount points / file systems are shared and 'swing' from one node to the other when the active node changes, and which mount points are truly local to... (6 Replies)
Discussion started by: Clovis_Sangrail
6 Replies

2. Red Hat

Cluster configuration file

Hi Everybody, I would like to know meaning of following parameters in cluster.conf file in linux <device name="blade_fence" blade="2" option="off" <clusternode name="Blade1-int" votes="1" nodeid="1"> what do you mean by "option=off" and "votes=1" Thanks (1 Reply)
Discussion started by: mastansaheb
1 Replies

3. Solaris

Sun cluster 4.0 - zone cluster failover doubt

Hello experts - I am planning to install a Sun cluster 4.0 zone cluster fail-over. few basic doubts. (1) Where should i install the cluster s/w binaries ?. ( global zone or the container zone where i am planning to install the zone fail-over) (2) Or should i perform the installation on... (0 Replies)
Discussion started by: NVA
0 Replies

4. Solaris

Boot archive file sizes are different on cluster units

Hi experts, I would have a question on boot archive files on solaris10 platform running on T5220 cluster servers. When we check the /platform/sun4v directory , and perform boot archive-list , we see that on both units same files exist. And when we mount the boot archive we see that all files... (0 Replies)
Discussion started by: dyavuzy1
0 Replies

5. UNIX for Advanced & Expert Users

Sun Cluster log rotation & compression

I currently have in root's crontab: 20 4 * * 0,3 /usr/cluster/lib/sc/newcleventlog /var/cluster/logs/eventlog 20 4 * * 0,3 /usr/cluster/lib/sc/newcleventlog /var/cluster/logs/DS 20 4 * * 0,3 /usr/cluster/lib/sc/newcleventlog /var/cluster/logs/commandlog there is no man page on... (1 Reply)
Discussion started by: rkruck
1 Replies

6. Solaris

Sun cluster and Veritas cluster question.

Yesterday my customer told me to expect a vcs upgrade to happen in the future. He also plans to stop using HDS and move to EMC. Am thinking how to migrate to sun cluster setup instead. My plan as follows leave the existing vcs intact as a fallback plan. Then install and build suncluster on... (5 Replies)
Discussion started by: sparcguy
5 Replies

7. High Performance Computing

SUN Cluster Vs Veritas Cluster

Dear All, Can anyone explain about Pros and Cons of SUN and Veritas Cluster ? Any comparison chart is highly appreciated. Regards, RAA (4 Replies)
Discussion started by: RAA
4 Replies

8. High Performance Computing

Building a Solaris Cluster Express cluster in a VirtualBox on OpenSolaris

Provides a description of how to set up a Solaris Cluster Express cluster in a VirtualBox on OpenSolaris. More... (0 Replies)
Discussion started by: Linux Bot
0 Replies
Login or Register to Ask a Question