Linux - NewbieThis 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
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.