Raid'ing mounted partitions in LInux

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
Hey Ladies and Gents,

I've got an Ubuntu 9.04 machine that boots from a CF->IDE adapter and has a 750GB as an additional drive.

/var
/home
/tmp
/storage
and swap are on the 750GB

I now would like to mirror the 750GB to another 750GB.

I unmounted /storage and created an md device and then hot added the second drive's partition (so that it wouldn't wipe out data). I'm not at all sure I could unmount the others though. Any thoughts would be appreciated.

Joe
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
I've come across an article on how to do exactly this, but I can't remember where, and I can't remember how. Not much help, I know. You might be able to find information scouring googls, but personally I would just use a livecd.
 

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
AH! A live CD... why didn't I think of that!

What about fstab? I just looked, and it no longer directly refers to devices, but gives a UUID for things.

e.g.:
================================
UUID=51d94079-ccae-40cb-96e6-d995648ac739 / ext2 relatime,erro$
# /boot was on /dev/sdc1 during installation
UUID=bbdba62b-629d-4f7d-b91e-154448666854 /boot ext2 relatime $
# /home was on /dev/sda3 during installation
UUID=36e32cb5-bced-4eb0-bbc1-639d5f8be7f4 /home ext4 relatime $
# /storage was on /dev/sda4 during installation
================================

Where would I get the UUID for the new md devices?

Joe
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I prefer either LVM volumes or filesystem labels since they're infnitely more readable.