[lug] upgrading sw raid 1 hard drives to larger size

karl horlen horlenkarl at yahoo.com
Fri Aug 14 21:52:11 MDT 2009


thanks for the info..  i'll have to read through it and give it a shot

--- On Wed, 8/12/09, David L. Anselmi <anselmi at anselmi.us> wrote:

> From: David L. Anselmi <anselmi at anselmi.us>
> Subject: Re: [lug] upgrading sw raid 1 hard drives to larger size
> To: "Boulder (Colorado) Linux Users Group -- General Mailing List" <lug at lug.boulder.co.us>
> Date: Wednesday, August 12, 2009, 9:37 PM
> karl horlen wrote:
> > i've currently got centos 5 raid 1 system with small
> drives.  i'd
> > like to upgrade both drives to larger
> capacities.  i only have two
> > drive slots in my rack system.  so i have to
> replace the drives that
> > are currently in the system.
> 
> This looks close:
> 
> http://mkfblog.blogspot.com/2007/11/resizing-raid1-system-partition.html
> 
> There might be cooler ways to do it but this seems to meet
> your needs.
> 
> > if so, could someone offer up some guidelines / steps
> to how to do
> > this?  i installed it with LVM which might
> complicate the matter.
> 
> Yes, it does.  The above link grows the md device to
> match the physical 
> partition, and then grows the ext3 fs to match the md
> device.
> 
> You'll need to grow the PV to match the md device. 
> But maybe that's 
> cooler than we need.
> 
> Ah, here's some info about pvresize (if you can wade
> through the rest):
> 
> http://www.howtoforge.com/how-to-resize-lvm-software-raid1-partitions-shrink-and-grow
> 
> But suppose your drives are 80GB and you put in new 300GB
> drives. 
> Follow the directions on the first link and make the first
> partition the 
> same 80GB.  Rebuild the array on to that.
> 
> To use the rest of the disk, add partitions to it (one is
> easy, you can 
> do more if you want more flexibility) and then create PVs
> out of them. 
> You can add blocks from those PVs to your LVs as you need
> them.
> 
> Dave
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667
> channel=#hackingsociety
> 


      



More information about the LUG mailing list