Setting up ccd RAID 1 Howto OpenBSD 4.1

Previous thread: Re: Looking for something similar to "screen"-command by Jake Conk on Wednesday, September 12, 2007 - 7:54 am. (1 message)

Next thread: Re: Looking for something similar to "screen"-command by Jon on Wednesday, September 12, 2007 - 8:12 am. (3 messages)
To: <misc@...>
Date: Wednesday, September 12, 2007 - 7:53 am

Hello,

I've searched hi and low for hours on how to setup my system of a RAID
1 and basically what it comes down to is ccd and/or Raid Frame. I've
found helpful docs on using some of the commands and where to put my
configurations but nothing seems complete enough for me to figure it
out.

I have OpenBSD 4.1 installed on one disk and I have an exact duplicate
disk where i want to mirror my installation to incase of disk failure.
If this needs to be setup during install I'm willing reinstall
everything or if there is a way to configure my disks for ccd and
mirror them to the second disk then I'm willing to do that also.

Basically I don't know how to get this ball rolling, I've read 1) I
must change the disk type with disk label to ccd. Then 2) create ccd0
with ccdconfig and tell it to mirror disk 1 to disk 2. It then 3)
finally says to put my configuration into ccd.conf so that it can be
read in on boot by my system and of course put the stuff in fstab to
have it mounted on boot but thats all I know, everything is very vague
and no exact details on how to do this step by step with a new install
or a already running system.

Can someone please help provide a step by step way to mirror my whole
disk to a second disk by ressetting back up OpenBSD from scratch or if
possible configure my already installed system? I don't care if its
with ccd or another tool as long as I have a disk failover solution.

Please Please Please and Thanks!
- Jake

To: Jake Conk <jake.conk@...>
Cc: <misc@...>
Date: Wednesday, September 12, 2007 - 10:25 am

Hi,

Not for CCD, but raidframe..

Search the mailing list archives for a thread with a subject "Seeking
info for RAID 1 on OpenBSD". In there you will find all sorts of info.

http://marc.info/?l=openbsd-misc&m=116360194522004&w=2

http://www.packetmischief.ca/openbsd/doc/raidadmin/

Good Luck,

Thanks,
Steve Williams

To: <misc@...>
Date: Wednesday, September 12, 2007 - 10:41 am

I personnaly used the following doc to set up my software raid 1 frame :
http://www.linux.com/articles/52713

good luck :)

To: nicodache <nicodache@...>, <misc@...>
Date: Thursday, September 13, 2007 - 1:15 am

Hey,

I tried following that article but I got stuck at the part where you
start partition your second drive. I created the first partition with
100mb and type of 4.2 BSD then when I tried to create the second
partition on my drive as FS_RAID as the article says but it said that
FS_RAID is an unknown type and treated my partition as unknown?

To me that part of the article on how to partition my disk is totally
unclear. All it says is make the first partition 100m for the boot
which makes sense then it doesn't say how to partition the rest of
your drive to setup for the RAID 1? Can someone clarify this a bit
more please? I'm stuck.

Thanks,
- Jake

Anyways how do I fix this FS_RAID problem

To: Jake Conk <jake.conk@...>, <misc@...>
Date: Thursday, September 13, 2007 - 4:10 am

The FS_RAID filesystem type is called (in OpenBSD disklabel for
i386) just plain RAID. Type "RAID" at the prompt for filesystem type.
(Side note: on e.g the platform sparc64 you use "4.2BSD", not "RAID")

Then go on and follow the article again. There are other articles like
that out there, I followed some other that was clearer on that point...
Nowdays I tend to improvise. I prefer to retain the whole base
installation that was used to build the raid-aware kernel (if I have
the diskpace) in case of disaster. Then one does not have to start
with a broken mirror - it can be created whole at once.

By the way, I recall rumours about some other RAID implementation coming

--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB

To: <misc@...>
Date: Thursday, September 13, 2007 - 7:01 am

It's there, but not in GENERIC. Note the CAVEATS.
http://www.openbsd.org/cgi-bin/man.cgi?query=softraid

To: <misc@...>
Date: Thursday, September 13, 2007 - 4:07 am

If I remember correctly, you have to use FS type RAID, and not FS type FS_RAID.
for the partition layout, the /boot on 100MB is to allow the machine
to boot, but after that, you put all your files in "logical
subdivisions" of the raid array.
I my case, I didn't use wd*a (/boot) in the /etc/fstab, as I don't
need it for day-to-day operation.

Last thing, instead of writing the raid.conf file under /etc, copy it
(if you can) from man raidctl, raidctl is very very very bad at
interpreting this file, and fail with a useless error message whenever
it finds whitespaces, tab, or CR where he didn't intend to...

nico

To: <misc@...>
Date: Wednesday, September 12, 2007 - 9:05 am

I'm very new to OBSD and BSDs in general, coming from Debian Linux
(which now does raid1 from the installer). I notice that both OBSD and
NetBSD use raidframe and ccd. The NetBSD FAQ has a chapter on setting
up raidframe for root raid1. Perhaps it would give some direction. I
do not know if it is the correct approach for OBSD.

Doug.

Previous thread: Re: Looking for something similar to "screen"-command by Jake Conk on Wednesday, September 12, 2007 - 7:54 am. (1 message)

Next thread: Re: Looking for something similar to "screen"-command by Jon on Wednesday, September 12, 2007 - 8:12 am. (3 messages)