LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-01-2007, 12:54 PM   #1
IMNOboist
Member
 
Registered: Nov 2003
Location: Seattle
Distribution: OpenBSD, Ubuntu
Posts: 60

Rep: Reputation: 16
CCD Raid-1 Setup on OpenBSD 4.1


I'm running OpenBSD 4.1 and trying to get CCD setup on my two hard drives. I want them to mirror in realtime. I have one drive setup with two partitions; one BSD and one swap. I need to mirror the BSD partition onto the other drive, which is currently uninitialized.

My problem is that documentation on this subject is rather lacking. Would someone be able to step me through this? Here's what I know so far:

Drives: wd0 and wd1
wd0 Partition: wd0a
wd1 Partition: none

Here's a df output:
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/wd0a 443772708 5230236 416353840 1% /

If you need any more info, I'd be glad to give it.

Thanks!
 
Old 06-01-2007, 03:36 PM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
http://inglorion.net/documents/tutorials/ccd/

Here is one for OpenBSD. Please note that there is no practical way to use ccd to mirror the root partition. So your above partitioning scheme is not going to work at all. We can use the empty disk to fix this by putting everything on it and then redoing both disks... but that is going to take some work and an understanding of the tools required to do it.

First, are the disks the same size?

If they are, then it will be a lot easier. If not... that is okay also.

I assume these are both 250G [on box] disks (with 212G actually) so I will recommend a partitioning scheme like the following:

Code:
/     :: 250M   (non-ccd on each disk)
swap  :: 1G     (on each disk)
/tmp  :: 500M   (if you use it a lot you will need to increase this)
# The following should be created under ccd -- you may not want to keep /tmp
# under ccd because there is nothing important to keep on it
/var  :: 1G     (size depends on usage expectations this should be ample)
/usr  :: 3G     (or the remaining amount if you keep /home under this)
/home :: 206G   (or whatever remains)
Now: setting this up... that is the tricky part. You will want to do a complete dump to a safe location before starting this... the partitions we will be using for ccd are not safe. If you can burn it to a dvd, that would work... or if you have another computer over the network... you can dump across the network (with ssh) and the install kernel should have the tools to restore it over ssh.

Anyway... go read that page... to get a basic idea of what needs to be done and if you have any specific questions I will try and help. this is going to be more than a simple procedure.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenBSD 3.7] Wifi setup noir911 *BSD 2 08-16-2005 07:40 PM
OpenBSD 3.6 X setup for users?? halo14 *BSD 6 11-17-2004 04:18 PM
3ware RAID card - OpenBSD cyberskye *BSD 2 09-21-2004 07:42 PM
Help with IPNAT setup on OpenBSD 3.4 IMNOboist *BSD 2 12-29-2003 04:47 PM
ICP Vortex SATA RAID on OpenBSD 3.4 DraconianTimes *BSD 1 12-25-2003 01:47 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration