*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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
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.
"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). "
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.