PDA

View Full Version : [all variants] how to set my /home to a raid?



machinakias
November 23rd, 2009, 12:36 PM
hi everyone!
just need some help please....
i want to do this: install ubuntu as usual but i need to have my /home/username directory installed to a raid (mirror) .....
i want to setup some virual machines and i wanna be sure of my data and work!
hope you understand what i need to do....got any ideas?

darkod
November 23rd, 2009, 12:40 PM
Do you want to have only /home on raid or / too?

I haven't used it myself but from reading about LVM and RAID you have to use the Alternate Install ISO, not Desktop. It has text based installer (not GUI) but has more advanced options for lvm and/or raid. After the install is finished the desktop is still GUI, just during the install process it's text based.

Once it recognizes the raid I see no reason not to be able to have /home, / or whatever on a raid array.

i.r.id10t
November 23rd, 2009, 02:33 PM
After the fact, assuming you have a single disk and one big / partition, it is easy.

Plug your 2 disks for the raid in, create your raid volume, mount it at /newhome, log out as your user, log into command line as root, copy your /home/* stuff to /newhome, rename /home to /oldhome, unmount /newhome, mkdir /home, mount the volume at /home, edit /etc/fstab

machinakias
November 23rd, 2009, 03:12 PM
first of all,thanks for your replies folks!
let me be more specific....
i'm setting up an 8.04 ubuntu server.(i want to set some virtual machines in it)

i have 3 hard disks,one for main operating system and i want to move my /home/username directory to the other two (as a RAID) if possible...
or even better,to set one disk for use with one virtual machine and the other disk for another vm....

does it make any sence? can i do it somehow?

gurak2005
November 24th, 2009, 11:52 PM
this guide works for me. hope will work for you

http://kuparinen.org/martti/comp/ubuntu/en/raid.html