I have a server I would like to use explicitly for running virtual machines under Ubuntu Server 12.04. It has plenty of RAM, 64GB and three large identical HDD´s. I would like redundancy through software.
How would you recommend I set it up storage?
Thought process:
Follow these steps: (Tested in a VM)
FREE SPACE
on each HDD and create a new primary partition taking up the entire disk minus RAM + 1MB (which is left for a swap area), used as a physical volume for RAID with the bootable flagon
.FREE SPACE
on each HDD and create a new primary partition taking up the rest of the disk (RAM + 1MB), used as a physical volume for RAID with the bootable flagoff
.Configure software RAID
Create an MD device
withRAID1
asSoftware RAID device type
. Set thenumber of active devices for the RAID1 array
to2
and thenumber of spare devices for the RAID1 array
to1
. Select the first two devices of equal size not intended for a swap area as active in the RAID1 array and the last one (of equal size to the first two) as a spare.Create an MD device
withRAID1
asSoftware RAID device type
. Set thenumber of active devices for the RAID1 array
to2
and thenumber of spare devices for the RAID1 array
to1
. Select the first two devices of equal size intended for a swap area as active in the RAID1 array and the last one (of equal size to the first two) as a spare.#1
slot underRAID1 device #0
(you may have a small slot which is marked as unusable, don´t mind it). Use asExt4 journaling file system
with mount point set to/
andtypical usage
set tolargefile4
.#1
slot underRAID1 device #1
(you may have a small slot which is marked as unusable, don´t mind it). Use asswap area
.Finish partitioning and write changes to disk
s.Yes
to the question if you want to boot the system if your RAID becomes degraded.