Re: extending raid-5 ?

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

 



On Mon, 2009-05-11 at 01:00 +0200, Rainer Fuegenstein wrote:
> hi,
> 
> I'm currently using a 4*750GB SATA RAID-5 under centos 5.2 (mdadm
> v2.6.4, kernel 2.6.18-128.1.6.el5) which I need to exend by replacing
> the 750GB disks with 1.5TB ones.
> 
> since the mainboard has only 4 SATA ports, I need to replace one disk
> after the other. I came up with the following plan:
> 
> 1) fail first disk
>   mdadm /dev/md0 -f /dev/sda1
> 
> 2) remove first disk
>   mdadm /dev/md0 -r /dev/sda1
> 
> 3) shutdown the server, unplug 750GB sda drive, plug in 1.5TB drive

If you are going to do downtime anyway, i would suggest you just down
the box, and then copy the data with dd, that way you should probably be
able to avoid the costly resync, plus temporary loss of redundancy

> 4) create a linux raid autodetect partition on sda which covers the
> whole 1.5TB
> 
> 5) add new device to the raid5 and wait until resync has finished
>   mdadm /dev/md0 -a /dev/sda1
>   
> ... repeat steps 1 tp 5 for sdb to sdd
> 
> 6) grow the raid
>   mdadm --grow /dev/md0
> 
> 7) resize the xfs filesystem
>    xfs_growfs /md0-mount-point
>    
> is this the proper way to do it, are there any issues I should know
> about ?

> 
> thnx in advance.
> 
> --
> 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

--
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