xref: /freebsd/usr.sbin/mfiutil/mfiutil.8 (revision f6ac23919b16d00845b5e8b3b66662b90b7cb2e6)
13c6bf4efSScott Long.\" Copyright (c) 2008, 2009 Yahoo!, Inc.
23c6bf4efSScott Long.\" All rights reserved.
33c6bf4efSScott Long.\"
43c6bf4efSScott Long.\" Redistribution and use in source and binary forms, with or without
53c6bf4efSScott Long.\" modification, are permitted provided that the following conditions
63c6bf4efSScott Long.\" are met:
73c6bf4efSScott Long.\" 1. Redistributions of source code must retain the above copyright
83c6bf4efSScott Long.\"    notice, this list of conditions and the following disclaimer.
93c6bf4efSScott Long.\" 2. Redistributions in binary form must reproduce the above copyright
103c6bf4efSScott Long.\"    notice, this list of conditions and the following disclaimer in the
113c6bf4efSScott Long.\"    documentation and/or other materials provided with the distribution.
123c6bf4efSScott Long.\" 3. The names of the authors may not be used to endorse or promote
133c6bf4efSScott Long.\"    products derived from this software without specific prior written
143c6bf4efSScott Long.\"    permission.
153c6bf4efSScott Long.\"
163c6bf4efSScott Long.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
173c6bf4efSScott Long.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
183c6bf4efSScott Long.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
193c6bf4efSScott Long.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
203c6bf4efSScott Long.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
213c6bf4efSScott Long.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
223c6bf4efSScott Long.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
233c6bf4efSScott Long.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
243c6bf4efSScott Long.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
253c6bf4efSScott Long.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
263c6bf4efSScott Long.\" SUCH DAMAGE.
273c6bf4efSScott Long.\"
283c6bf4efSScott Long.\" $FreeBSD$
293c6bf4efSScott Long.\"
30d78c3fa1SScott Long.Dd August 16, 2009
31b1f3db02SScott Long.Dt MFIUTIL 8
323c6bf4efSScott Long.Os
333c6bf4efSScott Long.Sh NAME
343c6bf4efSScott Long.Nm mfiutil
353c6bf4efSScott Long.Nd Utility for managing LSI MegaRAID SAS controllers
363c6bf4efSScott Long.Sh SYNOPSIS
373c6bf4efSScott Long.Nm
383c6bf4efSScott Long.Cm version
393c6bf4efSScott Long.Nm
403c6bf4efSScott Long.Op Fl u Ar unit
413c6bf4efSScott Long.Cm show adapter
423c6bf4efSScott Long.Nm
433c6bf4efSScott Long.Op Fl u Ar unit
443c6bf4efSScott Long.Cm show battery
453c6bf4efSScott Long.Nm
463c6bf4efSScott Long.Op Fl u Ar unit
473c6bf4efSScott Long.Cm show config
483c6bf4efSScott Long.Nm
493c6bf4efSScott Long.Op Fl u Ar unit
503c6bf4efSScott Long.Cm show drives
513c6bf4efSScott Long.Nm
523c6bf4efSScott Long.Op Fl u Ar unit
533c6bf4efSScott Long.Cm show events
543c6bf4efSScott Long.Op Fl c Ar class
553c6bf4efSScott Long.Op Fl l Ar locale
563c6bf4efSScott Long.Op Fl n Ar count
573c6bf4efSScott Long.Op Fl v
583c6bf4efSScott Long.Op Ar start Op Ar stop
593c6bf4efSScott Long.Nm
603c6bf4efSScott Long.Op Fl u Ar unit
613c6bf4efSScott Long.Cm show firmware
623c6bf4efSScott Long.Nm
633c6bf4efSScott Long.Op Fl u Ar unit
643c6bf4efSScott Long.Cm show logstate
653c6bf4efSScott Long.Nm
663c6bf4efSScott Long.Op Fl u Ar unit
673c6bf4efSScott Long.Cm show patrol
683c6bf4efSScott Long.Nm
693c6bf4efSScott Long.Op Fl u Ar unit
703c6bf4efSScott Long.Cm show volumes
713c6bf4efSScott Long.Nm
723c6bf4efSScott Long.Op Fl u Ar unit
733c6bf4efSScott Long.Cm fail Ar drive
743c6bf4efSScott Long.Nm
753c6bf4efSScott Long.Op Fl u Ar unit
763c6bf4efSScott Long.Cm good Ar drive
773c6bf4efSScott Long.Nm
783c6bf4efSScott Long.Op Fl u Ar unit
793c6bf4efSScott Long.Cm rebuild Ar drive
803c6bf4efSScott Long.Nm
813c6bf4efSScott Long.Op Fl u Ar unit
823c6bf4efSScott Long.Cm drive progress Ar drive
833c6bf4efSScott Long.Nm
843c6bf4efSScott Long.Op Fl u Ar unit
853c6bf4efSScott Long.Cm drive clear Ar drive Brq "start | stop"
863c6bf4efSScott Long.Nm
873c6bf4efSScott Long.Op Fl u Ar unit
883c6bf4efSScott Long.Cm start rebuild Ar drive
893c6bf4efSScott Long.Nm
903c6bf4efSScott Long.Op Fl u Ar unit
913c6bf4efSScott Long.Cm abort rebuild Ar drive
923c6bf4efSScott Long.Nm
933c6bf4efSScott Long.Op Fl u Ar unit
943c6bf4efSScott Long.Cm locate Ar drive Brq "on | off"
953c6bf4efSScott Long.Nm
963c6bf4efSScott Long.Op Fl u Ar unit
973c6bf4efSScott Long.Cm cache Ar volume Op Ar setting Op Ar value
983c6bf4efSScott Long.Nm
993c6bf4efSScott Long.Op Fl u Ar unit
1003c6bf4efSScott Long.Cm name Ar volume Ar name
1013c6bf4efSScott Long.Nm
1023c6bf4efSScott Long.Op Fl u Ar unit
1033c6bf4efSScott Long.Cm volume progress Ar volume
1043c6bf4efSScott Long.Nm
1053c6bf4efSScott Long.Op Fl u Ar unit
1063c6bf4efSScott Long.Cm clear
1073c6bf4efSScott Long.Nm
1083c6bf4efSScott Long.Op Fl u Ar unit
1093c6bf4efSScott Long.Cm create Ar type
1103c6bf4efSScott Long.Op Fl v
1113c6bf4efSScott Long.Op Fl s Ar stripe_size
1123c6bf4efSScott Long.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
1133c6bf4efSScott Long.Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
1143c6bf4efSScott Long.Nm
1153c6bf4efSScott Long.Op Fl u Ar unit
1163c6bf4efSScott Long.Cm delete Ar volume
1173c6bf4efSScott Long.Nm
1183c6bf4efSScott Long.Op Fl u Ar unit
1193c6bf4efSScott Long.Cm add Ar drive Op Ar volume
1203c6bf4efSScott Long.Nm
1213c6bf4efSScott Long.Op Fl u Ar unit
1223c6bf4efSScott Long.Cm remove Ar drive
1233c6bf4efSScott Long.Nm
1243c6bf4efSScott Long.Op Fl u Ar unit
1253c6bf4efSScott Long.Cm start patrol
1263c6bf4efSScott Long.Nm
1273c6bf4efSScott Long.Op Fl u Ar unit
1283c6bf4efSScott Long.Cm stop patrol
1293c6bf4efSScott Long.Nm
1303c6bf4efSScott Long.Op Fl u Ar unit
1313c6bf4efSScott Long.Cm patrol Ar command Op Ar interval Op Ar start
1323c6bf4efSScott Long.Nm
1333c6bf4efSScott Long.Op Fl u Ar unit
1343c6bf4efSScott Long.Cm flash Ar file
1353c6bf4efSScott Long.Sh DESCRIPTION
1363c6bf4efSScott LongThe
1373c6bf4efSScott Long.Nm
1383c6bf4efSScott Longutility can be used to display or modify various parameters on LSI
1393c6bf4efSScott LongMegaRAID SAS RAID controllers.
1403c6bf4efSScott LongEach invocation of
1413c6bf4efSScott Long.Nm
1423c6bf4efSScott Longconsists of zero or more global options followed by a command.
1433c6bf4efSScott LongCommands may support additional optional or required arguments after the
1443c6bf4efSScott Longcommand.
1453c6bf4efSScott Long.Pp
1463c6bf4efSScott LongCurrently one global option is supported:
1473c6bf4efSScott Long.Bl -tag -width indent
1483c6bf4efSScott Long.It Fl u Ar unit
1493c6bf4efSScott Long.Ar unit
1503c6bf4efSScott Longspecifies the unit of the controller to work with.
1513c6bf4efSScott LongIf no unit is specified,
1523c6bf4efSScott Longthen unit 0 is used.
1533c6bf4efSScott Long.El
1543c6bf4efSScott Long.Pp
1553c6bf4efSScott LongVolumes may be specified in two forms.
1563c6bf4efSScott LongFirst,
1573c6bf4efSScott Longa volume may be identified by its target ID.
1583c6bf4efSScott LongSecond,
1593c6bf4efSScott Longon the volume may be specified by the corresponding
1603c6bf4efSScott Long.Em mfidX
1613c6bf4efSScott Longdevice,
1623c6bf4efSScott Longsuch as
1633c6bf4efSScott Long.Em mfid0 .
1643c6bf4efSScott Long.Pp
1653c6bf4efSScott LongDrives may be specified in two forms.
1663c6bf4efSScott LongFirst,
1673c6bf4efSScott Longa drive may be identified by its device ID.
1683c6bf4efSScott LongThe device ID for configured drives can be found in
1693c6bf4efSScott Long.Cm show config .
1703c6bf4efSScott LongSecond,
1713c6bf4efSScott Longa drive may be identified by its location as
1723c6bf4efSScott Long.Sm off
1733c6bf4efSScott Long.Op E Ar xx Ns \&:
1743c6bf4efSScott Long.Li S Ns Ar yy
1753c6bf4efSScott Long.Sm on
1763c6bf4efSScott Longwhere
1773c6bf4efSScott Long.Ar xx
1783c6bf4efSScott Longis the enclosure
1793c6bf4efSScott Longand
1803c6bf4efSScott Long.Ar yy
1813c6bf4efSScott Longis the slot for each drive as displayed in
1823c6bf4efSScott Long.Cm show drives .
1833c6bf4efSScott Long.Pp
1843c6bf4efSScott LongThe
1853c6bf4efSScott Long.Nm
1863c6bf4efSScott Longutility supports several different groups of commands.
1873c6bf4efSScott LongThe first group of commands provide information about the controller,
1883c6bf4efSScott Longthe volumes it manages, and the drives it controls.
1893c6bf4efSScott LongThe second group of commands are used to manage the physical drives
1903c6bf4efSScott Longattached to the controller.
1913c6bf4efSScott LongThe third group of commands are used to manage the logical volumes
1923c6bf4efSScott Longmanaged by the controller.
1933c6bf4efSScott LongThe fourth group of commands are used to manage the drive configuration for
1943c6bf4efSScott Longthe controller.
1953c6bf4efSScott LongThe fifth group of commands are used to manage controller-wide operations.
1963c6bf4efSScott Long.Pp
1973c6bf4efSScott LongThe informational commands include:
1983c6bf4efSScott Long.Bl -tag -width indent
1993c6bf4efSScott Long.It Cm version
2003c6bf4efSScott LongDisplays the version of
2013c6bf4efSScott Long.Nm .
2023c6bf4efSScott Long.It Cm show adapter
2033c6bf4efSScott LongDisplays information about the RAID controller such as the model number.
2043c6bf4efSScott Long.It Cm show battery
2053c6bf4efSScott LongDisplays information about the battery from the battery backup unit.
2063c6bf4efSScott Long.It Cm show config
2073c6bf4efSScott LongDisplays the volume and drive configuration for the controller.
2083c6bf4efSScott LongEach array is listed along with the physical drives the array is built from.
2093c6bf4efSScott LongEach volume is listed along with the arrays that the volume spans.
2103c6bf4efSScott LongIf any hot spare drives are configured, then they are listed as well.
2113c6bf4efSScott Long.It Cm show drives
2123c6bf4efSScott LongLists all of the physical drives attached to the controller.
2133c6bf4efSScott Long.It Xo Cm show events
2143c6bf4efSScott Long.Op Fl c Ar class
2153c6bf4efSScott Long.Op Fl l Ar locale
2163c6bf4efSScott Long.Op Fl n Ar count
2173c6bf4efSScott Long.Op Fl v
2183c6bf4efSScott Long.Op Ar start Op Ar stop
2193c6bf4efSScott Long.Xc
2203c6bf4efSScott LongDisplay entries from the controller's event log.
2213c6bf4efSScott LongThe controller maintains a circular buffer of events.
2223c6bf4efSScott LongEach event is tagged with a class and locale.
2233c6bf4efSScott Long.Pp
2243c6bf4efSScott LongThe
2253c6bf4efSScott Long.Ar class
2263c6bf4efSScott Longparameter limits the output to entries at the specified class or higher.
2273c6bf4efSScott LongThe default class is
2283c6bf4efSScott Long.Dq warn .
2293c6bf4efSScott LongThe available classes from lowest priority to highest are:
2303c6bf4efSScott Long.Bl -tag -width -indent
2313c6bf4efSScott Long.It Cm debug
2323c6bf4efSScott LongDebug messages.
2333c6bf4efSScott Long.It Cm progress
2343c6bf4efSScott LongPeriodic progress updates for long-running operations such as background
2353c6bf4efSScott Longinitializations, array rebuilds, or patrol reads.
2363c6bf4efSScott Long.It Cm info
2373c6bf4efSScott LongInformational messages such as drive insertions and volume creations.
2383c6bf4efSScott Long.It Cm warn
2393c6bf4efSScott LongIndicates that some component may be close to failing.
2403c6bf4efSScott Long.It Cm crit
2413c6bf4efSScott LongA component has failed, but no data is lost.
2423c6bf4efSScott LongFor example, a volume becoming degraded due to a drive failure.
2433c6bf4efSScott Long.It Cm fatal
2443c6bf4efSScott LongA component has failed resulting in data loss.
2453c6bf4efSScott Long.It Cm dead
2463c6bf4efSScott LongThe controller itself has died.
2473c6bf4efSScott Long.El
2483c6bf4efSScott Long.Pp
2493c6bf4efSScott LongThe
2503c6bf4efSScott Long.Ar locale
2513c6bf4efSScott Longparameter limits the output to entries for the specified part of the controller.
2523c6bf4efSScott LongThe default locale is
2533c6bf4efSScott Long.Dq all .
2543c6bf4efSScott LongThe available locales are
2553c6bf4efSScott Long.Dq volume ,
2563c6bf4efSScott Long.Dq drive ,
257*f6ac2391SJoel Dahl.Dq enclosure ,
2583c6bf4efSScott Long.Dq battery ,
2593c6bf4efSScott Long.Dq sas ,
2603c6bf4efSScott Long.Dq controller ,
2613c6bf4efSScott Long.Dq config ,
2623c6bf4efSScott Long.Dq cluster ,
2633c6bf4efSScott Longand
2643c6bf4efSScott Long.Dq all .
2653c6bf4efSScott Long.Pp
2663c6bf4efSScott LongThe
2673c6bf4efSScott Long.Ar count
2683c6bf4efSScott Longparameter is a debugging aid that specifies the number of events to fetch from
2693c6bf4efSScott Longthe controller for each low-level request.
2703c6bf4efSScott LongThe default is 15 events.
2713c6bf4efSScott Long.Pp
2723c6bf4efSScott LongBy default, matching event log entries from the previous shutdown up to the
2733c6bf4efSScott Longpresent are displayed.  This range can be adjusted via the
2743c6bf4efSScott Long.Ar start
2753c6bf4efSScott Longand
2763c6bf4efSScott Long.Ar stop
2773c6bf4efSScott Longparameters.
2783c6bf4efSScott LongEach of these parameters can either be specified as a log entry number or as
2793c6bf4efSScott Longone of the following aliases:
2803c6bf4efSScott Long.Bl -tag -width -indent
2813c6bf4efSScott Long.It Cm newest
2823c6bf4efSScott LongThe newest entry in the event log.
2833c6bf4efSScott Long.It Cm oldest
2843c6bf4efSScott LongThe oldest entry in the event log.
2853c6bf4efSScott Long.It Cm clear
2863c6bf4efSScott LongThe first entry since the event log was cleared.
2873c6bf4efSScott Long.It Cm shutdown
2883c6bf4efSScott LongThe entry in the event log corresponding to the last time the controller was
2893c6bf4efSScott Longcleanly shut down.
2903c6bf4efSScott Long.It Cm boot
2913c6bf4efSScott LongThe entry in the event log corresponding to the most recent boot.
2923c6bf4efSScott Long.El
2933c6bf4efSScott Long.It Cm show firmware
2943c6bf4efSScott LongLists all of the firmware images present on the controller.
2953c6bf4efSScott Long.It Cm show logstate
2963c6bf4efSScott LongDisplay the various sequence numbers associated with the event log.
2973c6bf4efSScott Long.It Cm show patrol
2983c6bf4efSScott LongDisplay the status of the controller's patrol read operation.
2993c6bf4efSScott Long.It Cm show volumes
3003c6bf4efSScott LongLists all of the logical volumes managed by the controller.
3013c6bf4efSScott Long.El
3023c6bf4efSScott Long.Pp
3033c6bf4efSScott LongThe physical drive management commands include:
3043c6bf4efSScott Long.Bl -tag -width indent
3053c6bf4efSScott Long.It Cm fail Ar drive
3063c6bf4efSScott LongMark
3073c6bf4efSScott Long.Ar drive
3083c6bf4efSScott Longas failed.
3093c6bf4efSScott Long.Ar Drive
3103c6bf4efSScott Longmust be an online drive that is part of an array.
3113c6bf4efSScott Long.It Cm good Ar drive
3123c6bf4efSScott LongMark
3133c6bf4efSScott Long.Ar drive
3143c6bf4efSScott Longas an unconfigured good drive.
3153c6bf4efSScott Long.Ar Drive
3163c6bf4efSScott Longmust not be part of an existing array.
3173c6bf4efSScott Long.It Cm rebuild Ar drive
3183c6bf4efSScott LongMark a failed
3193c6bf4efSScott Long.Ar drive
3203c6bf4efSScott Longthat is still part of an array as a good drive suitable for a rebuild.
3213c6bf4efSScott LongThe firmware should kick off an array rebuild on its own if a failed drive
3223c6bf4efSScott Longis marked as a rebuild drive.
3233c6bf4efSScott Long.It Cm drive progress Ar drive
3243c6bf4efSScott LongReport the current progress and estimated completion time of drive operations
3253c6bf4efSScott Longsuch as rebuilds or patrol reads.
3263c6bf4efSScott Long.It Cm drive clear Ar drive Brq "start | stop"
3273c6bf4efSScott LongStart or stop the writing of all 0x00 characters to a drive.
3283c6bf4efSScott Long.It Cm start rebuild Ar drive
3293c6bf4efSScott LongManually start a rebuild on
3303c6bf4efSScott Long.Ar drive .
3313c6bf4efSScott Long.It Cm abort rebuild Ar drive
3323c6bf4efSScott LongAbort an in-progress rebuild operation on
3333c6bf4efSScott Long.Ar drive .
3343c6bf4efSScott LongIt can be resumed with the
3353c6bf4efSScott Long.Cm start rebuild
3363c6bf4efSScott Longcommand.
3373c6bf4efSScott Long.It Cm locate Ar drive Brq "on | off"
3383c6bf4efSScott LongChange the state of the external LED associated with
3393c6bf4efSScott Long.Ar drive .
3403c6bf4efSScott Long.El
3413c6bf4efSScott Long.Pp
3423c6bf4efSScott LongThe logical volume management commands include:
3433c6bf4efSScott Long.Bl -tag -width indent
3443c6bf4efSScott Long.It Cm cache Ar volume Op Ar setting Op Ar value
3453c6bf4efSScott LongIf no
3463c6bf4efSScott Long.Ar setting
3473c6bf4efSScott Longargument is supplied, then the current cache policy for
3483c6bf4efSScott Long.Ar volume
3493c6bf4efSScott Longis displayed;
3503c6bf4efSScott Longotherwise,
3513c6bf4efSScott Longthe cache policy for
3523c6bf4efSScott Long.Ar volume
3533c6bf4efSScott Longis modified.
3543c6bf4efSScott LongThe optional
3553c6bf4efSScott Long.Ar setting
3563c6bf4efSScott Longargument can be one of the following values:
3573c6bf4efSScott Long.Bl -tag -width indent
3583c6bf4efSScott Long.It Cm enable
3593c6bf4efSScott LongEnable caching for both read and write I/O operations.
3603c6bf4efSScott Long.It Cm disable
3613c6bf4efSScott LongDisable caching for both read and write I/O operations.
3623c6bf4efSScott Long.It Cm reads
3633c6bf4efSScott LongEnable caching only for read I/O operations.
3643c6bf4efSScott Long.It Cm writes
3653c6bf4efSScott LongEnable caching only for write I/O operations.
3663c6bf4efSScott Long.It Cm write-back
3673c6bf4efSScott LongUse write-back policy for cached writes.
3683c6bf4efSScott Long.It Cm write-through
3693c6bf4efSScott LongUse write-through policy for cached writes.
3703c6bf4efSScott Long.It Cm read-ahead Op Ar value
3713c6bf4efSScott LongSet the read ahead policy for cached reads.
3723c6bf4efSScott LongThe
3733c6bf4efSScott Long.Ar value
3743c6bf4efSScott Longargument can be set to either
3753c6bf4efSScott Long.Dq none ,
3763c6bf4efSScott Long.Dq adaptive ,
3773c6bf4efSScott Longor
3783c6bf4efSScott Long.Dq always .
3793c6bf4efSScott Long.It Cm write-cache Op Ar value
3803c6bf4efSScott LongControl the write caches on the physical drives backing
3813c6bf4efSScott Long.Ar volume .
3823c6bf4efSScott LongThe
3833c6bf4efSScott Long.Ar value
3843c6bf4efSScott Longargument can be set to either
3853c6bf4efSScott Long.Dq disable ,
3863c6bf4efSScott Long.Dq enable ,
3873c6bf4efSScott Longor
3883c6bf4efSScott Long.Dq default .
3893c6bf4efSScott Long.Pp
3903c6bf4efSScott LongIn general this setting should be left disabled to avoid data loss when the
3913c6bf4efSScott Longphysical drives lose power.
3923c6bf4efSScott LongThe battery backup of the RAID controller does not save data in the write
3933c6bf4efSScott Longcaches of the physical drives.
3943c6bf4efSScott Long.El
3953c6bf4efSScott Long.It Cm name Ar volume Ar name
3963c6bf4efSScott LongSets the name of
3973c6bf4efSScott Long.Ar volume
3983c6bf4efSScott Longto
3993c6bf4efSScott Long.Ar name .
4003c6bf4efSScott Long.It Cm volume progress Ar volume
4013c6bf4efSScott LongReport the current progress and estimated completion time of volume operations
4023c6bf4efSScott Longsuch as consistency checks and initializations.
4033c6bf4efSScott Long.El
4043c6bf4efSScott Long.Pp
4053c6bf4efSScott LongThe configuration commands include:
4063c6bf4efSScott Long.Bl -tag -width indent
4073c6bf4efSScott Long.It Cm clear
4083c6bf4efSScott LongDelete the entire configuration including all volumes, arrays, and spares.
4093c6bf4efSScott Long.It Xo Cm create Ar type
4103c6bf4efSScott Long.Op Fl v
4113c6bf4efSScott Long.Op Fl s Ar stripe_size
4123c6bf4efSScott Long.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
4133c6bf4efSScott Long.Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
4143c6bf4efSScott Long.Xc
4153c6bf4efSScott LongCreate a new volume.
4163c6bf4efSScott LongThe
4173c6bf4efSScott Long.Ar type
4183c6bf4efSScott Longspecifies the type of volume to create.
4193c6bf4efSScott LongCurrently supported types include:
4203c6bf4efSScott Long.Bl -tag -width indent
4213c6bf4efSScott Long.It Cm jbod
4223c6bf4efSScott LongCreates a RAID0 volume for each drive specified.
4233c6bf4efSScott LongEach drive must be specified as a separate argument.
4243c6bf4efSScott Long.It Cm raid0
4253c6bf4efSScott LongCreates one RAID0 volume spanning the drives listed in the single drive list.
4263c6bf4efSScott Long.It Cm raid1
4273c6bf4efSScott LongCreates one RAID1 volume spanning the drives listed in the single drive list.
4283c6bf4efSScott Long.It Cm raid5
4293c6bf4efSScott LongCreates one RAID5 volume spanning the drives listed in the single drive list.
4303c6bf4efSScott Long.It Cm raid6
4313c6bf4efSScott LongCreates one RAID6 volume spanning the drives listed in the single drive list.
4323c6bf4efSScott Long.It Cm raid10
4333c6bf4efSScott LongCreates one RAID10 volume spanning multiple RAID1 arrays.
4343c6bf4efSScott LongThe drives for each RAID1 array are specified as a single drive list.
4353c6bf4efSScott Long.It Cm raid50
4363c6bf4efSScott LongCreates one RAID50 volume spanning multiple RAID5 arrays.
4373c6bf4efSScott LongThe drives for each RAID5 array are specified as a single drive list.
4383c6bf4efSScott Long.It Cm raid60
4393c6bf4efSScott LongCreates one RAID60 volume spanning multiple RAID6 arrays.
4403c6bf4efSScott LongThe drives for each RAID6 array are specified as a single drive list.
4413c6bf4efSScott Long.It Cm concat
4423c6bf4efSScott LongCreates a single volume by concatenating all of the drives in the single drive
4433c6bf4efSScott Longlist.
4443c6bf4efSScott Long.El
4453c6bf4efSScott Long.Pp
4463c6bf4efSScott Long.Sy Note:
4473c6bf4efSScott LongNot all volume types are supported by all controllers.
4483c6bf4efSScott Long.Pp
4493c6bf4efSScott LongIf the
4503c6bf4efSScott Long.Fl v
4513c6bf4efSScott Longflag is specified after
4523c6bf4efSScott Long.Ar type ,
4533c6bf4efSScott Longthen more verbose output will be enabled.
4543c6bf4efSScott LongCurrently this just provides notification as drives are added to arrays and
4553c6bf4efSScott Longarrays to volumes when building the configuration.
4563c6bf4efSScott Long.Pp
4573c6bf4efSScott LongThe
4583c6bf4efSScott Long.Fl s
4593c6bf4efSScott Long.Ar stripe_size
4603c6bf4efSScott Longparameter allows the stripe size of the array to be set.
4613c6bf4efSScott LongBy default a stripe size of 64K is used.
4623c6bf4efSScott LongValid values are 512 through 1M, though the MFI firmware may reject some
4633c6bf4efSScott Longvalues.
4643c6bf4efSScott Long.It Cm delete Ar volume
4653c6bf4efSScott LongDelete the volume
4663c6bf4efSScott Long.Ar volume .
4673c6bf4efSScott Long.It Cm add Ar drive Op Ar volume
4683c6bf4efSScott LongMark
4693c6bf4efSScott Long.Ar drive
4703c6bf4efSScott Longas a hot spare.
4713c6bf4efSScott Long.Ar Drive
4723c6bf4efSScott Longmust be in the unconfigured good state.
4733c6bf4efSScott LongIf
4743c6bf4efSScott Long.Ar volume
4753c6bf4efSScott Longis specified,
4763c6bf4efSScott Longthen the hot spare will be dedicated to arrays backing that volume.
4773c6bf4efSScott LongOtherwise,
4783c6bf4efSScott Long.Ar drive
4793c6bf4efSScott Longwill be used as a global hot spare backing all arrays for this controller.
4803c6bf4efSScott LongNote that
4813c6bf4efSScott Long.Ar drive
4823c6bf4efSScott Longmust be as large as the smallest drive in all of the arrays it is going to
4833c6bf4efSScott Longback.
4843c6bf4efSScott Long.It Cm remove Ar drive
4853c6bf4efSScott LongRemove the hot spare
4863c6bf4efSScott Long.Ar drive
4873c6bf4efSScott Longfrom service.
4883c6bf4efSScott LongIt will be placed in the unconfigured good state.
4893c6bf4efSScott Long.El
4903c6bf4efSScott Long.Pp
4913c6bf4efSScott LongThe controller management commands include:
4923c6bf4efSScott Long.Bl -tag -width indent
4933c6bf4efSScott Long.It Cm patrol Ar command Op Ar interval Op Ar start
4943c6bf4efSScott LongSet the patrol read operation mode.
4953c6bf4efSScott LongThe
4963c6bf4efSScott Long.Ar command
4973c6bf4efSScott Longargument can be one of the following values:
4983c6bf4efSScott Long.Bl -tag -width indent
4993c6bf4efSScott Long.It Cm disable
5003c6bf4efSScott LongDisable patrol reads.
5013c6bf4efSScott Long.It Cm auto
5023c6bf4efSScott LongEnable periodic patrol reads initiated by the firmware.
5033c6bf4efSScott LongThe optional
5043c6bf4efSScott Long.Ar interval
5053c6bf4efSScott Longargument specifies the interval in seconds between patrol reads.
506d4352d29SJoel DahlIf patrol reads should be run continuously,
5073c6bf4efSScott Longthen
5083c6bf4efSScott Long.Ar interval
5093c6bf4efSScott Longshould consist of the word
5103c6bf4efSScott Long.Dq continuously .
5113c6bf4efSScott LongThe optional
5123c6bf4efSScott Long.Ar start
5133c6bf4efSScott Longargument specifies a non-negative, relative start time for the next patrol read.
5143c6bf4efSScott LongIf an interval or start time is not specified,
5153c6bf4efSScott Longthen the existing setting will be used.
5163c6bf4efSScott Long.It Cm manual
5173c6bf4efSScott LongEnable manual patrol reads that are only initiated by the user.
5183c6bf4efSScott Long.El
5193c6bf4efSScott Long.It Cm start patrol
5203c6bf4efSScott LongStart a patrol read operation.
5213c6bf4efSScott Long.It Cm stop patrol
5223c6bf4efSScott LongStop a currently running patrol read operation.
5233c6bf4efSScott Long.It Cm flash Ar file
5243c6bf4efSScott LongUpdates the flash on the controller with the firmware stored in
5253c6bf4efSScott Long.Ar file .
5263c6bf4efSScott LongA reboot is required for the new firmware to take effect.
5273c6bf4efSScott Long.El
5283c6bf4efSScott Long.Sh EXAMPLES
5293c6bf4efSScott LongConfigure the cache for volume mfid0 to cache only writes:
5303c6bf4efSScott Long.Pp
5313c6bf4efSScott Long.Dl Nm Cm cache mfid0 writes
5323c6bf4efSScott Long.Dl Nm Cm cache mfid0 write-back
5333c6bf4efSScott Long.Pp
5343c6bf4efSScott LongCreate a RAID5 array spanning the first four disks in the second enclosure:
5353c6bf4efSScott Long.Pp
5363c6bf4efSScott Long.Dl Nm Cm create raid5 e1:s0,e1:s1,e1:s2,e1:s4
5373c6bf4efSScott Long.Pp
5383c6bf4efSScott LongConfigure the first three disks on a controller as JBOD:
5393c6bf4efSScott Long.Pp
5403c6bf4efSScott Long.Dl Nm Cm create jbod 0 1 2
5413c6bf4efSScott Long.Pp
5423c6bf4efSScott LongCreate a RAID10 volume that spans two arrays each of which contains two disks
5433c6bf4efSScott Longfrom two different enclosures:
5443c6bf4efSScott Long.Pp
5453c6bf4efSScott Long.Dl Nm Cm create raid10 e1:s0,e1:s1 e2:s0,e2:s1
5463c6bf4efSScott Long.Pp
5473c6bf4efSScott LongAdd drive with the device ID of 4 as a global hot spare:
5483c6bf4efSScott Long.Pp
5493c6bf4efSScott Long.Dl Nm Cm add 4
5503c6bf4efSScott Long.Pp
5513c6bf4efSScott LongAdd the drive in slot 2 in the main chassis as a hot spare for volume mfid0:
5523c6bf4efSScott Long.Pp
5533c6bf4efSScott Long.Dl Nm Cm add s2 mfid0
5543c6bf4efSScott Long.Pp
5553c6bf4efSScott LongConfigure the adapter to run periodic patrol reads once a week with the first
5563c6bf4efSScott Longpatrol read starting in 5 minutes:
5573c6bf4efSScott Long.Pp
5583c6bf4efSScott Long.Dl Nm Cm patrol auto 604800 300
5593c6bf4efSScott Long.Pp
5603c6bf4efSScott Long.Sh SEE ALSO
5613c6bf4efSScott Long.Xr mfi 4
562d78c3fa1SScott Long.Sh HISTORY
563d78c3fa1SScott LongThe
564d78c3fa1SScott Long.Nm
565d78c3fa1SScott Longutility first appeared in
566d78c3fa1SScott Long.Fx 8.0 .
567