[CentOS] Upgrade to new drives in raid, larger

Kai Schaetzl maillists at conactive.com
Sat Dec 13 11:32:20 UTC 2008


Ross Walker wrote on Fri, 12 Dec 2008 19:35:48 -0500:

I think I would do it the same or very similar.

> 4) created a degraded raid1 called md2 out of new sdb2, use --force  
> with mdadm

Why force?

> 7) removed sda1 from md0 and sda2 from md1 killing md1 off, I don't  
> remember if I did a mkinitrd at this point, but if in doubt, generate  
> one

Yes, if your root device path changes, you have to run mkinitrd with the 
*new* fstab.

> 9) fdisk'd boot partition of type autoraid and lvm partition of type  
> autoraid, same as before. Added grub to new sdb mbr.

At this point you can simply copy the structure over with sfdisk and avoid 
the manual creation.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com





More information about the CentOS mailing list