Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
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.
There's a good LVM howto http://tldp.org/HOWTO/LVM-HOWTO/ . Note you've almost definitely got LVM v2.
You can put LVM on top of raid. Do the raid first, then assign the /dev/mdX to a PV (see lvm howto).
I was in almost the same situation as you and I decided to use OpenSUSE 11.1 with RAID under LVM. If you make the switch let me know how you like Ubuntu. I've never used Ubuntu, but I know that from what I've found using other distributions they only have a good GUI for editing RAID in the installer, but once they were installed the GUI's for working with RAID and LVM were horrible. That's why I use OpenSUSE, with SUSE you can actually set up the RAID 5 and LVM post install which I've found somewhat hard to do on other distributions. If you decide to give OpenSUSE a spin check here's a tutorial that I wrote on how to setup RAID under LVM on OpenSUSE 11.1 (GNOME) with a GUI. If you stick with Ubuntu let me know how you like it as I always like to give distributions a test.
I've been using ubuntu about 3 years now(before that gentoo).
I've never been happier with my choice.
I did make a switch from regular ubuntu to xubuntu tho (I prefer xfce)
The installer on the alternate installer cd works very well for setting up raid before install. It took about 5 minutes to set up my raid1 boot partition + raid1 root partition + raid5 data partition.
When install was done, I set up lvm on the raid5 one, which took another 5 minutes of reading - then 3-4 hours to sync.
In the last few days i've set up the same thing for my other pc which has 200gb+200gb+200gb+300gb+400gb disks.
raid5 for 200gb on each drive. 100gb backup space on the 400gb disk.
and raid1 for root\boot partition between 300 and 400gb disks.
Here's some helpful sites which helps you setting up raid 1\5(+lvm):