Solved

what purpose  is the check scan option in tune2fs

Posted on 2014-10-06
4
330 Views
Last Modified: 2014-10-12
what purpose  is the check scan option in tune2fs

doing some math on our systems, we have a reboot patch about every other month which counts as a "mount".  the file system is checked every 38 mounts.

if my logic is correct, the file system will be checked at the 3 year mark an then again at the 6 year mark. At the 6 year mark we hope to have the system replaced.

If a system is 5 years old it likely has had 1 filesystem check and is due for one in a year ( which the system will likely not ever see )

We also have devices that get rebooted less than twice a year so they would be checked every 20 years

It appears that in a production environment it would run 1 time in the lifetime of the server.
0
Comment
Question by:TIMFOX123
4 Comments
 
LVL 38

Accepted Solution

by:
Gerwin Jansen, EE MVE earned 200 total points
ID: 40365640
You calculation looks OK to me. In production systems however, reboots are not that frequent in my experience. If you want your filesystem checked every month, modify your filesystem parameters like this: (assuming /dev/sda1)

# tune2fs -i 1m /dev/sda1
tune2fs 1.42.8 (20-Jun-2013)
Setting interval between checks to 2592000 seconds

This would mean that your sda1 file system would be checked every 1 month.

See "man tune2fs" for more information.

To show your current settings:

# tune2fs -l /dev/sda1
0
 
LVL 88

Assisted Solution

by:rindi
rindi earned 200 total points
ID: 40365654
That is a very long time without a file-system check. You could get file-system corruptions without the problem being noticed. The interval you have set now is more suited for Desktop OS's where the user probably reboots and shuts the PC down more often. I would reduce the count so it gets checked more often, maybe even everytime you service the (reboot) the server. You can do that with the following command (as root):

tune2fs -c 1 /dev/YourVolume

I'd also suggest that you constantly check the status of your array and disks in it using the RAID controller's utility so you know their health (checking the file-system won't tell you the health of the disks themselves), and also always test your backups.
0
 
LVL 40

Assisted Solution

by:noci
noci earned 100 total points
ID: 40366958
And a check of the rootfs can only take place during boot, other FS can be checked by dismounting them after stopping all applications using that volume.
then check & mount & restart apps.
0
 

Author Closing Comment

by:TIMFOX123
ID: 40375672
thank you
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question