Re: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-23 Thread Stephen Harris
On Fri, Aug 22, 2008 at 03:21:51PM -0400, Stephen Harris wrote: I wonder if I could boot off a Ubuntu CD or something and grow the array that way. Would be annoying (many hours of server downtime)... In the end I booted a CentOS 5.2 DVD in rescue mode. This appears to have improved since

Re: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Jussi Hirvi
So then I tried the next step: mdadm --grow --raid-devices=5 /dev/md3 But now I have problems... mdadm: Cannot set device size/shape for /dev/md3: Invalid argument What happens, if you add --size=max ? - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki *

Re: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Stephen Harris
On Fri, Aug 22, 2008 at 08:26:01PM +0300, Jussi Hirvi wrote: So then I tried the next step: mdadm --grow --raid-devices=5 /dev/md3 But now I have problems... mdadm: Cannot set device size/shape for /dev/md3: Invalid argument What happens, if you add --size=max % mdadm --grow

Re: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Jussi Hirvi
What happens, if you add --size=max Stephen Harris [EMAIL PROTECTED] escribio (22.8.2008 20:27) % mdadm --grow --raid-devices=5 --size=max /dev/md3 mdadm: can change at most one of size, raiddisks, and layout --size=max is for use when a failed disk is replaced with a bigger one. Ok. I

Re: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Stephen Harris
On Fri, Aug 22, 2008 at 08:41:25PM +0300, Jussi Hirvi wrote: How about simply % mdadm --grow /dev/md3 % mdadm --grow /dev/md3 mdadm: no changes to --grow What do you get with % mdadm --detail /dev/md3 /dev/md3: Version : 00.90.01 Creation Time : Wed Aug 20 08:44:30 2008

RE: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Ross S. W. Walker
Stephen Harris wrote: On Fri, Aug 22, 2008 at 08:41:25PM +0300, Jussi Hirvi wrote: How about simply % mdadm --grow /dev/md3 % mdadm --grow /dev/md3 mdadm: no changes to --grow What do you get with % mdadm --detail /dev/md3 /dev/md3: snip Number Major Minor

Re: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Stephen Harris
On Fri, Aug 22, 2008 at 02:25:20PM -0400, Ross S. W. Walker wrote: I don't think you can grow it without backing it up, destroying it, rebuilding it with 5 devices, then restoring. You _can_... but it requires a newer kernel. See, for example,

Re: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread John R Pierce
Stephen Harris wrote: A RAID-5 set can be expanded by adding extra drives. This requires restriping the array which means (almost) every block must be written to a different place. This option allows such restriping to be done while the array is

RE: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Ross S. W. Walker
John R Pierce wrote: Stephen Harris wrote: A RAID-5 set can be expanded by adding extra drives. This requires restriping the array which means (almost) every block must be written to a different place. This option allows such restriping to be done

Re: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Stephen Harris
On Fri, Aug 22, 2008 at 02:50:29PM -0400, Ross S. W. Walker wrote: It would probably be faster to backup, rebuild and restore too... The whole reason I need to extend like this is because I don't have any easy way of backing up 1.3Tbytes of data. While the rebuild is happening the existing

RE: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Ross S. W. Walker
Stephen Harris wrote: On Fri, Aug 22, 2008 at 02:50:29PM -0400, Ross S. W. Walker wrote: It would probably be faster to backup, rebuild and restore too... The whole reason I need to extend like this is because I don't have any easy way of backing up 1.3Tbytes of data. While the rebuild

Re: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Stephen Harris
On Fri, Aug 22, 2008 at 03:05:30PM -0400, Ross S. W. Walker wrote: Stephen Harris wrote: Or you could just boot from a LiveCD of a distro that was this and run a conversion there, it would make it unavailable during the conversion though. *grin* My first email on this subject... I

RE: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Ross S. W. Walker
Stephen Harris wrote: On Fri, Aug 22, 2008 at 03:05:30PM -0400, Ross S. W. Walker wrote: Stephen Harris wrote: Or you could just boot from a LiveCD of a distro that was this and run a conversion there, it would make it unavailable during the conversion though. *grin* My first email

Re: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Stephen Harris
On Fri, Aug 22, 2008 at 03:31:31PM -0400, Ross S. W. Walker wrote: I wouldn't use Ubuntu or any Debian based distro cause it's EVMS just might bugger up the LVM config... Huh. Dunno what EVMS is, but thanks for the warning! Instead of a second machine, how about an external disk enclosure?

RE: [CentOS] Growing RAID5 on CentOS 4.6

2008-08-22 Thread Ross S. W. Walker
Stephen Harris wrote: On Fri, Aug 22, 2008 at 03:31:31PM -0400, Ross S. W. Walker wrote: I wouldn't use Ubuntu or any Debian based distro cause it's EVMS just might bugger up the LVM config... Huh. Dunno what EVMS is, but thanks for the warning! EVMS is like a storage management