Mailinglist Archive: opensuse (4208 mails)
| < Previous | Next > |
Re: [SLE] 9.0 Device checling on ext3 fs
- From: Jerry Feldman <gaf@xxxxxxx>
- Date: Mon, 12 Jul 2004 08:32:14 -0400
- Message-id: <20040712083214.68aa874a@xxxxxxxxxxx>
On Mon, 12 Jul 2004 10:25:07 +0200
"Hylton Conacher (ZR1HPC)" <hylton@xxxxxxxxxxxx> wrote:
> Hi,
>
> I am investigating checking and tuning my ext3 filesystems.
>
> I have already implemented the tune2fs command and the drives are
> checked as specified however, I wondered if a check for bad blocks was
>
> also done when the tune2fs utility runs?
>
> I am a little confused after reading the man pages for tune2fs,
> badblocks and e2fsck.
>
> Here is my thinking on how I would like to institute a full check.
>
> I was thinking of implementing the following:
>
> e2fsck -c <device>| tune2fs -i 1d <device>
>
> How can I get the above command to run the badblocks each time time
> the machine is booted and the tune2fs app on its specified frequency?
> I would think I would need to edit a system file similar to
> ~/.bashprofile so that the system does the checks before it gets to a
> users bashprofile script.
You do not need to run tune2fs that often. It sets permanent parameters.
I would be careful when doing the bad block test because it can be
destructive. "e2fsck -cc <device> " is a non destructive way to do it.
You don't need or want to run this on a frequent basis.
Take a look at /etc/init.d/boot.localfs.
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
"Hylton Conacher (ZR1HPC)" <hylton@xxxxxxxxxxxx> wrote:
> Hi,
>
> I am investigating checking and tuning my ext3 filesystems.
>
> I have already implemented the tune2fs command and the drives are
> checked as specified however, I wondered if a check for bad blocks was
>
> also done when the tune2fs utility runs?
>
> I am a little confused after reading the man pages for tune2fs,
> badblocks and e2fsck.
>
> Here is my thinking on how I would like to institute a full check.
>
> I was thinking of implementing the following:
>
> e2fsck -c <device>| tune2fs -i 1d <device>
>
> How can I get the above command to run the badblocks each time time
> the machine is booted and the tune2fs app on its specified frequency?
> I would think I would need to edit a system file similar to
> ~/.bashprofile so that the system does the checks before it gets to a
> users bashprofile script.
You do not need to run tune2fs that often. It sets permanent parameters.
I would be careful when doing the bad block test because it can be
destructive. "e2fsck -cc <device> " is a non destructive way to do it.
You don't need or want to run this on a frequent basis.
Take a look at /etc/init.d/boot.localfs.
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
| < Previous | Next > |