Setup up lvm raid1(boot,root,home),raid5(media)
I will be receiving a new 1.5TB harddisk tomorrow(hopefully), and I would like to set up lvm and raid-5 for data, and raid-1 for home,root and boot.
I have no experience whatsoever with lvm or raid in linux, but I have a pretty good idea how raid works.
This is my current system:
Disk /dev/sda: 300.0 GB, 300069052416 bytes
Disk /dev/sdb: 400.0 GB, 400088457216 bytes
Disk /dev/sdc: 200.0 GB, 200049647616 bytes
Disk /dev/sdd: 750.1 GB, 750156374016 bytes
Disk /dev/sde: 500.1 GB, 500107862016 bytes
Disk /dev/sdf: 750.1 GB, 750156374016 bytes
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 278G 258G 6.2G 98% /mnt/Movies
/dev/sdb1 370G 344G 7.2G 98% /mnt/TV/TV-2
/dev/sdc1 49G 23G 24G 50% /
/dev/sdc3 135G 119G 9.7G 93% /mnt/ISO
/dev/sdd1 694G 607G 53G 93% /mnt/TV/TV-1
/dev/sde1 463G 292G 148G 67% /mnt/x264/x264-2
/dev/sdf1 694G 608G 51G 93% /mnt/x264/x264-1
total used 2249gb
I will add a 1.5TB disk, and remove the 200gb,300gb and 400gb (When data has been transferred)
My plan is this:
2x750gb 750 036 374 016
1 "000 120 000 000" /boot (lvm-raid1) ext2
2 "000 500 000 000" swap
3 "049 308 512 000" / (lvm-raid1) reiserfs
4 "200 000 000 000" /home (lvm-raid1) reiserfs
5 "500 107 862 016" ? (lvm-raid5) ?
1x1500gb 1 500 000 000 000
1 "1500 000 000 000" /mnt/data ?
1x500gb 500 107 862 016
1 "500 107 862 016" ? (lvm-raid5) ?
As you can see I want is:
raid-5 on 3x500GB partitions for data (xfs?)
raid-1 on 2x120MB partitions for boot (ext2)
raid-1 on 2x49GB partitions for root (reiserfs)
raid-1 on 2x200GB partitions for home (reiserfs)
Then all I have left is the new 1.5TB disk which I want to use lvm with raid-5 on later when I can afford 2 more 1.5TB disks. but for now it will just be a single disk.
How should I set this up? Please provide as much info as you can.
Another question: Which filesystem do you recommend for data, and how should it be set up? I will be storing many large files on the lvm(average of 200MB or so) There will also be some small textfiles, so I don't want a 1KB file to eat 1MB or something crazy like that
I was thinking about using the xfs filesystem, but I'm not convinced yet.
Thanks for any replies.
edit: Forgot to mention, I am able to delete\move some of the data to another pc, however I would like to avoid it if possible. Can probably free up 500GB if necessary.
Also I will be installing xubuntu 8.04 LTS (I'm downloading the alternate cd as I type this)
Last edited by wallbunny; 09-24-2009 at 10:16 AM.