Re: Raid 5 to Raid 1 (half of the data not required)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> On Tue, 23 Aug 2011 22:18:12 -0400 Mike Viau <viaum@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

Attachment: pgpbGikC_1a9J.pgp
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux