[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Hard drive configuration option on a Linux OS

Posted on 2012-04-12
6
Medium Priority
?
326 Views
Last Modified: 2012-04-16
What is best practice for configuring two 500GB hard drives using Linux?  I plan to install an IDS service on the platform and would like to take advantage of both physical drives. Can it be a 1+0 set?

I am not familar with Linux beyond basic caommand sets.

Thank you.
0
Comment
Question by:lipotech
6 Comments
 
LVL 88

Assisted Solution

by:rindi
rindi earned 500 total points
ID: 37841334
The OS is irrelevant here. If you have 2 disks of the same size I'd use RAID 1 with every OS.
0
 
LVL 13

Accepted Solution

by:
Sandy earned 252 total points
ID: 37841415
Yes,  you can go ahead with this and i suggest you to use raid 0 in case you are seeking redundancy.

#mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1 will help you in this required.
0
 
LVL 88

Assisted Solution

by:rindi
rindi earned 500 total points
ID: 37841496
No, RAID 0 is the opposite of redundancy. If one disk fails in a RAID 0 array, you loose everything, your OS and data. RAID 0 is only good if you need speed and for temporary data.

RAID 1 (mirroring) is the only 2-disk array that gives you redundancy. If one disk fails and the other is fine, your OS and all your Data will still be fine.

Please note that no form of RAID excuses you from making backups.
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 21

Assisted Solution

by:Daniel McAllister
Daniel McAllister earned 248 total points
ID: 37842641
The linix mdraid command set will allow (and help you) create a RAID 10 (which is a combined RAID 1 (mirror) and RAID 0 (stripe) set using just 2 disks (essentially, the disks are each split in half). The resulting performance isn't as nice as a RAID 10 set with 4 drives, but it's better than just the RAID 1 performance.

<from the Linux RAID creation wkik>
RAID10,F2

The Linux MD raid10 has another way to be created - it uses only one mdadm command. For an array of 4 drives use:

# mdadm -C /dev/md0 --chunk=256 -n 4 -l 10 -p f2 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1

Note that this can even be done with only 2 drives (-n 2). For newer drives as of 2008 it is recommended by the people on the linux-raid kernel mailing list to use chunk sizes between 256 kiB and 1 MiB.

To be clear, using 2 drives is trickier... (you'd use pieces with labels like /dev/sda1 /dev/sda2 /dev/sdb1 /dev/sdb2), but mdadm is supposed to be able to figure all that out for you...

Of course, with a pair of 500GB drives, using RAID 10 gives you only 500GB of usable space....

Good luck!

Dan
0
 

Author Closing Comment

by:lipotech
ID: 37851155
Thanks to all.
0
 

Author Comment

by:lipotech
ID: 37851158
Thank you.
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month18 days, 10 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question