[SGVLUG] rsnapshot: the good and the bad - recovery after
patching that goes very very wrong
Claude Felizardo
cafelizardo at gmail.com
Mon May 14 19:27:40 PDT 2007
On 5/13/07, Dustin Laurence <dustin at laurences.net> wrote:
> On Sun, May 13, 2007 at 10:49:54AM -0700, Claude Felizardo wrote:
> >
> > well the problem is this machine is used as the fileserver so it
> > rarely gets shutdown. like during power outages so sometimes its been
> > running for months and months. So I do want it to run fsck
> > occasionally. I just want to defer it on the last two partitions
> > which hold the media and the snapshots since they aren't needed at
> > boot.
>
> Well, why not just so mark them in /etc/fstab? Set the last column to
> zero instead of two for those two partitions.
>
> Warning: this means fsck will *never* run at bootup, so be sure you
> really want what you asked for. :-)
>
> Dustin
I have set the last column to zero to speed reboots for my backup
partition. The question is how best to run fsck and mount AFTER the
system is running. Again, this is for partitions that are not
needed at boot.
Looking at the man page for fsck, there's a bunch of possible return
values. Does any one have an example of a shell script that runs fsck
and then another command, say mount, if all is okay. If there's an
error, I'd like to have it send out an email. I've looked online but
all I can find is how the system does it automatically during boot.
I'm guessing I want to call this script from /etc/rc.local
If I can get this working, then I'll probably want to do something
similar for my AV media since that's the next largest partition.
claude
More information about the SGVLUG
mailing list