Solved

Hard drive configuration option on a Linux OS

Posted on 2012-04-12
6
310 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 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…
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.

777 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