LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-12-2005, 04:21 AM   #1
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
ccd - lost space?


I am trying to set up two identical IDE disks as concatenated disks in OpenBSD. They work fine like regular disks, but I cannot manage to get the size of the ccd to span across both disks - whatever I do the size of the resulting ccd seems to be equal to the size of *one* of the disks.

Code:
wd1 at pciide0 channel 0 drive 1: <SAMSUNG SV6004H>
wd1: 16-sector PIO, LBA, 57278MB, 117306000 sectors
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
(...)
wd2 at pciide0 channel 1 drive 0: <SAMSUNG SV6004H>
wd2: 16-sector PIO, LBA, 57278MB, 117306000 sectors
wd2(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
I have created identical partitions using fdisk on the two disks:
Code:
  a:     117305937            63     ccd                   # Cyl     0*-116374
  c:     117306000             0  unused      0     0      # Cyl     0 -116374
I have experimented with different ileave size (16 and 32) and all the available flags according to ccdconfig(8), but none of them seem to just concatenate the partitions into one big ccd. This is an example of the many commands I have used: ccdconfig ccd0 32 0 /dev/wd1a /dev/wd2a

Did I miss something really obvious?


Håkan
 
Old 08-12-2005, 06:13 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Original Poster
Rep: Reputation: 58
Oh darnit. Other problems. I'll go somewhere private and curse loudly for a while.


Håkan

Last edited by hw-tph; 08-12-2005 at 07:56 AM.
 
Old 08-12-2005, 05:39 PM   #3
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
From what it sounds, you are trying to set up a RAID-0. Do realize that if one disk fails, due to being old or the added stress on the disks, you will lose ALL data on both disks. I would suggest buying a IDE-RAID card to configure the disks if you really want to use IDE or cannot afford to upgrade to SCSI. If you cannot afford the upgrade, make sure and have a backup solution in place to protect your data.

-Hardware monkey D
 
Old 08-12-2005, 05:42 PM   #4
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
You may double check but it sounds as if ccd is producing a RAID-1 setup by default which it is what you are getting.

HMD
 
Old 08-12-2005, 05:58 PM   #5
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
From OpenBSD FAQ section 11

"This allows you to join several partitions into one virtual disk (and thus, you can make several disks look like one disk)."

You need to use the raid pseudo-device.

From the same page

"Another solution is raid(4), which will have you use raidctl(8) to control your raid devices. OpenBSD's RAID is based upon Greg Oster's NetBSD port of the CMU RAIDframe software. OpenBSD has support for RAID levels of 0, 1, 4, and 5.

With raid, as with ccd, support must be in the KERNEL. Unlike ccd, support for RAID is not found in GENERIC, so it must be compiled into your kernel (RAID support adds some 500K to the size of an i386 kernel). "

page: http://www.openbsd.org/faq/faq11.html

Look at the raid man pages. Best of luck!!

-HMD
 
  


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
lost space to partitioning? chipmonk010 Linux - Hardware 1 09-04-2005 08:38 PM
ext3 lost space??? Fordor Linux - General 15 07-10-2005 12:09 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
lost harddrive space trolsbane Linux - Hardware 7 10-05-2003 04:35 PM
Lost Swap Space rayflynn Linux - General 1 08-05-2001 03:44 PM

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

All times are GMT -5. The time now is 09:29 AM.

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