750GB hard disks have been at the $/GB sweet spot for a while now, and now that they’ve hit $100, I decided to upgrade my home directory RAID-1 from 250GB to 750GB. I really dread these upgrades, as there’s always a chance you can really screw things up. So, for when I upgrade to 2TB or whatever in two years, I wrote up some notes.
In my configuration, sdb1 and sdc1 are the partitions currently part of my RAID-1 md0. sdd is one of the 750GB disks. I’m adding one 750GB disk at a time, because 1) I want at least two copies of my data to be available at all times and 2) I only have one free drive bay and don’t want disks dangling next to the machine for hours.
mdadm -G /dev/md0 -n 3
badblocks -svw -t random -p 2 /dev/sdd
mdadm /dev/md0 --add /dev/sdd1
mdadm /dev/md0 -f /dev/sdc1 -r /dev/sdc1
shred -v -n 2 -z /dev/sdc
mdadm -G /dev/md0 -n 2
sudo mdadm -G /dev/md0 --size=max
umount /home
resize_reiserfs /dev/md0
mount /home
shred -v -n 2 -z /dev/sdb
…and we’re done! The one annoying thing is that with testing and a couple of resyncs, you end up with loads of down time between really short and simple tasks. So it’s possible (and I speak from experience) to stretch this weekend project out over a whole week.