short way to perform efsck when we have huge number of disksHow can I avoid “Run fsck manually” messages while allowing experimenting with system time changes?Linux Mint: drives' map changing at reboot brings fstab errorError mounting drivesWhat's the difference between e2fsck and fsck and which one I should use?I can see my LVM but I can't initialize it. Missing UUID of one of the disksHow to map a sata device name to a physical sata interface for RAID systems/etc/fstab and parallel filesystem check (fsck)Script to create filesystemin which cases it will be problematic to configure UUID in fstabReboot with faulty drive, devices names change, server does not boot
The use of multiple foreign keys on same column in SQL Server
A function which translates a sentence to title-case
What do you call a Matrix-like slowdown and camera movement effect?
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
declaring a variable twice in IIFE
Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?
Patience, young "Padovan"
What is the offset in a seaplane's hull?
My colleague's body is amazing
Can Medicine checks be used, with decent rolls, to completely mitigate the risk of death from ongoing damage?
Can I interfere when another PC is about to be attacked?
LED on same Pin as Toggle Switch, not illuminating
When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?
I see my dog run
Why do we use polarized capacitor?
Example of a relative pronoun
Mean and Variance of Continuous Random Variable
How is this relation reflexive?
XeLaTeX and pdfLaTeX ignore hyphenation
How old can references or sources in a thesis be?
How do I create uniquely male characters?
How does one intimidate enemies without having the capacity for violence?
Circuitry of TV splitters
Is there a minimum number of transactions in a block?
short way to perform efsck when we have huge number of disks
How can I avoid “Run fsck manually” messages while allowing experimenting with system time changes?Linux Mint: drives' map changing at reboot brings fstab errorError mounting drivesWhat's the difference between e2fsck and fsck and which one I should use?I can see my LVM but I can't initialize it. Missing UUID of one of the disksHow to map a sata device name to a physical sata interface for RAID systems/etc/fstab and parallel filesystem check (fsck)Script to create filesystemin which cases it will be problematic to configure UUID in fstabReboot with faulty drive, devices names change, server does not boot
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
we need to do e2fsck on all our disks ( redhat linux - 7.2 ). Since on each machines we have 22 disks ( ext4 file-system ) it will take time to do it on each disk as all know when doing e2fsck need to umount the mount point folder and then use the e2fsck on the disk. Example:
umount /grid/sdb
fsck /dev/sdb
mount /grid/sdb
But, I found option that can be much faster. We can use the fstab for this purpose and to change the sixth field from 0 to 1 and then reboot the machine
From my understanding during boot all disk will perform 2fsck automatically. Am I right here? /etc/fstab
Example:
From
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 0 0
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 0 0
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 0 0
To
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 1 0
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 1 0
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 1 0
From the fstab(5) man page:
The sixth field (fs_passno).
This field is used by the fsck(8) program to determine the order
in which filesystem checks are done at reboot time. The root
filesystem should be specified with a fs_passno of 1, and other
filesystems should have a fs_passno of 2. Filesystems within a
drive will be checked sequentially, but filesystems on different
drives will be checked at the same time to utilize parallelism
available in the hardware. If the sixth field is not present or
zero, a value of zero is returned and fsck will assume that the
filesystem does not need to be checked.
linux filesystems rhel fstab fsck
add a comment |
we need to do e2fsck on all our disks ( redhat linux - 7.2 ). Since on each machines we have 22 disks ( ext4 file-system ) it will take time to do it on each disk as all know when doing e2fsck need to umount the mount point folder and then use the e2fsck on the disk. Example:
umount /grid/sdb
fsck /dev/sdb
mount /grid/sdb
But, I found option that can be much faster. We can use the fstab for this purpose and to change the sixth field from 0 to 1 and then reboot the machine
From my understanding during boot all disk will perform 2fsck automatically. Am I right here? /etc/fstab
Example:
From
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 0 0
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 0 0
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 0 0
To
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 1 0
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 1 0
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 1 0
From the fstab(5) man page:
The sixth field (fs_passno).
This field is used by the fsck(8) program to determine the order
in which filesystem checks are done at reboot time. The root
filesystem should be specified with a fs_passno of 1, and other
filesystems should have a fs_passno of 2. Filesystems within a
drive will be checked sequentially, but filesystems on different
drives will be checked at the same time to utilize parallelism
available in the hardware. If the sixth field is not present or
zero, a value of zero is returned and fsck will assume that the
filesystem does not need to be checked.
linux filesystems rhel fstab fsck
add a comment |
we need to do e2fsck on all our disks ( redhat linux - 7.2 ). Since on each machines we have 22 disks ( ext4 file-system ) it will take time to do it on each disk as all know when doing e2fsck need to umount the mount point folder and then use the e2fsck on the disk. Example:
umount /grid/sdb
fsck /dev/sdb
mount /grid/sdb
But, I found option that can be much faster. We can use the fstab for this purpose and to change the sixth field from 0 to 1 and then reboot the machine
From my understanding during boot all disk will perform 2fsck automatically. Am I right here? /etc/fstab
Example:
From
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 0 0
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 0 0
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 0 0
To
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 1 0
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 1 0
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 1 0
From the fstab(5) man page:
The sixth field (fs_passno).
This field is used by the fsck(8) program to determine the order
in which filesystem checks are done at reboot time. The root
filesystem should be specified with a fs_passno of 1, and other
filesystems should have a fs_passno of 2. Filesystems within a
drive will be checked sequentially, but filesystems on different
drives will be checked at the same time to utilize parallelism
available in the hardware. If the sixth field is not present or
zero, a value of zero is returned and fsck will assume that the
filesystem does not need to be checked.
linux filesystems rhel fstab fsck
we need to do e2fsck on all our disks ( redhat linux - 7.2 ). Since on each machines we have 22 disks ( ext4 file-system ) it will take time to do it on each disk as all know when doing e2fsck need to umount the mount point folder and then use the e2fsck on the disk. Example:
umount /grid/sdb
fsck /dev/sdb
mount /grid/sdb
But, I found option that can be much faster. We can use the fstab for this purpose and to change the sixth field from 0 to 1 and then reboot the machine
From my understanding during boot all disk will perform 2fsck automatically. Am I right here? /etc/fstab
Example:
From
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 0 0
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 0 0
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 0 0
To
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 1 0
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 1 0
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 1 0
From the fstab(5) man page:
The sixth field (fs_passno).
This field is used by the fsck(8) program to determine the order
in which filesystem checks are done at reboot time. The root
filesystem should be specified with a fs_passno of 1, and other
filesystems should have a fs_passno of 2. Filesystems within a
drive will be checked sequentially, but filesystems on different
drives will be checked at the same time to utilize parallelism
available in the hardware. If the sixth field is not present or
zero, a value of zero is returned and fsck will assume that the
filesystem does not need to be checked.
linux filesystems rhel fstab fsck
linux filesystems rhel fstab fsck
edited Mar 27 at 17:55
nwildner
15k34581
15k34581
asked Mar 27 at 17:06
yaelyael
2,81242979
2,81242979
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
That’s nearly right; you should use a pass number of 2 (since these aren’t the root file system), and it really has to be the sixth field, so
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 0 2
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 0 2
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 0 2
|<-------------- field 1 -------------->| |<- 2 ->| |<>| |<- field 4 -->| ^ ^
^ | |
field 3 -+ field 5 -+ |
field 6 -+
I guess the machine it take time until boot is completed ?
– yael
Mar 27 at 17:28
Yes, checking the disks might lengthen the boot, but in most cases it won’t — if the file system is clean,fsck
will only force a check at fairly lengthy intervals by default. Checks are parallelised across disks too, which will help in your case.
– Stephen Kitt
Mar 27 at 17:30
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509038%2fshort-way-to-perform-efsck-when-we-have-huge-number-of-disks%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
That’s nearly right; you should use a pass number of 2 (since these aren’t the root file system), and it really has to be the sixth field, so
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 0 2
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 0 2
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 0 2
|<-------------- field 1 -------------->| |<- 2 ->| |<>| |<- field 4 -->| ^ ^
^ | |
field 3 -+ field 5 -+ |
field 6 -+
I guess the machine it take time until boot is completed ?
– yael
Mar 27 at 17:28
Yes, checking the disks might lengthen the boot, but in most cases it won’t — if the file system is clean,fsck
will only force a check at fairly lengthy intervals by default. Checks are parallelised across disks too, which will help in your case.
– Stephen Kitt
Mar 27 at 17:30
add a comment |
That’s nearly right; you should use a pass number of 2 (since these aren’t the root file system), and it really has to be the sixth field, so
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 0 2
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 0 2
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 0 2
|<-------------- field 1 -------------->| |<- 2 ->| |<>| |<- field 4 -->| ^ ^
^ | |
field 3 -+ field 5 -+ |
field 6 -+
I guess the machine it take time until boot is completed ?
– yael
Mar 27 at 17:28
Yes, checking the disks might lengthen the boot, but in most cases it won’t — if the file system is clean,fsck
will only force a check at fairly lengthy intervals by default. Checks are parallelised across disks too, which will help in your case.
– Stephen Kitt
Mar 27 at 17:30
add a comment |
That’s nearly right; you should use a pass number of 2 (since these aren’t the root file system), and it really has to be the sixth field, so
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 0 2
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 0 2
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 0 2
|<-------------- field 1 -------------->| |<- 2 ->| |<>| |<- field 4 -->| ^ ^
^ | |
field 3 -+ field 5 -+ |
field 6 -+
That’s nearly right; you should use a pass number of 2 (since these aren’t the root file system), and it really has to be the sixth field, so
UUID=6f8debb3-aac9-4dfb-877f-463f5132d055 /grid/sdb ext4 defaults,noatime 0 2
UUID=203c24b2-8c07-4a9a-b4e0-1848ac5570d6 /grid/sdc ext4 defaults,noatime 0 2
UUID=941546ac-2168-4130-b51f-f5a255a4e43c /grid/sdd ext4 defaults,noatime 0 2
|<-------------- field 1 -------------->| |<- 2 ->| |<>| |<- field 4 -->| ^ ^
^ | |
field 3 -+ field 5 -+ |
field 6 -+
edited Mar 27 at 17:23
answered Mar 27 at 17:13
Stephen KittStephen Kitt
180k25409488
180k25409488
I guess the machine it take time until boot is completed ?
– yael
Mar 27 at 17:28
Yes, checking the disks might lengthen the boot, but in most cases it won’t — if the file system is clean,fsck
will only force a check at fairly lengthy intervals by default. Checks are parallelised across disks too, which will help in your case.
– Stephen Kitt
Mar 27 at 17:30
add a comment |
I guess the machine it take time until boot is completed ?
– yael
Mar 27 at 17:28
Yes, checking the disks might lengthen the boot, but in most cases it won’t — if the file system is clean,fsck
will only force a check at fairly lengthy intervals by default. Checks are parallelised across disks too, which will help in your case.
– Stephen Kitt
Mar 27 at 17:30
I guess the machine it take time until boot is completed ?
– yael
Mar 27 at 17:28
I guess the machine it take time until boot is completed ?
– yael
Mar 27 at 17:28
Yes, checking the disks might lengthen the boot, but in most cases it won’t — if the file system is clean,
fsck
will only force a check at fairly lengthy intervals by default. Checks are parallelised across disks too, which will help in your case.– Stephen Kitt
Mar 27 at 17:30
Yes, checking the disks might lengthen the boot, but in most cases it won’t — if the file system is clean,
fsck
will only force a check at fairly lengthy intervals by default. Checks are parallelised across disks too, which will help in your case.– Stephen Kitt
Mar 27 at 17:30
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509038%2fshort-way-to-perform-efsck-when-we-have-huge-number-of-disks%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
-filesystems, fsck, fstab, linux, rhel