[prev in list] [next in list] [prev in thread] [next in thread] 

List:       centos
Subject:    Re: [CentOS] cronjob to intiiate checkdisk ?
From:       Ross Walker <rswwalker () gmail ! com>
Date:       2011-02-28 23:51:24
Message-ID: CE435084-56A0-4998-AED8-52977857DBC2 () gmail ! com
[Download RAW message or body]

On Feb 28, 2011, at 4:49 AM, Roland RoLaNd <r_o_l_a_n_d@hotmail.com> wrote:

> Dear all,
> 
> I'm trying to find a way to automate checkdisk every 1 month on a weekend.
> in other words i want checkdisk to run every saturday morning.
> 
> i can of course change the default mount/count though that wont let me control WHEN \
> it will happen. 
> so i need your expert opinion with the following if possible: 
> 
> 1. reboot into single user mode
> 2. start checkdisk for all disks
> 3. once done, reboot into runlevel 3
> 
> i've did a certain script that force checkdisk at night if there's a bad sector \
> using the badblocks command though that's not enough. 
> 
> 
> PS: i was thinking of something of this sort:
> 
> 1 4 * sat /bin/touch /forcefsck;reboot
> 1  1 * sun rm /forcefsck

I would take a snapshot and run fsck against the snapshot, if it reports clean then \
nothing needs done, if it reports dirty then you need to bring it into maintenance \
mode and do a fsck with cleanup options.

-Ross

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic