Ubuntu raid 1 resize

Going from 2x320GB HDD Raid 1 to 2x500GB HDD Raid 1 on Ubuntu 10.10

   In this tutorial I’ll show you how I replaced my 2×320 HDD’s with 2×500 HDD’s. In my case the transition was simple because I only needed to resize one partition of the array (the last), leaving the first two untouched. My server setup looks like this :

  1. /dev/md0 – 500 MB for /boot
  2. /dev/md1 – 2 GB for swap
  3. /dev/md2 – 310 GB for /

I only needed to resize the / partition.
Continue reading