Solved

Hard drive configuration option on a Linux OS

Posted on 2012-04-12
6
312 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 88

Assisted Solution

by:rindi
rindi earned 125 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 63 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 125 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 20

Assisted Solution

by:Daniel McAllister
Daniel McAllister earned 62 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

730 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