Solved

what purpose  is the check scan option in tune2fs

Posted on 2014-10-06
4
319 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 37

Accepted Solution

by:
Gerwin Jansen 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't get /etc/resolv.conf to configure after reboot 8 74
AWS vpc peering connection 1 43
nagios remote hosts 9 46
Linux Copy Command - All Files inc Directory 1 31
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now