Re: Setting up ccd RAID 1 Howto OpenBSD 4.1

2007-09-13 Thread nicodache
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

On 9/13/07, Jake Conk [EMAIL PROTECTED] wrote:
 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

 On 9/12/07, nicodache [EMAIL PROTECTED] wrote:
  I personnaly used the following doc to set up my software raid 1 frame :
  http://www.linux.com/articles/52713
 
  good luck :)
 
  On 9/12/07, Steve Williams [EMAIL PROTECTED] wrote:
   Jake Conk wrote:
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
   
   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-miscm=116360194522004w=2
  
   http://www.packetmischief.ca/openbsd/doc/raidadmin/
  
   Good Luck,
  
   Thanks,
   Steve Williams



Re: : Setting up ccd RAID 1 Howto OpenBSD 4.1

2007-09-13 Thread Raimo Niskanen
On Wed, Sep 12, 2007 at 10:15:50PM -0700, Jake Conk wrote:
 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.
 

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
in OpenBSD 4.2. Does anyone know, just rumours?



 Thanks,
 - Jake
 
 Anyways how do I fix this FS_RAID problem
 
 On 9/12/07, nicodache [EMAIL PROTECTED] wrote:
  I personnaly used the following doc to set up my software raid 1 frame :
  http://www.linux.com/articles/52713
 
  good luck :)
 
  On 9/12/07, Steve Williams [EMAIL PROTECTED] wrote:
   Jake Conk wrote:
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
   
   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-miscm=116360194522004w=2
  
   http://www.packetmischief.ca/openbsd/doc/raidadmin/
  
   Good Luck,
  
   Thanks,
   Steve Williams

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



Re: : Setting up ccd RAID 1 Howto OpenBSD 4.1

2007-09-13 Thread Stuart Henderson
On 2007/09/13 10:10, Raimo Niskanen wrote:
 By the way, I recall rumours about some other RAID implementation coming
 in OpenBSD 4.2. Does anyone know, just rumours?

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



Re: Setting up ccd RAID 1 Howto OpenBSD 4.1

2007-09-12 Thread Douglas A. Tutty
On Wed, Sep 12, 2007 at 04:53:29AM -0700, Jake Conk wrote:
 
 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'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.



Re: Setting up ccd RAID 1 Howto OpenBSD 4.1

2007-09-12 Thread Steve Williams

Jake Conk wrote:

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
  

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-miscm=116360194522004w=2

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

Good Luck,

Thanks,
Steve Williams



Re: Setting up ccd RAID 1 Howto OpenBSD 4.1

2007-09-12 Thread nicodache
I personnaly used the following doc to set up my software raid 1 frame :
http://www.linux.com/articles/52713

good luck :)

On 9/12/07, Steve Williams [EMAIL PROTECTED] wrote:
 Jake Conk wrote:
  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
 
 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-miscm=116360194522004w=2

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

 Good Luck,

 Thanks,
 Steve Williams



Re: Setting up ccd RAID 1 Howto OpenBSD 4.1

2007-09-12 Thread Jake Conk
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

On 9/12/07, nicodache [EMAIL PROTECTED] wrote:
 I personnaly used the following doc to set up my software raid 1 frame :
 http://www.linux.com/articles/52713

 good luck :)

 On 9/12/07, Steve Williams [EMAIL PROTECTED] wrote:
  Jake Conk wrote:
   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
  
  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-miscm=116360194522004w=2
 
  http://www.packetmischief.ca/openbsd/doc/raidadmin/
 
  Good Luck,
 
  Thanks,
  Steve Williams