LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-05-2011, 02:25 AM   #1
wincen
LQ Newbie
 
Registered: Jun 2002
Posts: 28

Rep: Reputation: 15
server setup advice on raid and encryption


I've decided to try and set up a simple home server with debian. I can either install the OS on a compact flash card and use hard disks as storage, or just install everything on the hard disk.

I'd also like to set up a software raid for mirroring. I've never done this before, and most recently updated documentation i've found is for ubuntu. Any advice or good links someone can point me to on how to set up raid?

Lastly I'd like to encrypt my hard disks but I don't know what my options are. It seems like people point to truecrypt, but i'm wondering what else is out there or if people have any advice on this. Would it be feasible to do this if I install the OS on a compact flash card and?
 
Old 01-05-2011, 02:45 AM   #2
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 866

Rep: Reputation: 110Reputation: 110
I've never doen the encryption part but your raid setup varies. What raid type do you want and what type off hardware do you have. It is always recommend to have a raid card but a software raid can work i think with reduced performance though. You can you raid to increace I/O, redundancy, or both. For production servers best setup in my opinion is a raid 10 (requireds 4+ hard drives) with 10-15k RPM Hard drives but if you don't expect to have much traffic then raid 1 which the hard drives mirror each other (requires 2 hard drives) giving you redundancy.

Here is a site that may better your understanding on raids http://en.wikipedia.org/wiki/RAID

Need more information to better help you.
 
Old 01-05-2011, 04:30 AM   #3
wincen
LQ Newbie
 
Registered: Jun 2002
Posts: 28

Original Poster
Rep: Reputation: 15
I'm using really simple hardware. I'm using a MSI nettop (http://www.newegg.com/Product/Produc...82E16856167037) which does not have hardware RAID so I'm forced to use software raid. It's small, doesn't use too much power, and just for me to use. I plan to use it for my personal version control server, maybe a webserver for myself, and also a fileserver.

Ideally I'd like to have RAID 1 especially since I can only have 2 hard disks in this thing.

What other information would be helpful?
 
Old 01-05-2011, 05:00 AM   #4
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
I would recommend that you configure the software RAID-1 when you install the server. It is much easier and less trouble prone than trying to create it after the fact. Also this will ensure that mdadm gets built into your ram image for support from the start. This will add a small amount of complexity to the partitioning process. I use this very same technique on one of my servers to provide mirroring of the HD and from what I can tell, it works very well. Based upon your usage description, I don't think you will have any problems. You are clearly not in what would typically be considered a "production" use case. I would also recommend that you just go ahead and put the entire system on the hard drive and forget the compact flash cards for two reasons. First, hard drives are very reliable and don't suffer from write/erase limitations which can be problematic for flash as as OS because the same sectors will tend to get hit a lot. Second, if you mirror your drives and make them both bootable, you will be able to fully boot and run your system with only one drive should you need.

When you perform the install, you will need to partition your drives. I don't recall the exact process, but when you do this, select that you want to make a raid partition. It will then ask you which devices to add to the raid and the type of raid you want. The process is quite straight forward, but you may need to do a little trial and error.From there you can create the various partitions for your server. You may want to make separate root and home partitions but this really doesn't matter. You should create a swap partition though. When I created mine, I made a small swap partition at the top of both drives (they are identical mirrors). The easiest way to go is to make one large raid 1 partition, mount it as /. Unless you plan to install multiple distributions or something this will be fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need advice on server setup zogthegreat Linux - Server 3 09-15-2009 12:17 AM
Raid 5 SATA setup - advice needed andy-holland Linux - Hardware 3 12-18-2007 04:10 AM
Need advice setting up a SAMBA DC/file server w/SW RAID stromdal Linux - Newbie 3 08-11-2007 05:16 PM
Some advice with software raid on an old server? Guttorm Debian 2 07-11-2006 05:38 AM
Advice on RAID setup banhbao Linux - Hardware 5 03-04-2005 04:27 PM


All times are GMT -5. The time now is 05:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration