Hi,

It seems that my RAID1 softraid device gets listed as RAID0 and vice versa with bioctl, or am I misinterpreting the output?

$ sudo bioctl -ih softraid0
Volume  Status               Size Device
softraid0 0 Online              10.0G sd3     RAID1
      0 Online              10.0G 0:0.0   noencl <sd0b>
      1 Online              10.0G 0:1.0   noencl <sd1b>
softraid0 1 Online              20.0G sd2     RAID0
      0 Online              10.0G 1:0.0   noencl <sd0a>
      1 Online              10.0G 1:1.0   noencl <sd1a>


$ sudo disklabel -p g sd2
# Inside MBR partition 3: type A6 start 63 size 20964762
# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: SR RAID 1
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 1305
total bytes: 10.0G
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:            10.0G             0.0G  4.2BSD   2048 16384    1
  c:            10.0G             0.0G  unused      0     0


$ sudo disklabel -p g sd3
# Inside MBR partition 3: type A6 start 63 size 41929587
# /dev/rsd3c:
type: SCSI
disk: SCSI disk
label: SR RAID 0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 2610
total bytes: 20.0G
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:            20.0G             0.0G  4.2BSD   2048 16384    1
  c:            20.0G             0.0G  unused      0     0

Reply via email to