raid5 resizing

2007-12-19 Thread CaT
Hi,

I'm thinking of slowly replacing disks in my raid5 array with bigger
disks and then resize the array to fill up the new disks. Is this
possible? Basically I would like to go from:

3 x 500gig RAID5 to 3 x 1tb RAID5, thereby going from 1tb to 2tb of
storage.

It seems like it should be, but... :)

-- 
To the extent that we overreact, we proffer the terrorists the
greatest tribute.
- High Court Judge Michael Kirby
-
To unsubscribe from this list: send the line unsubscribe linux-raid in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: raid5 resizing

2007-12-19 Thread Neil Brown
On Wednesday December 19, [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm thinking of slowly replacing disks in my raid5 array with bigger
 disks and then resize the array to fill up the new disks. Is this
 possible? Basically I would like to go from:
 
 3 x 500gig RAID5 to 3 x 1tb RAID5, thereby going from 1tb to 2tb of
 storage.
 
 It seems like it should be, but... :)

Yes.

mdadm --grow /dev/mdX --size=max

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


Re: raid5 resizing

2007-12-19 Thread CaT
On Wed, Dec 19, 2007 at 10:59:41PM +1100, Neil Brown wrote:
 On Wednesday December 19, [EMAIL PROTECTED] wrote:
  Hi,
  
  I'm thinking of slowly replacing disks in my raid5 array with bigger
  disks and then resize the array to fill up the new disks. Is this
  possible? Basically I would like to go from:
  
  3 x 500gig RAID5 to 3 x 1tb RAID5, thereby going from 1tb to 2tb of
  storage.
  
  It seems like it should be, but... :)
 
 Yes.
 
 mdadm --grow /dev/mdX --size=max

Oh -joy-. I love linux sw raid. :) The only thing it seems to lack is
battery backed-up cache.

Thank you.

-- 
To the extent that we overreact, we proffer the terrorists the
greatest tribute.
- High Court Judge Michael Kirby
-
To unsubscribe from this list: send the line unsubscribe linux-raid in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: raid5 resizing

2006-05-01 Thread Mike Hardy

Neil Brown wrote:
 On Monday May 1, [EMAIL PROTECTED] wrote:
 
Hey folks.

There's no point in using LVM on a raid5 setup if all you intend to do
in the future is resize the filesystem on it, is there? The new raid5
resizing code takes care of providing the extra space and then as long
as the say ext3 filesystem is created with resize_inode all should be
sweet. Right? Or have I missed something crucial here? :)
 
 
 You are correct.  md/raid5 makes the extra space available all by
 itself. 

Further - even if you don't create the filesystem with the right amount
of extra metadata space for online resizing, you can resize any ext2/3
filesystem offline, and it doesn't take very long. You just use
resize2fsf instead of ext2online

-Mike
-
To unsubscribe from this list: send the line unsubscribe linux-raid in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: raid5 resizing

2006-04-30 Thread Neil Brown
On Monday May 1, [EMAIL PROTECTED] wrote:
 Hey folks.
 
 There's no point in using LVM on a raid5 setup if all you intend to do
 in the future is resize the filesystem on it, is there? The new raid5
 resizing code takes care of providing the extra space and then as long
 as the say ext3 filesystem is created with resize_inode all should be
 sweet. Right? Or have I missed something crucial here? :)

You are correct.  md/raid5 makes the extra space available all by
itself. 

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