RAID on Linux


 
Thread Tools Search this Thread
Operating Systems Linux RAID on Linux
# 1  
Old 06-02-2013
RAID on Linux

Dear All,

I have a linux Server having a single disk /dev/sda and two partitions
/dev/sda1 and /dev/sda2. Up on which a Logical Volume is created for root partition.

Now the task is I need to implement RAID on this machine , namely RAID 1. Kindly clarify whether i can directly go and create RAID for those two partitions sda1 and sda2 in mirrored partition sdb1 and sdb2

OR I need to create logical volume first in Sdb2 and then create mirror.

Also pl let me know if any links for mirroring under logical volumes in linux

Rgds
Rj
# 2  
Old 06-03-2013
The "norm" if using software raid would be to use mdadm (RAID multi disk) to set up the mirrored device.... then place it under LVM as a PV.

However, LVM does provided simple mirroring... but most would not recommend doing it that way.

Even better would be to use some type of HW RAID or RAID subsystem... but obviously those things are pricey.
# 3  
Old 06-03-2013
Having a RAID array consisting of two partitions in the same disk defeats the whole purpose of using RAID at all.

...Unless it's a lab environment or you're just practicing md commands.
# 4  
Old 06-04-2013
HI verdepollo,

Can u pl explain how ...why you are saying so.
# 5  
Old 06-04-2013
The main purpose of RAID is to provide some level of redundancy and/or performance gain (RAID 0) by using more than 1 disk.

If all your partitions reside on the same disk then there is no benefit of using RAID since in case of disk failure all your data will be gone regardless of RAID level. (E.g. RAID 5 won't be more "safe" than RAID 0).

In the case of RAID 0 where you're supposed to merge two or more disks together to achieve faster I/O operations, it's completely useless as your disk has a limited amount of mechanical heads and they cannot move faster than their assembly allows, so you'll see no I/O benefit either.

Software RAID also requires system resources (CPU, RAM, etc) as opposed to a *true* hardware RAID which provides its own electronic circuitry that handles the requirements.

Also, if your /boot partition is controlled by software RAID it's more difficult to recover in case of failure. Some systems won't recognise it as a valid partition and you'll need to perform some extra steps to work around the issue.

Software RAID is better than no RAID at all and may provide some benefits here and there, but a RAID array that uses partition that reside in the same disk is pointless.
# 6  
Old 06-06-2013
"If all your partitions reside on the same disk then there is no benefit of using RAID since in case of disk failure all your data will be gone regardless of RAID level. (E.g. RAID 5 won't be more "safe" than RAID 0)."

In the above point , I wanted to know anyhow we aare going to mirror it right in case of RAID 1. So if one disk goes off we have another disk.

Kindly clarify.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Identify failed disk in Linux RAID

Good Evening, 2 years ago, I set up an Ubuntu file-server for a friend, who is a photograph amateur. Basically, the server offers a software RAID-5 that can be accessed remotely from a MAC. Unfortunately, I didn't labeled the hard drives (i.e. which physical drive corresponds to the /dev/sdX... (2 Replies)
Discussion started by: Loic Domaigne
2 Replies

2. Linux

Help Setting up Linux Raid Server

I just built a home computer with 3TB hard drives I wanted to set up in a RAID 5 and load Ubuntu server onto it. The first thing I did was set up the drives in a RAID 5 using just the motherboard chipset software to do it, so a 'hardware' RAID basically. I installed Windows first to see if... (2 Replies)
Discussion started by: lorewap3
2 Replies

3. Windows & DOS: Issues & Discussions

How To Check Hardware RAID On Windows and Linux

Hello, I have Win NT server running and I want to know how can I get Hardware RAID settings without rebooting the server? Thanks in advance. (2 Replies)
Discussion started by: sureshcisco
2 Replies

4. Red Hat

linux server with raid controller card

I am planning on building a fedora box with raid controller (database server). Is anybody done that ? also what kind of software do you need to backup and recover data. (1 Reply)
Discussion started by: amir07
1 Replies

5. Linux

Reg. RAID in linux

Hi Guys, I had a small task to install linux using Kickstart(Remote Installation) in sun x4450 server. Any document with screen shot for linux installation. please assist me, Thanks in Advance. specifications 2* Quad core 2.93 ghz cpu 32 gb 4 * 146 gb harddisk (1 Reply)
Discussion started by: kurva
1 Replies

6. Linux

Software RAID on Linux

Hey, I have worked with Linux for some time, but have not gotten into the specifics of hard drive tuning or software RAID. This is about to change. I have a Dell PowerEdge T105 at home and I am purchasing the following: 1GBx4 DDR2 ECC PC6400 RAM Rosewill RSV-5 E-Sata 5 bay disk enclosure... (6 Replies)
Discussion started by: mark54g
6 Replies

7. Linux

how to identify the raid type on Linux?

Hi any idea on why I am getting this? /sbin/mdadm --detail /dev/md0 mdadm: md device /dev/md0 does not appear to be active. thanks. (2 Replies)
Discussion started by: melanie_pfefer
2 Replies

8. Red Hat

RAID on Red Hat Linux 7.2

Hi all I have an old Compaq DL380 (G1) server with 4 hard disks. It is running Red Hat Linux 7.2 One of the disks died. I didn't build the box myself. How would I determine if software RAID was configured? I had a look a /etc/fstab, but it's only referring to ida/c0d0 The... (3 Replies)
Discussion started by: soliberus
3 Replies

9. Filesystems, Disks and Memory

Raid With Suse Linux

Hello i have a linux suse server and im having problems installing a highpoint rocket raid 2220 driver. The raid card is a pci card made buy highpoint tech on there web site they have the linux suse server driver i now have that driver on the desktop but dont know how to install it. The lunix... (0 Replies)
Discussion started by: Vaughan
0 Replies
Login or Register to Ask a Question