linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robin Hill <robin.hill47@ntlworld.com>
To: Mike Viau <viaum@sheridanc.on.ca>
Cc: linux-raid@vger.kernel.org
Subject: Re: Raid 5 to Raid 1 (half of the data not required)
Date: Wed, 24 Aug 2011 08:34:54 +0100	[thread overview]
Message-ID: <20110824073454.GA1925@cthulhu.home.robinhill.me.uk> (raw)
In-Reply-To: <20110824123938.6743e87c@notabene.brown>

[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]

On Wed Aug 24, 2011 at 12:39:38 +1000, NeilBrown wrote:

> On Tue, 23 Aug 2011 22:18:12 -0400 Mike Viau <viaum@sheridanc.on.ca> wrote:
> 
> > 
> > I am not sure how crack-pot of a solution this would be, but could I: 
> > 
> > 1/ mdadm -r /dev/md0 /dev/sde1
> > Remove /dev/sde1 from the raid 5 array
> 
> Here you have lost your redundancy .... your choice I guess.
> 
> > 
> > 2/ dd if=/dev/zero of=/dev/sde1 bs=512 count=1
> > This clears the msdos mbr and clears the partitions
> > 
> > 3/ parted, fdisk or cfdisk to create a new 1TB (or less is possible as well) ext4 partition on /dev/sde
> > 
> > 4/ mkfs.ext4 /dev/sde1
> > 
> > 5/ cp -R {mounted location of degraded /dev/md0 partition} {mounted location of /dev/sde1 partition}
> > Aka backup
> > 

If you're wanting to backup, "cp -a" would be better than "cp -R",
otherwise you lose attributes & symlinks.

Cheers,
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <robin@robinhill.me.uk> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-08-24  7:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23 23:41 Raid 5 to Raid 1 (half of the data not required) Mike Viau
2011-08-24  0:46 ` NeilBrown
     [not found]   ` <BAY148-W29A568212EC52E4C4BC52EF110@phx.gbl>
2011-08-24  2:39     ` NeilBrown
2011-08-24  7:34       ` Robin Hill [this message]
2011-08-24  8:03 ` Gordon Henderson
2011-08-24  8:21   ` Mikael Abrahamsson
2011-08-24  8:42     ` NeilBrown
2011-08-26  0:11       ` Mike Viau

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=20110824073454.GA1925@cthulhu.home.robinhill.me.uk \
    --to=robin.hill47@ntlworld.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=viaum@sheridanc.on.ca \
    /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).