From: Martijn Schoemaker <lvm@shoenix.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] LVM on a drive with a bad sector?
Date: Mon, 24 May 2004 20:31:25 +0200 [thread overview]
Message-ID: <40B23F7D.6040207@shoenix.net> (raw)
In-Reply-To: <40B1B898.2050204@mlug.missouri.edu>
Michael wrote:
> I have a drive I was getting ready to change to LVM. When moving all the
> old files off I noticed it seems to have a bad sector on the drive.. not
> unlikely as I move a lot so the disks take a lot of physical abuse.. but
> only that one bad sector. Is there anything special I should do before
> using the drive with LVM to mark the sector as bad so that LVM just
> works around it? So far there is no evidence that the entire drive is
> failing.
Running with bad harddisks is generally a bad idea. What you should try
to do is run the manufacturers diagnostic tools over your hdd to swap
out the bad sector in the hdd's internal bad sector list (it will use
spare good blocks to swap it with). For Maxtor you can do this with
the PowerMax tool, other vendors have their own tools.
If this does not work, you can use LVM (as far as I know there is no
bad-block mapping within LVM, correct me if I'm wrong) but you need
to specify the bad block when making the filesystem. You can do this
by creating the logical volume, and then using 'badblocks' to locate
the bad block. This information can be passed to mke2fs for instance
to make it avoid the bad block (using the -l option). All other
filesystems have their own mechanism for this (if any).
Bottom line is, when a drive starts having bad sectors it's not reliable
anymore and further deterioration is possible. If you use a mirrored
configuration I think you can take the risk, but if you're not, you'd
better make sure you have a good backup system in place :)
My few cents,
Martijn
next prev parent reply other threads:[~2004-05-24 18:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-24 8:55 [linux-lvm] LVM on a drive with a bad sector? Michael
2004-05-24 18:31 ` Martijn Schoemaker [this message]
2004-05-24 18:41 ` Alasdair G Kergon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40B23F7D.6040207@shoenix.net \
--to=lvm@shoenix.net \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).