Does anyone know of a howto on setting up raid1 on CentOS 5.x 64 bit?
Matt
On Fri, 10 Apr 2009, Matt wrote:
Does anyone know of a howto on setting up raid1 on CentOS 5.x 64 bit?
At install-time or after the machine is already running?
I was trying at install time.
At install time, kickstart is the cleanest way to set up RAID. If you've got the time, do one install (sans RAID setup), making sure that you correctly specify your network, packages, etc.
After the installation, you'll have a /root/anaconda-ks.cfg that can be used as a blueprint for your kickstart installation. It will include a comment to the effect of
# The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work
followed by the disk layout section. That's the section to massage a bit. Here's my kickstart directives for RAID1 layout of three partitions( "/", "/boot", and swap):
----- %< ----- bootloader --location=partition --driveorder=sda,sdb clearpart --all --initlabel part raid.01 --size=300 --ondisk=sda --asprimary part raid.02 --size=300 --ondisk=sdb --asprimary part raid.11 --size=1024 --ondisk=sda --asprimary part raid.12 --size=1024 --ondisk=sdb --asprimary part raid.21 --size=1 --ondisk=sda --asprimary --grow part raid.22 --size=1 --ondisk=sdb --asprimary --grow raid /boot --fstype ext3 --level=RAID1 --device=md0 raid.01 raid.02 raid swap --fstype swap --level=RAID1 --device=md1 raid.11 raid.12 raid / --fstype ext3 --level=RAID1 --device=md2 raid.21 raid.22 ----- %< -----
Although, how difficult is it to make a .386 CentOS 4.x box raid that currently is not raid?
I've never retrofitted a box for RAID, but I suspect it'd be tricky unless you're just creating/moving non-system partitions like /home, /opt, /srv, and the like.
Paul Heinlein wrote:
On Fri, 10 Apr 2009, Matt wrote:
Does anyone know of a howto on setting up raid1 on CentOS 5.x 64 bit?
At install-time or after the machine is already running?
I was trying at install time.
<snip> > Although, how difficult is it to make a .386 CentOS 4.x box raid > that currently is not raid? >
I've never retrofitted a box for RAID, but I suspect it'd be tricky unless you're just creating/moving non-system partitions like /home, /opt, /srv, and the like.
I have used this site and successfully retro fitted raid 1 to existing install (5.x only) http://linux-raid.osdl.org/index.php/Linux_Raid YMMV - HTH
Matt wrote:
Does anyone know of a howto on setting up raid1 on CentOS 5.x 64 bit?
hmmm, the same way as for i386 ? ... You can do that during setup (with anaconda) You can also do that after machine is installed, but that's a bit tricky
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On
Behalf
Of Fabian Arrotin Sent: Friday, April 10, 2009 12:23 PM To: CentOS mailing list Subject: Re: [CentOS] Raid1 on CentOS 5.x 64bit
Matt wrote:
Does anyone know of a howto on setting up raid1 on CentOS 5.x 64 bit?
hmmm, the same way as for i386 ? ... You can do that during setup (with anaconda) You can also do that after machine is installed, but that's a bit tricky
I found the below guide to be very helpful.
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch26_:_Linux _Software_RAID
YMMV though, as this is focused on software-raids. Hardware raids are usually simpler to setup with the raid-card's built-in software at boot.
HTH.
Matt wrote:
Does anyone know of a howto on setting up raid1 on CentOS 5.x 64 bit?
There's at tutorial for RAID 1 on FC-8 here: http://www.howtoforge.com/software-raid1-grub-boot-fedora-8 The adjustments for CentOS are minimal but since you are presumably not yet on a first-name basis with md, I suggest that you make a "dry run" first, determining at each step if the command specified exists in CentOS, if the devices match your hardware, etc. Most of all, you should back up your data before proceeding.