Solved

what purpose  is the check scan option in tune2fs

Posted on 2014-10-06
4
343 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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.

717 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