Re: Failing to grow raid10 with one larger disk
From: Adam Goryachev <hidden>
Date: 2013-01-25 01:32:11
On 25/01/13 12:22, Asif Iqbal wrote:
On Thu, Jan 24, 2013 at 8:09 PM, Brad Campbell [off-list ref] wrote:quoted
On 25/01/13 09:02, Asif Iqbal wrote:quoted
I was hoping to grow the size of the raid10. I was following this link https://raid.wiki.kernel.org/index.php/Growing#Expanding_existing_partitionsRe-read the second sentence on the first line of that page.doh! so I can only grow raid level 1/4/5/6 ok, can you suggest how can I increase the /dir (/dev/md10) with bigger disks? I already backed up the data. does linux software raid allow disks of different sizes in raid10? I did not see much discussion of raid level 10 in that wiki page.
From my understanding, there are two methods: 1) Create new RAID10, dd old RAID10 to new one, expand filesystem/lvm/whatever is on the RAID10 2) Don't use RAID10, use RAID1 + linear. Don't increase the size of members, only add additional pairs at the end of the linear array. 3) The one exception to 2 is that you can expand the size of the last pair, but this is somewhat tricky. I've done this successfully twice, but I doubt you really want to be using linear anyway. Regards, Adam -- Adam Goryachev Website Managers www.websitemanagers.com.au