LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2016, 03:40 AM   #1
pratik@7z
LQ Newbie
 
Registered: May 2016
Posts: 1

Rep: Reputation: Disabled
Question about FSCK


Can you provide last option which is FSCK order in /etc/fstab for NFS partition on NFS client or NFS server
 
Old 05-20-2016, 06:53 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,694

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
For the client the the fsck field is not used and should be zero.

For the server depends on the actual file system. If other then the /root 2 is typically used.
 
Old 05-20-2016, 07:05 AM   #3
dab1414
Member
 
Registered: May 2011
Location: OK, USA
Distribution: Slackware 14.1_64
Posts: 76

Rep: Reputation: 52
Read this.

Basically, your clients will always have the last 2 fields (dump,fsck) at 0. And your server depends on your needs. Do you want FSCK to run at every boot? So root should be 1 then other partitions you want to fsck a 2.
 
Old 05-21-2016, 09:07 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by dab1414 View Post
Read this.

Basically, your clients will always have the last 2 fields (dump,fsck) at 0. And your server depends on your needs. Do you want FSCK to run at every boot? So root should be 1 then other partitions you want to fsck a 2.
well... actually that last parameter specifies the ORDER fsck is to be run.

0 is a default.
1 normally used at boot for the root filesystem only.
2 all filesystems with a "2" will be done in parallel, and AFTER any filesystems with a lower number are completed.
3 all filesystems with a "3" will be done in parallel, and AFTER any filesystems with a lower number are completed...

and so on.

With the common uses of journaled filesystems, this value has become "mostly" redundant, and may be 0 even on a server. If a filesystem is "unclean" (crash/power failuer...) all that is done is that the journal is processed to finish the last active transactions, and then mounted.

The reason this is being done is that with multi-TB filesystems, it can take HOURS (I have seen it take DAYS) to perform an fsck.

Journal based filesystems eliminate this by eliminating the corruption caused by crashes. The transactions are either completed, or rolled back, and thus keeping the filesystem consistent without needing a detailed scan.

Last edited by jpollard; 05-21-2016 at 09:13 AM.
 
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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie raid question - fsck rusl Linux - Server 8 08-11-2008 04:59 AM
question about fsck fwoodruff Linux - Server 3 08-04-2008 12:32 PM
fsck question mokku Linux - Newbie 1 10-04-2007 10:26 AM
FSCK Question carlosinfl Linux - General 2 01-06-2007 07:03 PM
fsck question SLAKK3R Linux - Newbie 4 04-28-2002 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:00 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