BIOCTL(8) | System Manager's Manual | BIOCTL(8) |
bioctl
— RAID
management interface
bioctl |
device command [arg [...]] |
RAID device drivers which support management functionality can
register their services with the
bio(4) driver.
bioctl
then can be used to manage the RAID
controller's properties.
The following commands are supported:
show
[disks | volumes]bioctl
will show
information about all volumes and the logical disks used on them. If
disks is specified, only information about physical
disks will be shown. If volumes is specified, only
information about the volumes will be shown.alarm
[disable | enable |
silence | test]blink
start channel:target.lun | stop
channel:target.lunhotspare
add channel:target.lun | remove
channel:target.lunpassthru
add DISKID channel:target.lun |
remove channel:target.luncheck
start VOLID | stop VOLIDcreate
volume
VOLID DISKIDs
[SIZE] STRIPE RAID_LEVEL
channel:target.lunremove
volume
VOLID channel:target.lunThe following command, executed from the command line, shows the status of the volumes and its logical disks on the RAID controller:
$ bioctl arcmsr0 show Volume Status Size Device/Label RAID Level Stripe ================================================================= 0 Building 468G sd0 ARC-1210-VOL#00 RAID 6 128KB 0% done 0:0 Online 234G 0:0.0 noencl <WDC WD2500YS-01SHB1 20.06C06> 0:1 Online 234G 0:1.0 noencl <WDC WD2500YS-01SHB1 20.06C06> 0:2 Online 234G 0:2.0 noencl <WDC WD2500YS-01SHB1 20.06C06> 0:3 Online 234G 0:3.0 noencl <WDC WD2500YS-01SHB1 20.06C06>
To create a RAID 5 volume on the SCSI 0:15.0 location on the disks 0, 1, 2, and 3, with stripe size of 64Kb on the first volume ID, using all available free space on the disks:
$ bioctl arcmsr0 create volume 0 0-3
64 5 0:15.0
To remove the volume 0 previously created at the SCSI 0:15.0 location:
$ bioctl arcmsr0 remove volume 0
0:15.0
arcmsr(4), ataraid(4), bio(4), cac(4), ciss(4), mfi(4), mfii(4), mpii(4), mpt(4)
The bioctl
command appeared in
OpenBSD 3.8, it first appeared in
NetBSD 4.0 and was rewritten for
NetBSD 5.0.
The bioctl
interface was written by
Marco Peereboom
<marco@openbsd.org>
and was rewritten with multiple features by
Juan Romero Pardines
<xtraeme@NetBSD.org>.
May 7, 2019 | NetBSD 10.99 |