Manual Log Rotation Question

Moderator: NorbertKrupa

Post Reply
beth
Intermediate
Intermediate
Posts: 58
Joined: Tue Oct 01, 2013 12:42 pm

Manual Log Rotation Question

Post by beth » Mon Nov 17, 2014 5:21 pm

Hi all,

According to the admin guide, to manually rotate the vertica.log file I should follow these steps:
1. Rename or archive the vertica.log file that is produced. For example:
$ mv vertica.log vertica.log.1
2. Send the HP Vertica process the USR1 signal. For example:
$ killall -USR1 vertica
or
$ ps -ef | grep -i vertica
$ kill -USR1 process-id
Is it really okay to kill all of the vertica processes on the node? Won't this bring down Vertica?

:?

scutter
Master
Master
Posts: 302
Joined: Tue Aug 07, 2012 2:15 am

Re: Manual Log Rotation Question

Post by scutter » Mon Nov 17, 2014 7:26 pm

Hi Beth,

The USR1 signal is a user-defined signal. It’s not destructive and won’t kill a process the way that kill -9 would. Vertica traps the USR1 signal and interprets it as a request to open a new vertica.log file - solely for the purpose of log rotation.

—Sharon
Sharon Cutter
Vertica Consultant, Zazz Technologies LLC

beth
Intermediate
Intermediate
Posts: 58
Joined: Tue Oct 01, 2013 12:42 pm

Re: Manual Log Rotation Question

Post by beth » Mon Nov 17, 2014 7:33 pm

Thanks, Sharon! That makes sense :)

Post Reply

Return to “Vertica Database Administration”