xref: /freebsd/usr.sbin/mfiutil/mfiutil.8 (revision 98be0dfebdc49a0ff7f4eceff40785c421720dde)
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.\"
30*98be0dfeSJohn Baldwin.Dd April 29, 2011
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
70*98be0dfeSJohn Baldwin.Cm show progress
71*98be0dfeSJohn Baldwin.Nm
72*98be0dfeSJohn Baldwin.Op Fl u Ar unit
733c6bf4efSScott Long.Cm show volumes
743c6bf4efSScott Long.Nm
753c6bf4efSScott Long.Op Fl u Ar unit
763c6bf4efSScott Long.Cm fail Ar drive
773c6bf4efSScott Long.Nm
783c6bf4efSScott Long.Op Fl u Ar unit
793c6bf4efSScott Long.Cm good Ar drive
803c6bf4efSScott Long.Nm
813c6bf4efSScott Long.Op Fl u Ar unit
823c6bf4efSScott Long.Cm rebuild Ar drive
833c6bf4efSScott Long.Nm
843c6bf4efSScott Long.Op Fl u Ar unit
853c6bf4efSScott Long.Cm drive progress Ar drive
863c6bf4efSScott Long.Nm
873c6bf4efSScott Long.Op Fl u Ar unit
883c6bf4efSScott Long.Cm drive clear Ar drive Brq "start | stop"
893c6bf4efSScott Long.Nm
903c6bf4efSScott Long.Op Fl u Ar unit
913c6bf4efSScott Long.Cm start rebuild Ar drive
923c6bf4efSScott Long.Nm
933c6bf4efSScott Long.Op Fl u Ar unit
943c6bf4efSScott Long.Cm abort rebuild Ar drive
953c6bf4efSScott Long.Nm
963c6bf4efSScott Long.Op Fl u Ar unit
973c6bf4efSScott Long.Cm locate Ar drive Brq "on | off"
983c6bf4efSScott Long.Nm
993c6bf4efSScott Long.Op Fl u Ar unit
1003c6bf4efSScott Long.Cm cache Ar volume Op Ar setting Op Ar value
1013c6bf4efSScott Long.Nm
1023c6bf4efSScott Long.Op Fl u Ar unit
1033c6bf4efSScott Long.Cm name Ar volume Ar name
1043c6bf4efSScott Long.Nm
1053c6bf4efSScott Long.Op Fl u Ar unit
1063c6bf4efSScott Long.Cm volume progress Ar volume
1073c6bf4efSScott Long.Nm
1083c6bf4efSScott Long.Op Fl u Ar unit
1093c6bf4efSScott Long.Cm clear
1103c6bf4efSScott Long.Nm
1113c6bf4efSScott Long.Op Fl u Ar unit
1123c6bf4efSScott Long.Cm create Ar type
1133c6bf4efSScott Long.Op Fl v
1143c6bf4efSScott Long.Op Fl s Ar stripe_size
1153c6bf4efSScott Long.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
1163c6bf4efSScott Long.Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
1173c6bf4efSScott Long.Nm
1183c6bf4efSScott Long.Op Fl u Ar unit
1193c6bf4efSScott Long.Cm delete Ar volume
1203c6bf4efSScott Long.Nm
1213c6bf4efSScott Long.Op Fl u Ar unit
1223c6bf4efSScott Long.Cm add Ar drive Op Ar volume
1233c6bf4efSScott Long.Nm
1243c6bf4efSScott Long.Op Fl u Ar unit
1253c6bf4efSScott Long.Cm remove Ar drive
1263c6bf4efSScott Long.Nm
1273c6bf4efSScott Long.Op Fl u Ar unit
1283c6bf4efSScott Long.Cm start patrol
1293c6bf4efSScott Long.Nm
1303c6bf4efSScott Long.Op Fl u Ar unit
1313c6bf4efSScott Long.Cm stop patrol
1323c6bf4efSScott Long.Nm
1333c6bf4efSScott Long.Op Fl u Ar unit
1343c6bf4efSScott Long.Cm patrol Ar command Op Ar interval Op Ar start
1353c6bf4efSScott Long.Nm
1363c6bf4efSScott Long.Op Fl u Ar unit
1373c6bf4efSScott Long.Cm flash Ar file
1383c6bf4efSScott Long.Sh DESCRIPTION
1393c6bf4efSScott LongThe
1403c6bf4efSScott Long.Nm
1413c6bf4efSScott Longutility can be used to display or modify various parameters on LSI
1423c6bf4efSScott LongMegaRAID SAS RAID controllers.
1433c6bf4efSScott LongEach invocation of
1443c6bf4efSScott Long.Nm
1453c6bf4efSScott Longconsists of zero or more global options followed by a command.
1463c6bf4efSScott LongCommands may support additional optional or required arguments after the
1473c6bf4efSScott Longcommand.
1483c6bf4efSScott Long.Pp
1493c6bf4efSScott LongCurrently one global option is supported:
1503c6bf4efSScott Long.Bl -tag -width indent
1513c6bf4efSScott Long.It Fl u Ar unit
1523c6bf4efSScott Long.Ar unit
1533c6bf4efSScott Longspecifies the unit of the controller to work with.
1543c6bf4efSScott LongIf no unit is specified,
1553c6bf4efSScott Longthen unit 0 is used.
1563c6bf4efSScott Long.El
1573c6bf4efSScott Long.Pp
1583c6bf4efSScott LongVolumes may be specified in two forms.
1593c6bf4efSScott LongFirst,
1603c6bf4efSScott Longa volume may be identified by its target ID.
1613c6bf4efSScott LongSecond,
1623c6bf4efSScott Longon the volume may be specified by the corresponding
1633c6bf4efSScott Long.Em mfidX
1643c6bf4efSScott Longdevice,
1653c6bf4efSScott Longsuch as
1663c6bf4efSScott Long.Em mfid0 .
1673c6bf4efSScott Long.Pp
1683c6bf4efSScott LongDrives may be specified in two forms.
1693c6bf4efSScott LongFirst,
1703c6bf4efSScott Longa drive may be identified by its device ID.
1713c6bf4efSScott LongThe device ID for configured drives can be found in
1723c6bf4efSScott Long.Cm show config .
1733c6bf4efSScott LongSecond,
1743c6bf4efSScott Longa drive may be identified by its location as
1753c6bf4efSScott Long.Sm off
1763c6bf4efSScott Long.Op E Ar xx Ns \&:
1773c6bf4efSScott Long.Li S Ns Ar yy
1783c6bf4efSScott Long.Sm on
1793c6bf4efSScott Longwhere
1803c6bf4efSScott Long.Ar xx
1813c6bf4efSScott Longis the enclosure
1823c6bf4efSScott Longand
1833c6bf4efSScott Long.Ar yy
1843c6bf4efSScott Longis the slot for each drive as displayed in
1853c6bf4efSScott Long.Cm show drives .
1863c6bf4efSScott Long.Pp
1873c6bf4efSScott LongThe
1883c6bf4efSScott Long.Nm
1893c6bf4efSScott Longutility supports several different groups of commands.
1903c6bf4efSScott LongThe first group of commands provide information about the controller,
1913c6bf4efSScott Longthe volumes it manages, and the drives it controls.
1923c6bf4efSScott LongThe second group of commands are used to manage the physical drives
1933c6bf4efSScott Longattached to the controller.
1943c6bf4efSScott LongThe third group of commands are used to manage the logical volumes
1953c6bf4efSScott Longmanaged by the controller.
1963c6bf4efSScott LongThe fourth group of commands are used to manage the drive configuration for
1973c6bf4efSScott Longthe controller.
1983c6bf4efSScott LongThe fifth group of commands are used to manage controller-wide operations.
1993c6bf4efSScott Long.Pp
2003c6bf4efSScott LongThe informational commands include:
2013c6bf4efSScott Long.Bl -tag -width indent
2023c6bf4efSScott Long.It Cm version
2033c6bf4efSScott LongDisplays the version of
2043c6bf4efSScott Long.Nm .
2053c6bf4efSScott Long.It Cm show adapter
2063c6bf4efSScott LongDisplays information about the RAID controller such as the model number.
2073c6bf4efSScott Long.It Cm show battery
2083c6bf4efSScott LongDisplays information about the battery from the battery backup unit.
2093c6bf4efSScott Long.It Cm show config
2103c6bf4efSScott LongDisplays the volume and drive configuration for the controller.
2113c6bf4efSScott LongEach array is listed along with the physical drives the array is built from.
2123c6bf4efSScott LongEach volume is listed along with the arrays that the volume spans.
2133c6bf4efSScott LongIf any hot spare drives are configured, then they are listed as well.
2143c6bf4efSScott Long.It Cm show drives
2153c6bf4efSScott LongLists all of the physical drives attached to the controller.
2163c6bf4efSScott Long.It Xo Cm show events
2173c6bf4efSScott Long.Op Fl c Ar class
2183c6bf4efSScott Long.Op Fl l Ar locale
2193c6bf4efSScott Long.Op Fl n Ar count
2203c6bf4efSScott Long.Op Fl v
2213c6bf4efSScott Long.Op Ar start Op Ar stop
2223c6bf4efSScott Long.Xc
2233c6bf4efSScott LongDisplay entries from the controller's event log.
2243c6bf4efSScott LongThe controller maintains a circular buffer of events.
2253c6bf4efSScott LongEach event is tagged with a class and locale.
2263c6bf4efSScott Long.Pp
2273c6bf4efSScott LongThe
2283c6bf4efSScott Long.Ar class
2293c6bf4efSScott Longparameter limits the output to entries at the specified class or higher.
2303c6bf4efSScott LongThe default class is
2313c6bf4efSScott Long.Dq warn .
2323c6bf4efSScott LongThe available classes from lowest priority to highest are:
2333c6bf4efSScott Long.Bl -tag -width -indent
2343c6bf4efSScott Long.It Cm debug
2353c6bf4efSScott LongDebug messages.
2363c6bf4efSScott Long.It Cm progress
2373c6bf4efSScott LongPeriodic progress updates for long-running operations such as background
2383c6bf4efSScott Longinitializations, array rebuilds, or patrol reads.
2393c6bf4efSScott Long.It Cm info
2403c6bf4efSScott LongInformational messages such as drive insertions and volume creations.
2413c6bf4efSScott Long.It Cm warn
2423c6bf4efSScott LongIndicates that some component may be close to failing.
2433c6bf4efSScott Long.It Cm crit
2443c6bf4efSScott LongA component has failed, but no data is lost.
2453c6bf4efSScott LongFor example, a volume becoming degraded due to a drive failure.
2463c6bf4efSScott Long.It Cm fatal
2473c6bf4efSScott LongA component has failed resulting in data loss.
2483c6bf4efSScott Long.It Cm dead
2493c6bf4efSScott LongThe controller itself has died.
2503c6bf4efSScott Long.El
2513c6bf4efSScott Long.Pp
2523c6bf4efSScott LongThe
2533c6bf4efSScott Long.Ar locale
2543c6bf4efSScott Longparameter limits the output to entries for the specified part of the controller.
2553c6bf4efSScott LongThe default locale is
2563c6bf4efSScott Long.Dq all .
2573c6bf4efSScott LongThe available locales are
2583c6bf4efSScott Long.Dq volume ,
2593c6bf4efSScott Long.Dq drive ,
260f6ac2391SJoel Dahl.Dq enclosure ,
2613c6bf4efSScott Long.Dq battery ,
2623c6bf4efSScott Long.Dq sas ,
2633c6bf4efSScott Long.Dq controller ,
2643c6bf4efSScott Long.Dq config ,
2653c6bf4efSScott Long.Dq cluster ,
2663c6bf4efSScott Longand
2673c6bf4efSScott Long.Dq all .
2683c6bf4efSScott Long.Pp
2693c6bf4efSScott LongThe
2703c6bf4efSScott Long.Ar count
2713c6bf4efSScott Longparameter is a debugging aid that specifies the number of events to fetch from
2723c6bf4efSScott Longthe controller for each low-level request.
2733c6bf4efSScott LongThe default is 15 events.
2743c6bf4efSScott Long.Pp
2753c6bf4efSScott LongBy default, matching event log entries from the previous shutdown up to the
2763c6bf4efSScott Longpresent are displayed.  This range can be adjusted via the
2773c6bf4efSScott Long.Ar start
2783c6bf4efSScott Longand
2793c6bf4efSScott Long.Ar stop
2803c6bf4efSScott Longparameters.
2813c6bf4efSScott LongEach of these parameters can either be specified as a log entry number or as
2823c6bf4efSScott Longone of the following aliases:
2833c6bf4efSScott Long.Bl -tag -width -indent
2843c6bf4efSScott Long.It Cm newest
2853c6bf4efSScott LongThe newest entry in the event log.
2863c6bf4efSScott Long.It Cm oldest
2873c6bf4efSScott LongThe oldest entry in the event log.
2883c6bf4efSScott Long.It Cm clear
2893c6bf4efSScott LongThe first entry since the event log was cleared.
2903c6bf4efSScott Long.It Cm shutdown
2913c6bf4efSScott LongThe entry in the event log corresponding to the last time the controller was
2923c6bf4efSScott Longcleanly shut down.
2933c6bf4efSScott Long.It Cm boot
2943c6bf4efSScott LongThe entry in the event log corresponding to the most recent boot.
2953c6bf4efSScott Long.El
2963c6bf4efSScott Long.It Cm show firmware
2973c6bf4efSScott LongLists all of the firmware images present on the controller.
2983c6bf4efSScott Long.It Cm show logstate
2993c6bf4efSScott LongDisplay the various sequence numbers associated with the event log.
3003c6bf4efSScott Long.It Cm show patrol
3013c6bf4efSScott LongDisplay the status of the controller's patrol read operation.
302*98be0dfeSJohn Baldwin.It Cm show progress
303*98be0dfeSJohn BaldwinReport the current progress and estimated completion time for active
304*98be0dfeSJohn Baldwinoperations on all volumes and drives.
3053c6bf4efSScott Long.It Cm show volumes
3063c6bf4efSScott LongLists all of the logical volumes managed by the controller.
3073c6bf4efSScott Long.El
3083c6bf4efSScott Long.Pp
3093c6bf4efSScott LongThe physical drive management commands include:
3103c6bf4efSScott Long.Bl -tag -width indent
3113c6bf4efSScott Long.It Cm fail Ar drive
3123c6bf4efSScott LongMark
3133c6bf4efSScott Long.Ar drive
3143c6bf4efSScott Longas failed.
3153c6bf4efSScott Long.Ar Drive
3163c6bf4efSScott Longmust be an online drive that is part of an array.
3173c6bf4efSScott Long.It Cm good Ar drive
3183c6bf4efSScott LongMark
3193c6bf4efSScott Long.Ar drive
3203c6bf4efSScott Longas an unconfigured good drive.
3213c6bf4efSScott Long.Ar Drive
3223c6bf4efSScott Longmust not be part of an existing array.
3233c6bf4efSScott Long.It Cm rebuild Ar drive
3243c6bf4efSScott LongMark a failed
3253c6bf4efSScott Long.Ar drive
3263c6bf4efSScott Longthat is still part of an array as a good drive suitable for a rebuild.
3273c6bf4efSScott LongThe firmware should kick off an array rebuild on its own if a failed drive
3283c6bf4efSScott Longis marked as a rebuild drive.
3293c6bf4efSScott Long.It Cm drive progress Ar drive
3303c6bf4efSScott LongReport the current progress and estimated completion time of drive operations
3313c6bf4efSScott Longsuch as rebuilds or patrol reads.
3323c6bf4efSScott Long.It Cm drive clear Ar drive Brq "start | stop"
3333c6bf4efSScott LongStart or stop the writing of all 0x00 characters to a drive.
3343c6bf4efSScott Long.It Cm start rebuild Ar drive
3353c6bf4efSScott LongManually start a rebuild on
3363c6bf4efSScott Long.Ar drive .
3373c6bf4efSScott Long.It Cm abort rebuild Ar drive
3383c6bf4efSScott LongAbort an in-progress rebuild operation on
3393c6bf4efSScott Long.Ar drive .
3403c6bf4efSScott LongIt can be resumed with the
3413c6bf4efSScott Long.Cm start rebuild
3423c6bf4efSScott Longcommand.
3433c6bf4efSScott Long.It Cm locate Ar drive Brq "on | off"
3443c6bf4efSScott LongChange the state of the external LED associated with
3453c6bf4efSScott Long.Ar drive .
3463c6bf4efSScott Long.El
3473c6bf4efSScott Long.Pp
3483c6bf4efSScott LongThe logical volume management commands include:
3493c6bf4efSScott Long.Bl -tag -width indent
3503c6bf4efSScott Long.It Cm cache Ar volume Op Ar setting Op Ar value
3513c6bf4efSScott LongIf no
3523c6bf4efSScott Long.Ar setting
3533c6bf4efSScott Longargument is supplied, then the current cache policy for
3543c6bf4efSScott Long.Ar volume
3553c6bf4efSScott Longis displayed;
3563c6bf4efSScott Longotherwise,
3573c6bf4efSScott Longthe cache policy for
3583c6bf4efSScott Long.Ar volume
3593c6bf4efSScott Longis modified.
3603c6bf4efSScott LongThe optional
3613c6bf4efSScott Long.Ar setting
3623c6bf4efSScott Longargument can be one of the following values:
3633c6bf4efSScott Long.Bl -tag -width indent
3643c6bf4efSScott Long.It Cm enable
3653c6bf4efSScott LongEnable caching for both read and write I/O operations.
3663c6bf4efSScott Long.It Cm disable
3673c6bf4efSScott LongDisable caching for both read and write I/O operations.
3683c6bf4efSScott Long.It Cm reads
3693c6bf4efSScott LongEnable caching only for read I/O operations.
3703c6bf4efSScott Long.It Cm writes
3713c6bf4efSScott LongEnable caching only for write I/O operations.
3723c6bf4efSScott Long.It Cm write-back
3733c6bf4efSScott LongUse write-back policy for cached writes.
3743c6bf4efSScott Long.It Cm write-through
3753c6bf4efSScott LongUse write-through policy for cached writes.
3768b22f43dSJohn Baldwin.It Cm read-ahead Ar value
3773c6bf4efSScott LongSet the read ahead policy for cached reads.
3783c6bf4efSScott LongThe
3793c6bf4efSScott Long.Ar value
3803c6bf4efSScott Longargument can be set to either
3813c6bf4efSScott Long.Dq none ,
3823c6bf4efSScott Long.Dq adaptive ,
3833c6bf4efSScott Longor
3843c6bf4efSScott Long.Dq always .
3858b22f43dSJohn Baldwin.It Cm bad-bbu-write-cache Ar value
3868b22f43dSJohn BaldwinControl the behavior of I/O write caching if the battery is dead or
3878b22f43dSJohn Baldwinmissing.
3888b22f43dSJohn BaldwinThe
3898b22f43dSJohn Baldwin.Ar value
3908b22f43dSJohn Baldwinargument can be set to either
3918b22f43dSJohn Baldwin.Dq disable
3928b22f43dSJohn Baldwinor
3938b22f43dSJohn Baldwin.Dq enable .
3948b22f43dSJohn BaldwinIn general this setting should be left disabled to avoid data loss when
3958b22f43dSJohn Baldwinthe system loses power.
3968b22f43dSJohn Baldwin.It Cm write-cache Ar value
3973c6bf4efSScott LongControl the write caches on the physical drives backing
3983c6bf4efSScott Long.Ar volume .
3993c6bf4efSScott LongThe
4003c6bf4efSScott Long.Ar value
4013c6bf4efSScott Longargument can be set to either
4023c6bf4efSScott Long.Dq disable ,
4033c6bf4efSScott Long.Dq enable ,
4043c6bf4efSScott Longor
4053c6bf4efSScott Long.Dq default .
4063c6bf4efSScott Long.Pp
4073c6bf4efSScott LongIn general this setting should be left disabled to avoid data loss when the
4083c6bf4efSScott Longphysical drives lose power.
4093c6bf4efSScott LongThe battery backup of the RAID controller does not save data in the write
4103c6bf4efSScott Longcaches of the physical drives.
4113c6bf4efSScott Long.El
4123c6bf4efSScott Long.It Cm name Ar volume Ar name
4133c6bf4efSScott LongSets the name of
4143c6bf4efSScott Long.Ar volume
4153c6bf4efSScott Longto
4163c6bf4efSScott Long.Ar name .
4173c6bf4efSScott Long.It Cm volume progress Ar volume
4183c6bf4efSScott LongReport the current progress and estimated completion time of volume operations
4193c6bf4efSScott Longsuch as consistency checks and initializations.
4203c6bf4efSScott Long.El
4213c6bf4efSScott Long.Pp
4223c6bf4efSScott LongThe configuration commands include:
4233c6bf4efSScott Long.Bl -tag -width indent
4243c6bf4efSScott Long.It Cm clear
4253c6bf4efSScott LongDelete the entire configuration including all volumes, arrays, and spares.
4263c6bf4efSScott Long.It Xo Cm create Ar type
4273c6bf4efSScott Long.Op Fl v
4283c6bf4efSScott Long.Op Fl s Ar stripe_size
4293c6bf4efSScott Long.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
4303c6bf4efSScott Long.Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
4313c6bf4efSScott Long.Xc
4323c6bf4efSScott LongCreate a new volume.
4333c6bf4efSScott LongThe
4343c6bf4efSScott Long.Ar type
4353c6bf4efSScott Longspecifies the type of volume to create.
4363c6bf4efSScott LongCurrently supported types include:
4373c6bf4efSScott Long.Bl -tag -width indent
4383c6bf4efSScott Long.It Cm jbod
4393c6bf4efSScott LongCreates a RAID0 volume for each drive specified.
4403c6bf4efSScott LongEach drive must be specified as a separate argument.
4413c6bf4efSScott Long.It Cm raid0
4423c6bf4efSScott LongCreates one RAID0 volume spanning the drives listed in the single drive list.
4433c6bf4efSScott Long.It Cm raid1
4443c6bf4efSScott LongCreates one RAID1 volume spanning the drives listed in the single drive list.
4453c6bf4efSScott Long.It Cm raid5
4463c6bf4efSScott LongCreates one RAID5 volume spanning the drives listed in the single drive list.
4473c6bf4efSScott Long.It Cm raid6
4483c6bf4efSScott LongCreates one RAID6 volume spanning the drives listed in the single drive list.
4493c6bf4efSScott Long.It Cm raid10
4503c6bf4efSScott LongCreates one RAID10 volume spanning multiple RAID1 arrays.
4513c6bf4efSScott LongThe drives for each RAID1 array are specified as a single drive list.
4523c6bf4efSScott Long.It Cm raid50
4533c6bf4efSScott LongCreates one RAID50 volume spanning multiple RAID5 arrays.
4543c6bf4efSScott LongThe drives for each RAID5 array are specified as a single drive list.
4553c6bf4efSScott Long.It Cm raid60
4563c6bf4efSScott LongCreates one RAID60 volume spanning multiple RAID6 arrays.
4573c6bf4efSScott LongThe drives for each RAID6 array are specified as a single drive list.
4583c6bf4efSScott Long.It Cm concat
4593c6bf4efSScott LongCreates a single volume by concatenating all of the drives in the single drive
4603c6bf4efSScott Longlist.
4613c6bf4efSScott Long.El
4623c6bf4efSScott Long.Pp
4633c6bf4efSScott Long.Sy Note:
4643c6bf4efSScott LongNot all volume types are supported by all controllers.
4653c6bf4efSScott Long.Pp
4663c6bf4efSScott LongIf the
4673c6bf4efSScott Long.Fl v
4683c6bf4efSScott Longflag is specified after
4693c6bf4efSScott Long.Ar type ,
4703c6bf4efSScott Longthen more verbose output will be enabled.
4713c6bf4efSScott LongCurrently this just provides notification as drives are added to arrays and
4723c6bf4efSScott Longarrays to volumes when building the configuration.
4733c6bf4efSScott Long.Pp
4743c6bf4efSScott LongThe
4753c6bf4efSScott Long.Fl s
4763c6bf4efSScott Long.Ar stripe_size
4773c6bf4efSScott Longparameter allows the stripe size of the array to be set.
4783c6bf4efSScott LongBy default a stripe size of 64K is used.
4793c6bf4efSScott LongValid values are 512 through 1M, though the MFI firmware may reject some
4803c6bf4efSScott Longvalues.
4813c6bf4efSScott Long.It Cm delete Ar volume
4823c6bf4efSScott LongDelete the volume
4833c6bf4efSScott Long.Ar volume .
4843c6bf4efSScott Long.It Cm add Ar drive Op Ar volume
4853c6bf4efSScott LongMark
4863c6bf4efSScott Long.Ar drive
4873c6bf4efSScott Longas a hot spare.
4883c6bf4efSScott Long.Ar Drive
4893c6bf4efSScott Longmust be in the unconfigured good state.
4903c6bf4efSScott LongIf
4913c6bf4efSScott Long.Ar volume
4923c6bf4efSScott Longis specified,
4933c6bf4efSScott Longthen the hot spare will be dedicated to arrays backing that volume.
4943c6bf4efSScott LongOtherwise,
4953c6bf4efSScott Long.Ar drive
4963c6bf4efSScott Longwill be used as a global hot spare backing all arrays for this controller.
4973c6bf4efSScott LongNote that
4983c6bf4efSScott Long.Ar drive
4993c6bf4efSScott Longmust be as large as the smallest drive in all of the arrays it is going to
5003c6bf4efSScott Longback.
5013c6bf4efSScott Long.It Cm remove Ar drive
5023c6bf4efSScott LongRemove the hot spare
5033c6bf4efSScott Long.Ar drive
5043c6bf4efSScott Longfrom service.
5053c6bf4efSScott LongIt will be placed in the unconfigured good state.
5063c6bf4efSScott Long.El
5073c6bf4efSScott Long.Pp
5083c6bf4efSScott LongThe controller management commands include:
5093c6bf4efSScott Long.Bl -tag -width indent
5103c6bf4efSScott Long.It Cm patrol Ar command Op Ar interval Op Ar start
5113c6bf4efSScott LongSet the patrol read operation mode.
5123c6bf4efSScott LongThe
5133c6bf4efSScott Long.Ar command
5143c6bf4efSScott Longargument can be one of the following values:
5153c6bf4efSScott Long.Bl -tag -width indent
5163c6bf4efSScott Long.It Cm disable
5173c6bf4efSScott LongDisable patrol reads.
5183c6bf4efSScott Long.It Cm auto
5193c6bf4efSScott LongEnable periodic patrol reads initiated by the firmware.
5203c6bf4efSScott LongThe optional
5213c6bf4efSScott Long.Ar interval
5223c6bf4efSScott Longargument specifies the interval in seconds between patrol reads.
523d4352d29SJoel DahlIf patrol reads should be run continuously,
5243c6bf4efSScott Longthen
5253c6bf4efSScott Long.Ar interval
5263c6bf4efSScott Longshould consist of the word
5273c6bf4efSScott Long.Dq continuously .
5283c6bf4efSScott LongThe optional
5293c6bf4efSScott Long.Ar start
5303c6bf4efSScott Longargument specifies a non-negative, relative start time for the next patrol read.
5313c6bf4efSScott LongIf an interval or start time is not specified,
5323c6bf4efSScott Longthen the existing setting will be used.
5333c6bf4efSScott Long.It Cm manual
5343c6bf4efSScott LongEnable manual patrol reads that are only initiated by the user.
5353c6bf4efSScott Long.El
5363c6bf4efSScott Long.It Cm start patrol
5373c6bf4efSScott LongStart a patrol read operation.
5383c6bf4efSScott Long.It Cm stop patrol
5393c6bf4efSScott LongStop a currently running patrol read operation.
5403c6bf4efSScott Long.It Cm flash Ar file
5413c6bf4efSScott LongUpdates the flash on the controller with the firmware stored in
5423c6bf4efSScott Long.Ar file .
5433c6bf4efSScott LongA reboot is required for the new firmware to take effect.
5443c6bf4efSScott Long.El
5453c6bf4efSScott Long.Sh EXAMPLES
5463c6bf4efSScott LongConfigure the cache for volume mfid0 to cache only writes:
5473c6bf4efSScott Long.Pp
5483c6bf4efSScott Long.Dl Nm Cm cache mfid0 writes
5493c6bf4efSScott Long.Dl Nm Cm cache mfid0 write-back
5503c6bf4efSScott Long.Pp
5513c6bf4efSScott LongCreate a RAID5 array spanning the first four disks in the second enclosure:
5523c6bf4efSScott Long.Pp
5533c6bf4efSScott Long.Dl Nm Cm create raid5 e1:s0,e1:s1,e1:s2,e1:s4
5543c6bf4efSScott Long.Pp
5553c6bf4efSScott LongConfigure the first three disks on a controller as JBOD:
5563c6bf4efSScott Long.Pp
5573c6bf4efSScott Long.Dl Nm Cm create jbod 0 1 2
5583c6bf4efSScott Long.Pp
5593c6bf4efSScott LongCreate a RAID10 volume that spans two arrays each of which contains two disks
5603c6bf4efSScott Longfrom two different enclosures:
5613c6bf4efSScott Long.Pp
5623c6bf4efSScott Long.Dl Nm Cm create raid10 e1:s0,e1:s1 e2:s0,e2:s1
5633c6bf4efSScott Long.Pp
5643c6bf4efSScott LongAdd drive with the device ID of 4 as a global hot spare:
5653c6bf4efSScott Long.Pp
5663c6bf4efSScott Long.Dl Nm Cm add 4
5673c6bf4efSScott Long.Pp
5683c6bf4efSScott LongAdd the drive in slot 2 in the main chassis as a hot spare for volume mfid0:
5693c6bf4efSScott Long.Pp
5703c6bf4efSScott Long.Dl Nm Cm add s2 mfid0
5713c6bf4efSScott Long.Pp
5723c6bf4efSScott LongConfigure the adapter to run periodic patrol reads once a week with the first
5733c6bf4efSScott Longpatrol read starting in 5 minutes:
5743c6bf4efSScott Long.Pp
5753c6bf4efSScott Long.Dl Nm Cm patrol auto 604800 300
5763c6bf4efSScott Long.Pp
5773c6bf4efSScott Long.Sh SEE ALSO
5783c6bf4efSScott Long.Xr mfi 4
579d78c3fa1SScott Long.Sh HISTORY
580d78c3fa1SScott LongThe
581d78c3fa1SScott Long.Nm
582d78c3fa1SScott Longutility first appeared in
583d78c3fa1SScott Long.Fx 8.0 .
584