Re: SoftRAID disk size

2018-05-01 Thread Håkon Robbestad Gylterud

> I can imagine you have some old softraid metadata lying around. Did you
> try to wipe any existing metadata from the RAID partitions before
> attaching it?
> 


Thanks! That did the trick.

Best regards,
 —Håkon



SoftRAID disk size

2018-05-01 Thread Håkon Robbestad Gylterud
Hi,

I have two 5TB disks, which I want to set up as mirrored using RAID 1
through softraid(4). But after attaching the disk using bioctl(8), the
disk appears with 2TB, not 5TB.

How can I get the correct size for the softraid device?

The disks are wd0 and wd2, and disklabel shows:

# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: TOSHIBA HDWE150
duid: f76030f4c8b1cf43
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 608001
total sectors: 9767541168
boundstart: 64
boundend: 9767541168
drivedata: 0

16 partitions:
#size   offset  fstype [fsize bsize   cpg]
  a:   9767541104   64RAID
  c:   97675411680  unused

# /dev/rwd2c:
type: ESDI
disk: ESDI/IDE disk
label: TOSHIBA HDWE150
duid: 635ad6956b23ea1d
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 608001
total sectors: 9767541168
boundstart: 64
boundend: 9767541168
drivedata: 0

16 partitions:
#size   offset  fstype [fsize bsize   cpg]
  a:   9767541104   64RAID
  c:   97675411680  unused


But when I attach using:

# bioctl -c 1 -l /dev/wd0a,/dev/wd2a softraid0
softraid0: RAID 1 volume attached as sd0

dmesg shows:

sd0 at scsibus3 targ 1 lun 0:  SCSI2 0/direct fixed
sd0: 2097148MB, 512 bytes/sector, 4294961093 sectors

Thanks in advance to any pointers in the right direction.

Best regards,
 —Håkon