Solved

Hard drive configuration option on a Linux OS

Posted on 2012-04-12
6
309 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 87

Assisted Solution

by:rindi
rindi earned 125 total points
Comment Utility
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
Comment Utility
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 87

Assisted Solution

by:rindi
rindi earned 125 total points
Comment Utility
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 20

Assisted Solution

by:Daniel McAllister
Daniel McAllister earned 62 total points
Comment Utility
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
Comment Utility
Thanks to all.
0
 

Author Comment

by:lipotech
Comment Utility
Thank you.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now