LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-20-2016, 10:40 PM   #1
anctop
Member
 
Registered: Feb 2010
Posts: 99

Rep: Reputation: Disabled
a question about journaled quota


Hi,

An ext3 fs on my system has journaled quota turned on via the "usrjquota" mount option, and "quotacheck" is invoked by init script during boot time.
As the number of files grows, quotacheck takes longer and longer to finish.
In my understanding, journaled quota can survive system crash or other un-clean shutdown. Running quotacheck seems to be redundant.

I'd like to know : what is the usual (and safe) practice of using quotacheck on fs with journaled quota ?
 
Old 06-21-2016, 08:00 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
"Journaling" refers to a process of recording redundant data that is specifically designed to expedite filesystem recovery. It is, literally, a "journal" of recently-performed operations.

"Quota checking" is unrelated to journaling, and, yes, it can be expensive, because current resource-usage must generally be calculated (and, re-calculated), to determine if the quota limit has been exceeded. I find it to be of limited usefulness.

Do not be tempted to turn off journaling. In my experience (and, yes, I have some ... ), a filesystem is pragmatically un-recoverable without it.
 
Old 06-21-2016, 08:34 AM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
As far as I know, quotacheck only really needs to be run if the filesystem is marked as unclean for non-journalled quotas.

However, as you're using journalled quotas, these have the advantage that no quota check is required, even after an unclean shutdown.

So, no need for quotacheck.
 
1 members found this post helpful.
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Journaled quota in CentOS 6.5 gacanepa Linux - Newbie 1 04-06-2014 05:22 AM
allowed filesystem-type for /boot partition: journaled or non-journaled? _cs Linux - General 7 05-24-2011 11:44 PM
LXer: How To Set Up Journaled Quota On Debian Lenny LXer Syndicated Linux News 0 06-24-2009 06:20 PM
Quota Question tntcoder Linux - Newbie 1 06-12-2007 05:15 PM
Question about Quota tommytomato Linux - Newbie 0 09-03-2004 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:55 AM.

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