I thought 'noauto' only was for ignoring the volume upon reboot. What I want to accomplish is to delete a current volume, e.g. sd2 below.
But I tested anyway, and this is the, perhaps not too surprisingly, result:

# bioctl -i softraid0
Volume  Status               Size Device
softraid0 0 Online           10813440 sd3     RAID1
      0 Online           10813440 0:0.0   noencl <sd0b>
      1 Online           10813440 0:1.0   noencl <sd1b>
softraid0 1 Online           21562368 sd2     RAID0
      0 Online           10781184 1:0.0   noencl <sd0a>
      1 Online           10781184 1:1.0   noencl <sd1a>
# bioctl -C noauto -c 0 -l /dev/sd0a,/dev/sd1a softraid0
bioctl: BIOCCREATERAID: Invalid argument
# bioctl -C noauto -C force -c 0 -l /dev/sd0a,/dev/sd1a softraid0
# bioctl -i softraid0
Volume  Status               Size Device
softraid0 0 Online           10813440 sd3     RAID1
      0 Online           10813440 0:0.0   noencl <sd0b>
      1 Online           10813440 0:1.0   noencl <sd1b>
softraid0 1 Online           21562368 sd2     RAID0
      0 Online           10781184 1:0.0   noencl <sd0a>
      1 Online           10781184 1:1.0   noencl <sd1a>
softraid0 2 Online           21562368 sd4     RAID0
      0 Online           10781184 2:0.0   noencl <sd0a>
      1 Online           10781184 2:1.0   noencl <sd1a>


/Markus

Marco Peereboom wrote:
bioctl -c 1 C noauto -l /dev/wd1a,/dev/wd2a,/dev/wd3a softraid0

On Tue, Apr 29, 2008 at 11:37:39PM +0200, Markus Bergkvist wrote:
Hi,
How can I drop a softraid(4) volume created with e.g.

# bioctl -c 1 -l /dev/wd1a,/dev/wd2a,/dev/wd3a softraid0

scsibus0 at softraid0: 1 targets
sd0 at scsibus0 targ 0 lun 0: <OPENBSD, SR RAID 1, 001> SCSI2
sd0: 1MB, 0 cyl, 255 head, 63 sec, 512 bytes/sec, 3714 sec total

/Markus

Reply via email to