GRAID3(8) | MidnightBSD System Manager's Manual | GRAID3(8) |
graid3
— control
utility for RAID3 devices
graid3 |
label [-Fhnrvw ]
[-s blocksize]
name prov prov prov ... |
graid3 |
clear [-v ]
prov ... |
graid3 |
configure [-adfFhnrRvwW ]
name |
graid3 |
rebuild [-v ]
name prov |
graid3 |
insert [-hv ]
[-n number]
name prov |
graid3 |
remove [-v ]
-n number
name |
graid3 |
stop [-fv ]
name ... |
graid3 |
list |
graid3 |
status |
graid3 |
load |
graid3 |
unload |
The graid3
utility is used for RAID3 array
configuration. After a device is created, all components are detected and
configured automatically. All operations such as failure detection, stale
component detection, rebuild of stale components, etc. are also done
automatically. The graid3
utility uses on-disk
metadata (the provider's last sector) to store all needed information.
The first argument to graid3
indicates an
action to be performed:
label
Additional options include:
-F
-h
-n
-r
-w
option is also specified.-s
-w
EIO
error is returned and the value of the
kern.geom.raid3.stat.parity_mismatch sysctl is
increased. One cannot use this option if the
-r
option is also specified.clear
configure
Additional options include:
-a
-d
-f
-F
-h
-n
-r
-R
-w
-W
rebuild
insert
remove
command or
if one component is missing and will not be connected again. If no number
is given, new component will be added instead of first missed component.
Additional options include:
-h
remove
stop
Additional options include:
-f
list
status
load
unload
Additional options include:
-v
Exit status is 0 on success, and 1 if the command fails.
Use 3 disks to setup a RAID3 array (with the round-robin reading feature). Create a file system, mount it, then unmount it and stop device:
graid3 label -v -r data da0 da1 da2 newfs /dev/raid3/data mount /dev/raid3/data /mnt ... umount /mnt graid3 stop data graid3 unload
Create a RAID3 array, but do not use the automatic synchronization feature. Rebuild parity component:
graid3 label -n data da0 da1 da2 graid3 rebuild data da2
Replace one data disk with a brand new one:
graid3 remove -n 0 data graid3 insert -n 0 data da5
The graid3
utility appeared in
FreeBSD 5.3.
Pawel Jakub Dawidek <pjd@FreeBSD.org>
There should be a section with an implementation description.
Documentation for sysctls kern.geom.raid3.* is missing.
January 15, 2012 | midnightbsd-3.1 |