Thursday, May 13, 2010

Upgrade to lucid 10.04

So I finally decided to upgrade this box to the latest.

I actually went through the upgrade process instead of a reinstall. Everything seemed to have worked except for deluge and the raid array.

Deluge is now in the repositories for 10.04, so I just had to do:
sudo apt-get install deluge-web
sudo apt-get install deluged
And went to the url localhost:8112 to get to the web ui.

As for the raid array, it didn't work of course. I noticed that the drives weren't the same as before (old raid was sdc1 and sde1) so I needed to figure out which was raid drives. I ran fdisk -l on all the drives to figure out which ones were the 500G drives. Turns out it's sdc and sde this time.

I ran this command:
sudo mdadm --examine --scan

And it returned:
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=3c0abf28:e3777924:ffe566c0:e15f2e9c
I copied that to the /etc/mdadm/mdadm.conf since the UUID seems to have changed.
sudo vi /etc/mdadm/mdadm.conf
and put this in:
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=3c0abf28:e3777924:ffe566c0:e15f2e9c
changed my fstab entry to:
/dev/md0 /raid-drive ext3 defaults,errors=remount-ro 0 2
ran this command:
sudo update-initramfs -u
tell mdadm to assemble the array:
sudo mdadm -A --scan
mount the array:
sudo mount /raid-drive