LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-10-2008, 05:06 PM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
logrotate problem


I have the following Linux cluster.

/app/s04/log/rcv.log
/app/s04/log/snd.log
/app/s04/log/info.log

Today, active linux node(RHEL4) failover to another node. Then I got my app resource mounted at another node so that there is nothing under /app/s04 now.

I found daily cron job excecuted at AM4:02 are failed with [logrotate: exited with return code 1]. My app log logroate setting is /etc/logrotate.d/applog as follows.

/app/s04/log/*.log {
missingok
weekly
notifempty
create 644 root root
}

I tried to test the setting again as follows.

# logrotate -dv /etc/logrotate.d/applog

reading config file applog
error: error accessing /app/s04/log/*.log: No such or directory
error: applog:1 glob failed for /app/s04/log/*.log

I think that is because of /app/s04/log directory loss by failover.

Question: Is there a way to edit /etc/logroate.d/applog to logrotate properly? I tried to [missingok], but it seems that it just can look up
log file not directory, here i want to ask if there is way to let logrotate to ignore the nonexistent direcory such as /app/s04/log.
 
Old 12-10-2008, 05:16 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,370

Rep: Reputation: 563Reputation: 563Reputation: 563Reputation: 563Reputation: 563Reputation: 563
I would solve this problem by creating a dummy /app/s04/log/ directory on your rollover node.

-----------------------
Steve Stites
 
Old 12-10-2008, 06:17 PM   #3
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
I would solve this problem by creating a dummy /app/s04/log/ directory on your rollover node.
==>

Yes, I have tried to create /app/s04/log directory and it works fine.
But I worried when I failback /app/s04 to the node, the dummy /app/s04/log
directory will conflict with log directory under /app/s04 cluster resource.

Any idea?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
logrotate permissions problem - can't figure it out ocgltd Linux - Server 1 09-25-2008 08:21 AM
logrotate question/problem jwholey Linux - General 1 06-28-2006 12:18 AM
Logrotate strange problem FragInHell Linux - Software 3 05-07-2006 07:12 PM
problem with logrotate tflavell Linux - Newbie 6 07-04-2005 04:32 AM
problem with logrotate pippet Linux - General 2 09-07-2004 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration