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, 24 Aug 2011 10:21:32 +0200 (CEST) Mikael Abrahamsson
<swmike@xxxxxxxxx> wrote:

> On Wed, 24 Aug 2011, Gordon Henderson wrote:
> 
> > This isn't as "glamorous" as Neils method involving lots of mdadm 
> > commands, shrinks and grows, but sometimes it's good to keep things at a 
> > simpler level?
> 
> Another way would be to add the new raid1 with missing drive to the lv, 
> and pvmove all extents off of the existing raid5 md pv, then vgreduce away 
> from it, stop the raid5, zero-superblock, and add one drive to add 
> redundancy for the raid1.
> 
> But that has little to do with linux raid, and all to do with LVM. It also 
> means you can do everything online since pvmove doesn't require to offline 
> anything.
> 

There are certainly lots of approaches. :-)
But every approach will require either coping or shrinking the filesystem and
as extX doesn't support online shrinking the filesystem will have to be
effectively off-line while that shrink happens.
(if you shrink by coping, then it could be technically on-line but it had
better not be written to).

NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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