Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Softraid and bigger than 2Tb disks

2 views
Skip to first unread message

Lars Engblom

unread,
May 2, 2013, 2:32:14 AM5/2/13
to
Version: 5.3 GENERIC.MP#62 amd64

Problem: Softraid is not able to use bigger than 2Tb RAID partition
without truncating the space.

*How to reproduce*

1. Have two 4Tb disks (real or qemu disks).

2. fdisk -yi sd0 && fdisk -yi sd1
Now we have two 2Tb partitions created as the FAQ says.

3. disklabel -E sd0
Press 'b' to change boundary (from FAQ), press '*' to get whole disk.
a a
Default values for the new partition, except for Filesystem that gets
changed to RAID.

4. Copy over disklable to the other disk. Now we have been creating
partitions according to FAQ for big disks
(http://www.openbsd.org/faq/faq14.html)

5. bioctl -c 1 -l /dev/sd0a,/dev/sd1a softraid 0

sd2 gets created at this point and it is truly 2Tb, here it is not
possible to change the boundary to get bigger partitions.

Softraid should not care about the partition created with fdisk, it
should just care about the disklabel.

Lars Engblom

unread,
May 2, 2013, 5:14:29 AM5/2/13
to
A small typo in the bug report:

5. bioctl -c 1 -l /dev/sd0a,/dev/sd1a softraid0

My tests had not this typo, only the bug report had.

Joel Sing

unread,
May 2, 2013, 5:38:59 AM5/2/13
to
On Thu, 2 May 2013, Lars Engblom wrote:
> Version: 5.3 GENERIC.MP#62 amd64
>
> Problem: Softraid is not able to use bigger than 2Tb RAID partition
> without truncating the space.
>
> *How to reproduce*
>
> 1. Have two 4Tb disks (real or qemu disks).
>
> 2. fdisk -yi sd0 && fdisk -yi sd1
> Now we have two 2Tb partitions created as the FAQ says.
>
> 3. disklabel -E sd0
> Press 'b' to change boundary (from FAQ), press '*' to get whole disk.
> a a
> Default values for the new partition, except for Filesystem that gets
> changed to RAID.
>
> 4. Copy over disklable to the other disk. Now we have been creating
> partitions according to FAQ for big disks
> (http://www.openbsd.org/faq/faq14.html)
>
> 5. bioctl -c 1 -l /dev/sd0a,/dev/sd1a softraid 0
>
> sd2 gets created at this point and it is truly 2Tb, here it is not
> possible to change the boundary to get bigger partitions.
>
> Softraid should not care about the partition created with fdisk, it
> should just care about the disklabel.

The size of the softraid volume is determined by the size of the RAID
partitions (chunks) used to construct it. If softraid has created a 2TB
volume then your disklabel presumably has 2TB RAID partitions. Unfortunately
you have not included dmesg or disklabel output, so we cannot verify either
of these things.
--

"Action without study is fatal. Study without action is futile."
-- Mary Ritter Beard

0 new messages