Enlarge linux software mirror raid 1 howto
Scenario
A linux box running on a software raid 1 mirror harddisk (120GB), recently the server is running out of disk space. A new pair of harddisk with larger capacity (500GB) is going to replace the existing pair.
Current disk layout
100MB md0:/dev/sda1, /dev/sda2
111GB md1:/dev/sdb1, /dev/sdb2
/boot /dev/md0
VolGroup00 /dev/md1
- LogVol00 swap
- LogVol01 /
Synchronize the data to new harddisk
- Shutdown the box
- remove sdb from the box
- replace with the new 500GB disk