I'm playing with softraid on current (OpenBSD 4.5 GENERIC.MP#128 amd64)
and getting to the point where I'm unable to take down or write-over
existing devices.  I can't find any existing device to remove, but am
nonetheless unable to create a new RAID 0 array.

bioctl gives these complaints:

  # bioctl -c 0 -l /dev/sd0a,/dev/sd1a softraid0
  bioctl: BIOCCREATERAID: Invalid argument
  # bioctl -d sd1
  bioctl: delete volume sd1 failed
  # bioctl -d sd3
  bioctl: Can't open sd3: Device not configured
  # bioctl -C force -d sd3
  bioctl: Can't open sd3: Device not configured
  # bioctl -C force -d sd1
  bioctl: delete volume sd1 failed


  # bioctl -i sd0
  sd0: <JetFlash, TS4GJFT3, 8.07>, serial \\037 JetFlashTS4GJFT3 8.07
  # bioctl -i sd1
  sd1: <JetFlash, TS4GJFT3, 8.07>, serial \\037 JetFlashTS4GJFT3 8.07

dmesg gives this complaint:
  ...
  softraid0 at root
  softraid0: roaming device sd3a -> sd1a
  softraid0: not assembling partial disk that used to be volume 0
  ...
  softraid0: not all chunks are of the native metadata format
  softraid0: can't attach metadata type 0


The steps I follow to try to make a clean start are:

  # A - Initialize partition tables for RAID array
  fdisk -iy sd0
  fdisk -iy sd1

  printf "d a\nq\n\n" | disklabel -E sd0
  printf "d a\nq\n\n" | disklabel -E sd1

  # B - Create RAID partitions
  printf "a\n\n\n\nRAID\nw\nq\n\n" | disklabel -E sd0
  printf "a\n\n\n\nRAID\nw\nq\n\n" | disklabel -E sd1

  # C - RAID 0, striping
  bioctl -c 0 -l /dev/sd0a,/dev/sd1a softraid0

but it's the last step, C, that gives an erorr, but A and B don't seem
to be wiping the devices.

Regards,
-Lars

...
hidev5 detached
umass0 at uhub5 port 1 configuration 1 interface 0 "JetFlash Mass
Storage Device" rev 2.00/1.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <JetFlash, TS4GJFT3, 8.07> SCSI2 0/direct
removable
sd0: 3911MB, 512 bytes/sec, 8011774 sec total
uhidev4 at uhub3 port 2 configuration 1 interface 0 "Logitech HID
compliant keyboard" rev 1.10/1.80 addr 3
uhidev4: iclass 3/1
ukbd1 at uhidev4: 8 modifier keys, 6 key codes
wskbd1 at ukbd1 mux 1
wskbd1: connecting to wsdisplay0
uhidev5 at uhub3 port 2 configuration 1 interface 1 "Logitech HID
compliant keyboard" rev 1.10/1.80 addr 3
uhidev5: iclass 3/0, 2 report ids
uhid3 at uhidev5 reportid 1: input=2, output=0, feature=0
uhid4 at uhidev5 reportid 2: input=1, output=0, feature=0
umass1 at uhub5 port 2 configuration 1 interface 0 "JetFlash Mass
Storage Device" rev 2.00/1.00 addr 4
umass1: using SCSI over Bulk-Only
scsibus2 at umass1: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <JetFlash, TS4GJFT3, 8.07> SCSI2 0/direct
removable
sd1: 3911MB, 512 bytes/sec, 8011774 sec total
softraid0: not all chunks are of the native metadata format
softraid0: can't attach metadata type 0

Reply via email to