LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 08-18-2009, 07:00 AM   #1
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Quotas: Put quotacheck in a cron-job?


Hi all.


I'm setting up quotas, and it seems to be working quite good. I read somewhere that it's recommended to run quotacheck on a regular basis, for example in a cron job. The problems is that the man page says that quotacheck prefer to mount the file system read only before performing the check. So how do other people do this (or maybe you simply don't)?


Regards,
kenneho
 
Old 08-18-2009, 11:55 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
Its not strictly necessary, but see 7.2.3 here: http://www.linuxtopia.org/online_boo...-managing.html
If you want to see how things (ie users) are doing, then its repquota (7.2.2 in above doc).
 
Old 08-19-2009, 01:22 AM   #3
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by chrism01 View Post
Its not strictly necessary, but see 7.2.3 here: http://www.linuxtopia.org/online_boo...-managing.html
If you want to see how things (ie users) are doing, then its repquota (
7.2.2 in above doc).
I see your point. But when the man page says this:

Quote:
It is strongly recommended to run quotacheck with quotas turned off for the filesystem. Otherwise, possible damage or loss to data in the quota files can result.

It is also unwise to run quotacheck on a live filesystem as actual usage may change during the scan. To prevent this, quotacheck tries to remount the filesystem read-only before starting the scan. After the scan is done it remounts the filesystem read-write. You can disable this with option -m. You can also make quotacheck ignore the failure to remount the filesystem read-only with option -M.

...I'm not sure who to trust - the red har manual or the man page. :/
 
Old 08-19-2009, 01:40 AM   #4
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Original Poster
Rep: Reputation: 40
I've decided to send a request to Red Hat support to clear up this issue. Keeping the quote from the man page in mind, it may be that Red Hat wish to clearify things in their documentation.

I'll report back here when I get a reply.
 
Old 08-26-2009, 02:07 AM   #5
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Original Poster
Rep: Reputation: 40
I've been in contact with Red Hat support, and they see that their documentation and the man page does not completely match. Until everything is cleared up I'm not running quotacheck on a mounted file system.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Job chetansharma_softeng Linux - Newbie 7 01-12-2009 06:14 AM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
Slackware's Cron Scheduler: I'm thinking maybe I need to put in a different cron? Old_Fogie Slackware 5 11-03-2006 06:25 AM
Cron Job petenyce Linux - Newbie 5 10-11-2005 04:03 PM
CRON Job tommytomato Fedora 12 09-13-2004 12:38 AM


All times are GMT -5. The time now is 11:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration