I have a linux server (running Ubuntu 12.04 Server currently) that I need to set up multiple hard drives of differing sizes in primarily for media/backup purposes.
The sizes are:
And I'll probably add more at some later date.
I've set up quite a few servers in the past running software RAID1 across only two disks, which works well, but they were always the same size and couldn't be expanded anyway, so RAID1 was the right option.
Here I have been reading up on LVM and/or LVM2, and from what I can tell I have quite a few options, some of which I can think of are:
- put RAID1 at lowest level, partition 2TB drive to 1x1TB, 2x500GB partitions
- mirror the 2x3TB together /dev/md0
- mirror 1TB and 1TB partition on 2TB drive /dev/md1
- mirror 500GB and 500GB partition on 2TB drive /dev/md2
- mirror 500GB and 500GB partition on 2TB drive /dev/md3
- I can then:
- use LVM to combine /dev/md* to a single volume and put my filesystem on that
- format and mount them all separately, then use unionfs-fuse to present a single 'view' of them
- LVM(2?) group all the drives with mirroring enabled (not actually sure how to do this)
- LVM group the smaller ones and put RAID1 over top of it (I've seen people say mdadm over LVM isn't advised, but no reasons why)
- RAID0 the smaller ones and put RAID1 over top of that
For a filesystem I'd probably go with ext4 by default, unless there is a reason to go with something else.
Can anyone give me some ideas or pointers in the right direction? Thanks!