linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Richard Scobie <richard@sauce.co.nz>
To: linux-raid@vger.kernel.org
Subject: Re: Multiple partitions on the same disk
Date: Mon, 17 Mar 2008 08:16:27 +1300	[thread overview]
Message-ID: <47DD720B.2050109@sauce.co.nz> (raw)
In-Reply-To: <380-22008351422419859@mochamail.com>

Cody wrote:
> Hi Everyone,
> 
> I have an 8-disk raid5 array (each is 500GB SATA).  The first disk
> sda1 shows bad sectors (from smartd).  mdadm reports that the array
> is fine, but I want to replace or re-add the drive.  Should I replace
> it?  It's the oldest drive in the array (the disk is ~3 years old).

If you have full backups of the array and can tolerate the unplanned 
complete failure of the drive, then you could leave it in service.

With an array of this size and age, you should be running:

echo repair > /sys/block/mdX/md/sync_action

on a regular basis to ensure the whole array is being written to and 
helping to minimise the chance of you hitting a bad sector on another 
drive during the resync after having replaced the faulty drive.

> Also, can I replace it with a 1TB disk and add it as two partitions
> (assuming that 2 partitions of the correct size can be created)?  I
> have read of RAID schemes that involves partitioning each disk into
> smaller increments, but this seems inherently unsafe to me unless
> mdadm understands that two partitions are on the same device and
> organizes parity accordingly.

If by this you mean that you wish to replace your faulty drive with one 
500GB partition and grow the array to be able to add the second 500GB 
partition, then no, this is a bad idea on two counts:

When this drive fails in the future, you lose two components and the 
array is unrecoverable (RAID 5 only allowing single component redundency).

Having two components on the same physical device would impact 
performance due to the head having to constantly re-seek between the two 
partitions.

Regards,

Richard

      reply	other threads:[~2008-03-16 19:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14 22:41 Multiple partitions on the same disk Cody
2008-03-16 19:16 ` Richard Scobie [this message]

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=47DD720B.2050109@sauce.co.nz \
    --to=richard@sauce.co.nz \
    --cc=linux-raid@vger.kernel.org \
    /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).