Re: Growing after replacing with larger discs
From: Luca Berra <hidden>
Date: 2010-03-12 18:09:10
On Fri, Mar 12, 2010 at 05:39:47PM +0000, John Robinson wrote:
Before I have to go to a customer's premises and try it, I wanted to ask if anyone had already done anything like this: I have a CentOS 5 system with 0.90 metadata and type fd partitions with RAID-5 over 3 discs. I want to grow it by replacing the drives. If I dd the small partitions onto larger ones on the new discs, then reboot, will the system recognise the RAID-5 - which now has its metadata somewhere in the middle of the paritions not at the end - so that I can then --grow?
I believe it won't work
mdadm has no way to know where the metadata is in the above case.
you have to follow the painful procedure
fail one drive (mdadm /dev/mdX --fail /dev/sdY)
remove it (mdadm /dev/mdX --remove /dev/sdY)
replace drive with larger one
create larger partition
add drive again (mdadm /dev/mdX --add /dev/sdY)
wait for it to resync...
...and repeat until all drives have been replaced
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \