Root filesystem 100% occupied: Difference between revisions

From wiki.comcert.com
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:


== Introduction ==


=== '''Introduction''' ===
On the smaller provisioned TVC systems the root filesystem runs out of free space. The scheduled process of removing the logfiles is somewhere hidden in TruView Java code. On systems with very small disks this process kicks in too late.
 
On the smaller provisioned TVC systems the root filesystem runs out of free space. The scheduled process of removing the logfiles is somewhere hidden in TruView Java code. On systems with very small disks this process kicks in too late.


 
 


 
== Solution ==
=== '''Solution''' ===


Create a cronjob that deletes Cassandra logfiles from the /tmp directory
Create a cronjob that deletes Cassandra logfiles from the /tmp directory


Logon to TVC console and run the following commands:
Logon to TVC console and run the following commands:
 
<pre># sudo -i
<pre>$ sudo su -
# crontab -e</pre>
# crontab -e</pre>


And append the following line


$ sudo -i
30 15 */2 * * find /tmp -maxdepth 1 -name '????????-????-????-????-????????????' | xargs rm -rf


#crontab -e
This command deletes the Cassandra logifles every 2 days at half past three in the afternoon.


And append&nbsp;the following line
&nbsp;


30 15 */2 * * find /tmp -maxdepth 1 -name&nbsp; '????????-????-????-????-????????????' | xargs rm -rf
<span style="font-family: verdana,geneva,sans-serif;">{{#invoke:Message box|ambox |type=content|text=<span style="font-size:small;">Be aware that during an update of TruView the crontab is replaced and as a result of this the added cronjob will be removed.</span>}}</span>
 
This command deletes the Cassandra logifles every 2 days at half past three in the afternoon.


&nbsp;
&nbsp;

Latest revision as of 12:25, 6 November 2018

Introduction

On the smaller provisioned TVC systems the root filesystem runs out of free space. The scheduled process of removing the logfiles is somewhere hidden in TruView Java code. On systems with very small disks this process kicks in too late.

 

Solution

Create a cronjob that deletes Cassandra logfiles from the /tmp directory

Logon to TVC console and run the following commands:

# sudo -i
# crontab -e

And append the following line

30 15 */2 * * find /tmp -maxdepth 1 -name '????????-????-????-????-????????????' | xargs rm -rf

This command deletes the Cassandra logifles every 2 days at half past three in the afternoon.