Best softwareraid for 2 disk root-server

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Best softwareraid for 2 disk root-server
# 1  
Old 05-14-2009
Best softwareraid for 2 disk root-server

Hi, we have a root-server with 2 Disks, each 750 gb / centos 5.1

we would like to have 4 mirrored data, and 1 mirrored boot-filesystem


what do you think is the best solution, I would like to use linux lvm for a raid1-mirror, but I was told the system wont boot in case of a disk failure

then I need a mirrored /boot, which must be outside lvm

another option is building a linux software raid, and using this device for lvm

what would you do?


cheers funksen
# 2  
Old 05-14-2009
My suggestion: use both disks for RAID 1 (really the full disk, not partitions). Create 2 partitons, one /boot (about 20M should be enough), one for exclusive use by LVM, and create all other filesystems as lvols using LVM. That way it's still bootable even if the kernel doesn't know about the RAID and it's loaded later on.
# 3  
Old 05-15-2009
I would disagree with pludi,

RH even says, about 70MB is the minimum these days for /boot, as you may have multiple kernels in there and 20MB may make this impossible. I would suggest about 100-200MB at least for /boot, and if you are not using all of it, on a 750GB drive, so be it.
This is what I did on my server (however, I run SUSE)

/boot is /dev/md0 (you will have to put a grub entry for both disk paths and install grub on both disks)

/dev/md1 is the rest of the drive, controlled by LVM.

/dev/md3 is a RAID 10(1E) on 5 drives.

If you like, what I might suggest, is to do this

/boot 150MB /dev/md0 RAID 1
(grub on both disks, entries in both menu.lst)

/ 5-10GB /dev/md1 RAID 1

<rest> LVM /dev/md2 RAID 10
(yes, you can do this with 2 drives)


As for your data, I would also suggest RAID 10. This is going to increase the performance without losing reliability. If you simply mirror your data drives, you are going to have multiple copies. Linux RAID 10 is more similar to RAID 1E and I would advise against doing a RAID of RAIDs on your devices, as you can do it in one fell swoop and a double RAIDed device can be accidentally set up as a mirror of stripes (Lower fault tolerance) rather than a stripe of mirrors.
# 4  
Old 05-15-2009
hi,

thanks for your replies, both are very helpful


I finally chose md0 100mb /boot

and the rest md1 700gb controlled by lvm, and 4 logical volumes


I feel more familiar with raid1 then raid5, don't know why Smilie


since I'm coming from the aix-corner, I don't understand the lvm set up on raid1

lvm even on linux is able to mirror a disk, so isn't there a way to turn quorum off, and go with

md0 /boot 100mb

rest /dev/sda1 and /dev/sdb1 used with lvm to mirror the lvs? then you would have one layer less, and one point of failure less, or am I wrong?
is the only problem, that linux won't boot with a disk missing?


since the server is set up, I won't change it, but just for further systems Smilie

cheers funksen
# 5  
Old 05-18-2009
I don't think anybody suggested RAID 5. The small write performance hit on RAID 5, especially in software, depending on disk, queue and implementation is a problem.

However, RAID 10 will give you the best performance in that scenario. With RAID 1, the only thing you can hope for is to do 2 mirrors and concatenate them. That introduces a possible point of failure. RAID 10 would solve that problem for you.

RAID 5 is not the same as RAID 10, in that RAID 5 is simply striping with parity, not using a single parity drive, but spreading the xor data across the drives so that each write involves writing the parity information. In a degraded state, the calculations needed to create the lost data from parity can be pretty significant.

In RAID 10, this is simply reading from a complete copy, however you do not get the ability to grow the RAID set like you can with RAID 5 (however, this does decrease fault tolerance with each additional drive, but increases performance).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SCO

SCO unresponsive after root disk

I am working on a system that uses SCO Unix 5. I started later in this troubleshooting process so I have had to play catch up on some of the earlier mistakes that were made. The HD was formatted using the SCSI controller cards bios. I have 2 recovery floppies the boot and the root. After... (19 Replies)
Discussion started by: graysona
19 Replies

2. Solaris

Root disk mirroring in Solaris 10

I would like to perform root disk mirroring task. Can someone please help me out on this. Thanks !! Regards, Rama (2 Replies)
Discussion started by: ramagore85
2 Replies

3. Solaris

encapsulated root disk replacement

Hello, I have a Sparc system with encapsulated disks. Because of disk errors I had to replace rootdisk, I did it with vxdiskadm 4) replacement, vxdctl disable/enable, vxdiskadm 5) After it it the system boot failed, dropped back to the ok> prompt, message was: The file... (0 Replies)
Discussion started by: ggi
0 Replies

4. Solaris

Lost Root Password on VXVM Encapsulated Root Disk

Hi All Hope it's okay to post on this sub-forum, couldn't find a better place I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under... (1 Reply)
Discussion started by: sunnyd76
1 Replies

5. Solaris

Mirror the root disk

Hi all I wish to mirror for the root disk, but last time i do, make the server cannot boot up. :p So this time, hope you guys can assist me on it. =) At the last code, is the step i wish to do. Please help to check and correct me if got any wrong. root@leo # format </dev/null Searching for... (17 Replies)
Discussion started by: SmartAntz
17 Replies

6. UNIX for Dummies Questions & Answers

Resize root disk slices

I have a Sun box running Solaris 9. My root disk was slices too small when it was installed and I am now at 99% capacity for my root partition. Is it possible, and if so how?, to increase the size of slice 0 and decrease the size of slice 7?? Thanks! Current partition table... (6 Replies)
Discussion started by: FredSmith
6 Replies

7. UNIX for Dummies Questions & Answers

How to mount disk for non-root accounts?

Presently I have mounted a disk as su. I believe only root can mount disks -- is this correct? I had to run mozilla in the root account so I can download the new SuSE distribution to the new disk. How can I mount the disk so non-root accounts can access the disk? Thanks, Siegfried (4 Replies)
Discussion started by: siegfried
4 Replies

8. Solaris

Solaris mirroring / non-root disk

Hi Guys, Need to add 2 disks into a JBOD array (3310). Does anyone see anything wrong with my Procedure / Doco below? 1> Logon to system, check system logs for abnormal entries. 2> Make backups of related system files: A>cp -p /etc/system /etc/system.backup.081505 B>cp -p /etc/vfstab... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

9. Solaris

Move root disk to new server

Hi, I need to do an installation where I have identical hardware at both sites and create the installation at one site and take the disk to the other site. Question: Do I need to do anything special for the OS to come up properly? thanks. (18 Replies)
Discussion started by: VirginiaSA
18 Replies

10. Solaris

How to rebuild root disk - 280R

Hi!, We have a SUN Server 280R (2 *36GB) disks. The disk with the root filesystem needs to be replaced! Lots of H/W error messages! We have the new disk - but how do we go about re-building it! Is there any document or location where I can get detailed re-build instructions? Any help... (7 Replies)
Discussion started by: sdharmap
7 Replies
Login or Register to Ask a Question