Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    69

    Question FSCK Backup Drive? Cutting down FSCK wait.

    Do you think it is good idea to cut down fsck time by disabling fsck on backup drive?
    LABEL=/backup /backup ext3 defaults 1 2
    to
    LABEL=/backup /backup ext3 defaults 1 0

    In order to minimize downtime during maintenance and updates? I am running hardware raid 1 for my system, and fsck took long time for backup due to the size and files. Shall i depend on smartcheck to determine the health of /backup (sdb)?

  2. #2
    cPanel, Inc. Staff
    Join Date
    Apr 2011
    Posts
    34

    Default Re: FSCK Backup Drive? Cutting down FSCK wait.

    If I am not mistaken, fsck should only run every X mounts (i think it is 40 by default?) or when an unclean shutdown has been detected.

    In either case, it should only occur on rare occasions. I would not recommend disabling fsck on any filesystem.
    Thank you,

    Jerry Smith
    Technical Analyst I
    cPanel Inc.

  3. #3
    Member
    Join Date
    Apr 2011
    Posts
    145
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: FSCK Backup Drive? Cutting down FSCK wait.

    You could also convert your backup partition to ext4, which would reduce FSCK time significantly. CentOS/RHEL 5.6 and later support ext4.

    Note that in RHEL and clones, the utilities have slightly different names than most instructions will give you. Wherever you see a "2fs" in a command, it is "4fs" under RHEL.

    i.e.
    # yum install e4fsprogs
    # tune4fs -O extents,uninit_bg,dir_index /dev/DEV
    # e4fsck -fDC0 /dev/DEV

    Replace "DEV" with your device, and make sure you umount /backup before doing any of this.

    Oh, and don't forget to change the mount option to ext4 in fstab.
    Last edited by alphawolf50; 08-17-2011 at 03:46 PM. Reason: Forgot info.

  4. #4
    Member
    Join Date
    Aug 2011
    Posts
    19

    Default Re: FSCK Backup Drive? Cutting down FSCK wait.

    I would, and do, disable fsck on any large drives and manually schedule fscking. Changing fstab entries will not disable fsck, though - you'll need to use tune2fs. No sane backup scenario would be done to a partition or disk in the same physical box that the data lives in, unless this is "just for fun" data.

Similar Threads & Tags
Similar threads

  1. Fsck problem...
    By p-root in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-02-2010, 04:48 PM
  2. recovering after fsck
    By bhcomjared in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-26-2010, 10:03 AM
  3. How to run fsck ?
    By smile in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-19-2007, 04:04 AM
  4. trouble after fsck
    By oderland in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-24-2004, 08:21 AM
  5. FSCK
    By metrop in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-05-2002, 09:20 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube