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.\" 302e5df98aSJohn Baldwin.Dd September 2, 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 467bbae305SBjoern A. Zeeb.Op Fl d 477bbae305SBjoern A. Zeeb.Op Fl e 483c6bf4efSScott Long.Op Fl u Ar unit 493c6bf4efSScott Long.Cm show config 503c6bf4efSScott Long.Nm 513c6bf4efSScott Long.Op Fl u Ar unit 523c6bf4efSScott Long.Cm show drives 533c6bf4efSScott Long.Nm 543c6bf4efSScott Long.Op Fl u Ar unit 553c6bf4efSScott Long.Cm show events 563c6bf4efSScott Long.Op Fl c Ar class 573c6bf4efSScott Long.Op Fl l Ar locale 583c6bf4efSScott Long.Op Fl n Ar count 593c6bf4efSScott Long.Op Fl v 603c6bf4efSScott Long.Op Ar start Op Ar stop 613c6bf4efSScott Long.Nm 623c6bf4efSScott Long.Op Fl u Ar unit 633c6bf4efSScott Long.Cm show firmware 643c6bf4efSScott Long.Nm 653c6bf4efSScott Long.Op Fl u Ar unit 663c6bf4efSScott Long.Cm show logstate 673c6bf4efSScott Long.Nm 687bbae305SBjoern A. Zeeb.Op Fl d 697bbae305SBjoern A. Zeeb.Op Fl e 703c6bf4efSScott Long.Op Fl u Ar unit 713c6bf4efSScott Long.Cm show patrol 723c6bf4efSScott Long.Nm 737bbae305SBjoern A. Zeeb.Op Fl d 747bbae305SBjoern A. Zeeb.Op Fl e 753c6bf4efSScott Long.Op Fl u Ar unit 7698be0dfeSJohn Baldwin.Cm show progress 7798be0dfeSJohn Baldwin.Nm 7898be0dfeSJohn Baldwin.Op Fl u Ar unit 793c6bf4efSScott Long.Cm show volumes 803c6bf4efSScott Long.Nm 813c6bf4efSScott Long.Op Fl u Ar unit 823c6bf4efSScott Long.Cm fail Ar drive 833c6bf4efSScott Long.Nm 843c6bf4efSScott Long.Op Fl u Ar unit 853c6bf4efSScott Long.Cm good Ar drive 863c6bf4efSScott Long.Nm 873c6bf4efSScott Long.Op Fl u Ar unit 883c6bf4efSScott Long.Cm rebuild Ar drive 893c6bf4efSScott Long.Nm 903c6bf4efSScott Long.Op Fl u Ar unit 913c6bf4efSScott Long.Cm drive progress Ar drive 923c6bf4efSScott Long.Nm 933c6bf4efSScott Long.Op Fl u Ar unit 943c6bf4efSScott Long.Cm drive clear Ar drive Brq "start | stop" 953c6bf4efSScott Long.Nm 963c6bf4efSScott Long.Op Fl u Ar unit 973c6bf4efSScott Long.Cm start rebuild Ar drive 983c6bf4efSScott Long.Nm 993c6bf4efSScott Long.Op Fl u Ar unit 1003c6bf4efSScott Long.Cm abort rebuild Ar drive 1013c6bf4efSScott Long.Nm 1023c6bf4efSScott Long.Op Fl u Ar unit 1033c6bf4efSScott Long.Cm locate Ar drive Brq "on | off" 1043c6bf4efSScott Long.Nm 1053c6bf4efSScott Long.Op Fl u Ar unit 1062e5df98aSJohn Baldwin.Cm cache Ar volume Op Ar setting Oo Ar value Oc Op ... 1073c6bf4efSScott Long.Nm 1083c6bf4efSScott Long.Op Fl u Ar unit 1093c6bf4efSScott Long.Cm name Ar volume Ar name 1103c6bf4efSScott Long.Nm 1113c6bf4efSScott Long.Op Fl u Ar unit 1123c6bf4efSScott Long.Cm volume progress Ar volume 1133c6bf4efSScott Long.Nm 1143c6bf4efSScott Long.Op Fl u Ar unit 1153c6bf4efSScott Long.Cm clear 1163c6bf4efSScott Long.Nm 1173c6bf4efSScott Long.Op Fl u Ar unit 1183c6bf4efSScott Long.Cm create Ar type 1193c6bf4efSScott Long.Op Fl v 1203c6bf4efSScott Long.Op Fl s Ar stripe_size 1213c6bf4efSScott Long.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..." 1223c6bf4efSScott Long.Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..." 1233c6bf4efSScott Long.Nm 1243c6bf4efSScott Long.Op Fl u Ar unit 1253c6bf4efSScott Long.Cm delete Ar volume 1263c6bf4efSScott Long.Nm 1273c6bf4efSScott Long.Op Fl u Ar unit 1283c6bf4efSScott Long.Cm add Ar drive Op Ar volume 1293c6bf4efSScott Long.Nm 1303c6bf4efSScott Long.Op Fl u Ar unit 1313c6bf4efSScott Long.Cm remove Ar drive 1323c6bf4efSScott Long.Nm 1333c6bf4efSScott Long.Op Fl u Ar unit 1343c6bf4efSScott Long.Cm start patrol 1353c6bf4efSScott Long.Nm 1363c6bf4efSScott Long.Op Fl u Ar unit 1373c6bf4efSScott Long.Cm stop patrol 1383c6bf4efSScott Long.Nm 1393c6bf4efSScott Long.Op Fl u Ar unit 1403c6bf4efSScott Long.Cm patrol Ar command Op Ar interval Op Ar start 1413c6bf4efSScott Long.Nm 1423c6bf4efSScott Long.Op Fl u Ar unit 1433c6bf4efSScott Long.Cm flash Ar file 144*dee3e845SMark Johnston.Nm 145*dee3e845SMark Johnston.Op Fl u Ar unit 146*dee3e845SMark Johnston.Cm start learn 147*dee3e845SMark Johnston.Nm 148*dee3e845SMark Johnston.Op Fl u Ar unit 149*dee3e845SMark Johnston.Cm bbu Ar setting Ar value 1503c6bf4efSScott Long.Sh DESCRIPTION 1513c6bf4efSScott LongThe 1523c6bf4efSScott Long.Nm 1533c6bf4efSScott Longutility can be used to display or modify various parameters on LSI 1543c6bf4efSScott LongMegaRAID SAS RAID controllers. 1553c6bf4efSScott LongEach invocation of 1563c6bf4efSScott Long.Nm 1573c6bf4efSScott Longconsists of zero or more global options followed by a command. 1583c6bf4efSScott LongCommands may support additional optional or required arguments after the 1593c6bf4efSScott Longcommand. 1603c6bf4efSScott Long.Pp 1613c6bf4efSScott LongCurrently one global option is supported: 1623c6bf4efSScott Long.Bl -tag -width indent 1633c6bf4efSScott Long.It Fl u Ar unit 1643c6bf4efSScott Long.Ar unit 1653c6bf4efSScott Longspecifies the unit of the controller to work with. 1663c6bf4efSScott LongIf no unit is specified, 1673c6bf4efSScott Longthen unit 0 is used. 1683c6bf4efSScott Long.El 1693c6bf4efSScott Long.Pp 1707bbae305SBjoern A. ZeebVarious commands accept either or both of the two options: 1717bbae305SBjoern A. Zeeb.Bl -tag -width indent 1727bbae305SBjoern A. Zeeb.It Fl d 1737bbae305SBjoern A. ZeebPrint numeric device IDs as drive identifier. 1747bbae305SBjoern A. ZeebThis is the default. 1757bbae305SBjoern A. ZeebUseful in combination with 1767bbae305SBjoern A. Zeeb.Fl e 1777bbae305SBjoern A. Zeebto print both, numeric device IDs and enclosure:slot information. 1787bbae305SBjoern A. Zeeb.It Fl e 1797bbae305SBjoern A. ZeebPrint drive identifiers in enclosure:slot form. 1807bbae305SBjoern A. ZeebSee next paragraph on format details in context of input rather than 1817bbae305SBjoern A. Zeeboutput. 1827bbae305SBjoern A. Zeeb.El 1833c6bf4efSScott Long.Pp 1843c6bf4efSScott LongDrives may be specified in two forms. 1853c6bf4efSScott LongFirst, 1863c6bf4efSScott Longa drive may be identified by its device ID. 1873c6bf4efSScott LongThe device ID for configured drives can be found in 1883c6bf4efSScott Long.Cm show config . 1893c6bf4efSScott LongSecond, 1903c6bf4efSScott Longa drive may be identified by its location as 1913c6bf4efSScott Long.Sm off 1923c6bf4efSScott Long.Op E Ar xx Ns \&: 1933c6bf4efSScott Long.Li S Ns Ar yy 1943c6bf4efSScott Long.Sm on 1953c6bf4efSScott Longwhere 1963c6bf4efSScott Long.Ar xx 1973c6bf4efSScott Longis the enclosure 1983c6bf4efSScott Longand 1993c6bf4efSScott Long.Ar yy 2003c6bf4efSScott Longis the slot for each drive as displayed in 2013c6bf4efSScott Long.Cm show drives . 2023c6bf4efSScott Long.Pp 2037bbae305SBjoern A. ZeebVolumes may be specified in two forms. 2047bbae305SBjoern A. ZeebFirst, 2057bbae305SBjoern A. Zeeba volume may be identified by its target ID. 2067bbae305SBjoern A. ZeebSecond, 2077bbae305SBjoern A. Zeebon the volume may be specified by the corresponding 2087bbae305SBjoern A. Zeeb.Em mfidX 2097bbae305SBjoern A. Zeebdevice, 2107bbae305SBjoern A. Zeebsuch as 2117bbae305SBjoern A. Zeeb.Em mfid0 . 2127bbae305SBjoern A. Zeeb.Pp 2133c6bf4efSScott LongThe 2143c6bf4efSScott Long.Nm 2153c6bf4efSScott Longutility supports several different groups of commands. 2163c6bf4efSScott LongThe first group of commands provide information about the controller, 2173c6bf4efSScott Longthe volumes it manages, and the drives it controls. 2183c6bf4efSScott LongThe second group of commands are used to manage the physical drives 2193c6bf4efSScott Longattached to the controller. 2203c6bf4efSScott LongThe third group of commands are used to manage the logical volumes 2213c6bf4efSScott Longmanaged by the controller. 2223c6bf4efSScott LongThe fourth group of commands are used to manage the drive configuration for 2233c6bf4efSScott Longthe controller. 2243c6bf4efSScott LongThe fifth group of commands are used to manage controller-wide operations. 2253c6bf4efSScott Long.Pp 2263c6bf4efSScott LongThe informational commands include: 2273c6bf4efSScott Long.Bl -tag -width indent 2283c6bf4efSScott Long.It Cm version 2293c6bf4efSScott LongDisplays the version of 2303c6bf4efSScott Long.Nm . 2313c6bf4efSScott Long.It Cm show adapter 2323c6bf4efSScott LongDisplays information about the RAID controller such as the model number. 2333c6bf4efSScott Long.It Cm show battery 2343c6bf4efSScott LongDisplays information about the battery from the battery backup unit. 2353c6bf4efSScott Long.It Cm show config 2363c6bf4efSScott LongDisplays the volume and drive configuration for the controller. 2373c6bf4efSScott LongEach array is listed along with the physical drives the array is built from. 2383c6bf4efSScott LongEach volume is listed along with the arrays that the volume spans. 2393c6bf4efSScott LongIf any hot spare drives are configured, then they are listed as well. 2403c6bf4efSScott Long.It Cm show drives 2413c6bf4efSScott LongLists all of the physical drives attached to the controller. 2423c6bf4efSScott Long.It Xo Cm show events 2433c6bf4efSScott Long.Op Fl c Ar class 2443c6bf4efSScott Long.Op Fl l Ar locale 2453c6bf4efSScott Long.Op Fl n Ar count 2463c6bf4efSScott Long.Op Fl v 2473c6bf4efSScott Long.Op Ar start Op Ar stop 2483c6bf4efSScott Long.Xc 2493c6bf4efSScott LongDisplay entries from the controller's event log. 2503c6bf4efSScott LongThe controller maintains a circular buffer of events. 2513c6bf4efSScott LongEach event is tagged with a class and locale. 2523c6bf4efSScott Long.Pp 2533c6bf4efSScott LongThe 2543c6bf4efSScott Long.Ar class 2553c6bf4efSScott Longparameter limits the output to entries at the specified class or higher. 2563c6bf4efSScott LongThe default class is 2573c6bf4efSScott Long.Dq warn . 2583c6bf4efSScott LongThe available classes from lowest priority to highest are: 25946355096SJoel Dahl.Bl -tag -width indent 2603c6bf4efSScott Long.It Cm debug 2613c6bf4efSScott LongDebug messages. 2623c6bf4efSScott Long.It Cm progress 2633c6bf4efSScott LongPeriodic progress updates for long-running operations such as background 2643c6bf4efSScott Longinitializations, array rebuilds, or patrol reads. 2653c6bf4efSScott Long.It Cm info 2663c6bf4efSScott LongInformational messages such as drive insertions and volume creations. 2673c6bf4efSScott Long.It Cm warn 2683c6bf4efSScott LongIndicates that some component may be close to failing. 2693c6bf4efSScott Long.It Cm crit 2703c6bf4efSScott LongA component has failed, but no data is lost. 2713c6bf4efSScott LongFor example, a volume becoming degraded due to a drive failure. 2723c6bf4efSScott Long.It Cm fatal 2733c6bf4efSScott LongA component has failed resulting in data loss. 2743c6bf4efSScott Long.It Cm dead 2753c6bf4efSScott LongThe controller itself has died. 2763c6bf4efSScott Long.El 2773c6bf4efSScott Long.Pp 2783c6bf4efSScott LongThe 2793c6bf4efSScott Long.Ar locale 2803c6bf4efSScott Longparameter limits the output to entries for the specified part of the controller. 2813c6bf4efSScott LongThe default locale is 2823c6bf4efSScott Long.Dq all . 2833c6bf4efSScott LongThe available locales are 2843c6bf4efSScott Long.Dq volume , 2853c6bf4efSScott Long.Dq drive , 286f6ac2391SJoel Dahl.Dq enclosure , 2873c6bf4efSScott Long.Dq battery , 2883c6bf4efSScott Long.Dq sas , 2893c6bf4efSScott Long.Dq controller , 2903c6bf4efSScott Long.Dq config , 2913c6bf4efSScott Long.Dq cluster , 2923c6bf4efSScott Longand 2933c6bf4efSScott Long.Dq all . 2943c6bf4efSScott Long.Pp 2953c6bf4efSScott LongThe 2963c6bf4efSScott Long.Ar count 2973c6bf4efSScott Longparameter is a debugging aid that specifies the number of events to fetch from 2983c6bf4efSScott Longthe controller for each low-level request. 2993c6bf4efSScott LongThe default is 15 events. 3003c6bf4efSScott Long.Pp 3013c6bf4efSScott LongBy default, matching event log entries from the previous shutdown up to the 3023c6bf4efSScott Longpresent are displayed. This range can be adjusted via the 3033c6bf4efSScott Long.Ar start 3043c6bf4efSScott Longand 3053c6bf4efSScott Long.Ar stop 3063c6bf4efSScott Longparameters. 3073c6bf4efSScott LongEach of these parameters can either be specified as a log entry number or as 3083c6bf4efSScott Longone of the following aliases: 30946355096SJoel Dahl.Bl -tag -width indent 3103c6bf4efSScott Long.It Cm newest 3113c6bf4efSScott LongThe newest entry in the event log. 3123c6bf4efSScott Long.It Cm oldest 3133c6bf4efSScott LongThe oldest entry in the event log. 3143c6bf4efSScott Long.It Cm clear 3153c6bf4efSScott LongThe first entry since the event log was cleared. 3163c6bf4efSScott Long.It Cm shutdown 3173c6bf4efSScott LongThe entry in the event log corresponding to the last time the controller was 3183c6bf4efSScott Longcleanly shut down. 3193c6bf4efSScott Long.It Cm boot 3203c6bf4efSScott LongThe entry in the event log corresponding to the most recent boot. 3213c6bf4efSScott Long.El 3223c6bf4efSScott Long.It Cm show firmware 3233c6bf4efSScott LongLists all of the firmware images present on the controller. 3243c6bf4efSScott Long.It Cm show logstate 3253c6bf4efSScott LongDisplay the various sequence numbers associated with the event log. 3263c6bf4efSScott Long.It Cm show patrol 3273c6bf4efSScott LongDisplay the status of the controller's patrol read operation. 32898be0dfeSJohn Baldwin.It Cm show progress 32998be0dfeSJohn BaldwinReport the current progress and estimated completion time for active 33098be0dfeSJohn Baldwinoperations on all volumes and drives. 3313c6bf4efSScott Long.It Cm show volumes 3323c6bf4efSScott LongLists all of the logical volumes managed by the controller. 3333c6bf4efSScott Long.El 3343c6bf4efSScott Long.Pp 3353c6bf4efSScott LongThe physical drive management commands include: 3363c6bf4efSScott Long.Bl -tag -width indent 3373c6bf4efSScott Long.It Cm fail Ar drive 3383c6bf4efSScott LongMark 3393c6bf4efSScott Long.Ar drive 3403c6bf4efSScott Longas failed. 3413c6bf4efSScott Long.Ar Drive 3423c6bf4efSScott Longmust be an online drive that is part of an array. 3433c6bf4efSScott Long.It Cm good Ar drive 3443c6bf4efSScott LongMark 3453c6bf4efSScott Long.Ar drive 3463c6bf4efSScott Longas an unconfigured good drive. 3473c6bf4efSScott Long.Ar Drive 3483c6bf4efSScott Longmust not be part of an existing array. 3493c6bf4efSScott Long.It Cm rebuild Ar drive 3503c6bf4efSScott LongMark a failed 3513c6bf4efSScott Long.Ar drive 3523c6bf4efSScott Longthat is still part of an array as a good drive suitable for a rebuild. 3533c6bf4efSScott LongThe firmware should kick off an array rebuild on its own if a failed drive 3543c6bf4efSScott Longis marked as a rebuild drive. 3553c6bf4efSScott Long.It Cm drive progress Ar drive 3563c6bf4efSScott LongReport the current progress and estimated completion time of drive operations 3573c6bf4efSScott Longsuch as rebuilds or patrol reads. 3583c6bf4efSScott Long.It Cm drive clear Ar drive Brq "start | stop" 3593c6bf4efSScott LongStart or stop the writing of all 0x00 characters to a drive. 3603c6bf4efSScott Long.It Cm start rebuild Ar drive 3613c6bf4efSScott LongManually start a rebuild on 3623c6bf4efSScott Long.Ar drive . 3633c6bf4efSScott Long.It Cm abort rebuild Ar drive 3643c6bf4efSScott LongAbort an in-progress rebuild operation on 3653c6bf4efSScott Long.Ar drive . 3663c6bf4efSScott LongIt can be resumed with the 3673c6bf4efSScott Long.Cm start rebuild 3683c6bf4efSScott Longcommand. 3693c6bf4efSScott Long.It Cm locate Ar drive Brq "on | off" 3703c6bf4efSScott LongChange the state of the external LED associated with 3713c6bf4efSScott Long.Ar drive . 3723c6bf4efSScott Long.El 3733c6bf4efSScott Long.Pp 3743c6bf4efSScott LongThe logical volume management commands include: 3753c6bf4efSScott Long.Bl -tag -width indent 3762e5df98aSJohn Baldwin.It Cm cache Ar volume Op Ar setting Oo Ar value Oc Op ... 3773c6bf4efSScott LongIf no 3783c6bf4efSScott Long.Ar setting 3792e5df98aSJohn Baldwinarguments are supplied, then the current cache policy for 3803c6bf4efSScott Long.Ar volume 3813c6bf4efSScott Longis displayed; 3823c6bf4efSScott Longotherwise, 3833c6bf4efSScott Longthe cache policy for 3843c6bf4efSScott Long.Ar volume 3853c6bf4efSScott Longis modified. 3862e5df98aSJohn BaldwinOne or more 3873c6bf4efSScott Long.Ar setting 3882e5df98aSJohn Baldwinarguments may be given. 3892e5df98aSJohn BaldwinSome settings take an additional 3902e5df98aSJohn Baldwin.Ar value 3912e5df98aSJohn Baldwinargument as noted below. 3922e5df98aSJohn BaldwinThe valid settings are: 3933c6bf4efSScott Long.Bl -tag -width indent 3943c6bf4efSScott Long.It Cm enable 3953c6bf4efSScott LongEnable caching for both read and write I/O operations. 3963c6bf4efSScott Long.It Cm disable 3973c6bf4efSScott LongDisable caching for both read and write I/O operations. 3983c6bf4efSScott Long.It Cm reads 3993c6bf4efSScott LongEnable caching only for read I/O operations. 4003c6bf4efSScott Long.It Cm writes 4013c6bf4efSScott LongEnable caching only for write I/O operations. 4023c6bf4efSScott Long.It Cm write-back 4033c6bf4efSScott LongUse write-back policy for cached writes. 4043c6bf4efSScott Long.It Cm write-through 4053c6bf4efSScott LongUse write-through policy for cached writes. 4068b22f43dSJohn Baldwin.It Cm read-ahead Ar value 4073c6bf4efSScott LongSet the read ahead policy for cached reads. 4083c6bf4efSScott LongThe 4093c6bf4efSScott Long.Ar value 4103c6bf4efSScott Longargument can be set to either 4113c6bf4efSScott Long.Dq none , 4123c6bf4efSScott Long.Dq adaptive , 4133c6bf4efSScott Longor 4143c6bf4efSScott Long.Dq always . 4158b22f43dSJohn Baldwin.It Cm bad-bbu-write-cache Ar value 4168b22f43dSJohn BaldwinControl the behavior of I/O write caching if the battery is dead or 4178b22f43dSJohn Baldwinmissing. 4188b22f43dSJohn BaldwinThe 4198b22f43dSJohn Baldwin.Ar value 4208b22f43dSJohn Baldwinargument can be set to either 4218b22f43dSJohn Baldwin.Dq disable 4228b22f43dSJohn Baldwinor 4238b22f43dSJohn Baldwin.Dq enable . 4248b22f43dSJohn BaldwinIn general this setting should be left disabled to avoid data loss when 4258b22f43dSJohn Baldwinthe system loses power. 4268b22f43dSJohn Baldwin.It Cm write-cache Ar value 4273c6bf4efSScott LongControl the write caches on the physical drives backing 4283c6bf4efSScott Long.Ar volume . 4293c6bf4efSScott LongThe 4303c6bf4efSScott Long.Ar value 4313c6bf4efSScott Longargument can be set to either 4323c6bf4efSScott Long.Dq disable , 4333c6bf4efSScott Long.Dq enable , 4343c6bf4efSScott Longor 4353c6bf4efSScott Long.Dq default . 4363c6bf4efSScott Long.Pp 4373c6bf4efSScott LongIn general this setting should be left disabled to avoid data loss when the 4383c6bf4efSScott Longphysical drives lose power. 4393c6bf4efSScott LongThe battery backup of the RAID controller does not save data in the write 4403c6bf4efSScott Longcaches of the physical drives. 4413c6bf4efSScott Long.El 4423c6bf4efSScott Long.It Cm name Ar volume Ar name 4433c6bf4efSScott LongSets the name of 4443c6bf4efSScott Long.Ar volume 4453c6bf4efSScott Longto 4463c6bf4efSScott Long.Ar name . 4473c6bf4efSScott Long.It Cm volume progress Ar volume 4483c6bf4efSScott LongReport the current progress and estimated completion time of volume operations 4493c6bf4efSScott Longsuch as consistency checks and initializations. 4503c6bf4efSScott Long.El 4513c6bf4efSScott Long.Pp 4523c6bf4efSScott LongThe configuration commands include: 4533c6bf4efSScott Long.Bl -tag -width indent 4543c6bf4efSScott Long.It Cm clear 4553c6bf4efSScott LongDelete the entire configuration including all volumes, arrays, and spares. 4563c6bf4efSScott Long.It Xo Cm create Ar type 4573c6bf4efSScott Long.Op Fl v 4583c6bf4efSScott Long.Op Fl s Ar stripe_size 4593c6bf4efSScott Long.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..." 4603c6bf4efSScott Long.Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..." 4613c6bf4efSScott Long.Xc 4623c6bf4efSScott LongCreate a new volume. 4633c6bf4efSScott LongThe 4643c6bf4efSScott Long.Ar type 4653c6bf4efSScott Longspecifies the type of volume to create. 4663c6bf4efSScott LongCurrently supported types include: 4673c6bf4efSScott Long.Bl -tag -width indent 4683c6bf4efSScott Long.It Cm jbod 4693c6bf4efSScott LongCreates a RAID0 volume for each drive specified. 4703c6bf4efSScott LongEach drive must be specified as a separate argument. 4713c6bf4efSScott Long.It Cm raid0 4723c6bf4efSScott LongCreates one RAID0 volume spanning the drives listed in the single drive list. 4733c6bf4efSScott Long.It Cm raid1 4743c6bf4efSScott LongCreates one RAID1 volume spanning the drives listed in the single drive list. 4753c6bf4efSScott Long.It Cm raid5 4763c6bf4efSScott LongCreates one RAID5 volume spanning the drives listed in the single drive list. 4773c6bf4efSScott Long.It Cm raid6 4783c6bf4efSScott LongCreates one RAID6 volume spanning the drives listed in the single drive list. 4793c6bf4efSScott Long.It Cm raid10 4803c6bf4efSScott LongCreates one RAID10 volume spanning multiple RAID1 arrays. 4813c6bf4efSScott LongThe drives for each RAID1 array are specified as a single drive list. 4823c6bf4efSScott Long.It Cm raid50 4833c6bf4efSScott LongCreates one RAID50 volume spanning multiple RAID5 arrays. 4843c6bf4efSScott LongThe drives for each RAID5 array are specified as a single drive list. 4853c6bf4efSScott Long.It Cm raid60 4863c6bf4efSScott LongCreates one RAID60 volume spanning multiple RAID6 arrays. 4873c6bf4efSScott LongThe drives for each RAID6 array are specified as a single drive list. 4883c6bf4efSScott Long.It Cm concat 4893c6bf4efSScott LongCreates a single volume by concatenating all of the drives in the single drive 4903c6bf4efSScott Longlist. 4913c6bf4efSScott Long.El 4923c6bf4efSScott Long.Pp 4933c6bf4efSScott Long.Sy Note: 4943c6bf4efSScott LongNot all volume types are supported by all controllers. 4953c6bf4efSScott Long.Pp 4963c6bf4efSScott LongIf the 4973c6bf4efSScott Long.Fl v 4983c6bf4efSScott Longflag is specified after 4993c6bf4efSScott Long.Ar type , 5003c6bf4efSScott Longthen more verbose output will be enabled. 5013c6bf4efSScott LongCurrently this just provides notification as drives are added to arrays and 5023c6bf4efSScott Longarrays to volumes when building the configuration. 5033c6bf4efSScott Long.Pp 5043c6bf4efSScott LongThe 5053c6bf4efSScott Long.Fl s 5063c6bf4efSScott Long.Ar stripe_size 5073c6bf4efSScott Longparameter allows the stripe size of the array to be set. 5083c6bf4efSScott LongBy default a stripe size of 64K is used. 5093c6bf4efSScott LongValid values are 512 through 1M, though the MFI firmware may reject some 5103c6bf4efSScott Longvalues. 5113c6bf4efSScott Long.It Cm delete Ar volume 5123c6bf4efSScott LongDelete the volume 5133c6bf4efSScott Long.Ar volume . 5143c6bf4efSScott Long.It Cm add Ar drive Op Ar volume 5153c6bf4efSScott LongMark 5163c6bf4efSScott Long.Ar drive 5173c6bf4efSScott Longas a hot spare. 5183c6bf4efSScott Long.Ar Drive 5193c6bf4efSScott Longmust be in the unconfigured good state. 5203c6bf4efSScott LongIf 5213c6bf4efSScott Long.Ar volume 5223c6bf4efSScott Longis specified, 5233c6bf4efSScott Longthen the hot spare will be dedicated to arrays backing that volume. 5243c6bf4efSScott LongOtherwise, 5253c6bf4efSScott Long.Ar drive 5263c6bf4efSScott Longwill be used as a global hot spare backing all arrays for this controller. 5273c6bf4efSScott LongNote that 5283c6bf4efSScott Long.Ar drive 5293c6bf4efSScott Longmust be as large as the smallest drive in all of the arrays it is going to 5303c6bf4efSScott Longback. 5313c6bf4efSScott Long.It Cm remove Ar drive 5323c6bf4efSScott LongRemove the hot spare 5333c6bf4efSScott Long.Ar drive 5343c6bf4efSScott Longfrom service. 5353c6bf4efSScott LongIt will be placed in the unconfigured good state. 5363c6bf4efSScott Long.El 5373c6bf4efSScott Long.Pp 5383c6bf4efSScott LongThe controller management commands include: 5393c6bf4efSScott Long.Bl -tag -width indent 5403c6bf4efSScott Long.It Cm patrol Ar command Op Ar interval Op Ar start 5413c6bf4efSScott LongSet the patrol read operation mode. 5423c6bf4efSScott LongThe 5433c6bf4efSScott Long.Ar command 5443c6bf4efSScott Longargument can be one of the following values: 5453c6bf4efSScott Long.Bl -tag -width indent 5463c6bf4efSScott Long.It Cm disable 5473c6bf4efSScott LongDisable patrol reads. 5483c6bf4efSScott Long.It Cm auto 5493c6bf4efSScott LongEnable periodic patrol reads initiated by the firmware. 5503c6bf4efSScott LongThe optional 5513c6bf4efSScott Long.Ar interval 5523c6bf4efSScott Longargument specifies the interval in seconds between patrol reads. 553d4352d29SJoel DahlIf patrol reads should be run continuously, 5543c6bf4efSScott Longthen 5553c6bf4efSScott Long.Ar interval 5563c6bf4efSScott Longshould consist of the word 5573c6bf4efSScott Long.Dq continuously . 5583c6bf4efSScott LongThe optional 5593c6bf4efSScott Long.Ar start 5603c6bf4efSScott Longargument specifies a non-negative, relative start time for the next patrol read. 5613c6bf4efSScott LongIf an interval or start time is not specified, 5623c6bf4efSScott Longthen the existing setting will be used. 5633c6bf4efSScott Long.It Cm manual 5643c6bf4efSScott LongEnable manual patrol reads that are only initiated by the user. 5653c6bf4efSScott Long.El 5663c6bf4efSScott Long.It Cm start patrol 5673c6bf4efSScott LongStart a patrol read operation. 5683c6bf4efSScott Long.It Cm stop patrol 5693c6bf4efSScott LongStop a currently running patrol read operation. 5703c6bf4efSScott Long.It Cm flash Ar file 5713c6bf4efSScott LongUpdates the flash on the controller with the firmware stored in 5723c6bf4efSScott Long.Ar file . 5733c6bf4efSScott LongA reboot is required for the new firmware to take effect. 574*dee3e845SMark Johnston.It Cm start learn 575*dee3e845SMark JohnstonStart a battery relearn. 576*dee3e845SMark Johnston.It Cm bbu Ar setting Ar value 577*dee3e845SMark JohnstonUpdate battery backup unit (BBU) properties related to battery relearning. 578*dee3e845SMark JohnstonThe following settings are configurable: 579*dee3e845SMark Johnston.Bl -tag -width indent 580*dee3e845SMark Johnston.It Cm learn-delay 581*dee3e845SMark JohnstonAdd a delay to the next scheduled battery relearn event. This setting is 582*dee3e845SMark Johnstongiven in hours and must lie in the range of 0 to 255. 583*dee3e845SMark Johnston.It Cm autolearn-mode 584*dee3e845SMark JohnstonEnable or disable automatic periodic battery relearning. 585*dee3e845SMark JohnstonThe setting may be set to 586*dee3e845SMark Johnston.Dq enable 587*dee3e845SMark Johnstonor 588*dee3e845SMark Johnston.Dq disable 589*dee3e845SMark Johnstonto respectively enable or disable the relearn cycle. 590*dee3e845SMark JohnstonAlternatively, a mode of 0, 1 or 2 may be given. 591*dee3e845SMark JohnstonMode 0 enables periodic relearning, mode 1 disables it, and mode 2 disables 592*dee3e845SMark Johnstonit and logs a warning to the event log when it detects that a battery relearn 593*dee3e845SMark Johnstonshould be performed. 594*dee3e845SMark Johnston.It Cm bbu-mode 595*dee3e845SMark JohnstonSet the BBU's mode of operation. This setting is not supported by all BBUs. 596*dee3e845SMark JohnstonWhere it is supported, the possible values are the integers between 1 and 5 597*dee3e845SMark Johnstoninclusive. 598*dee3e845SMark JohnstonModes 1, 2 and 3 enable a transparent learn cycle, whereas modes 4 and 5 do not. 599*dee3e845SMark JohnstonThe BBU's data retention time is greater when transparent learning is not used. 600*dee3e845SMark Johnston.El 6013c6bf4efSScott Long.El 6023c6bf4efSScott Long.Sh EXAMPLES 6033c6bf4efSScott LongConfigure the cache for volume mfid0 to cache only writes: 6043c6bf4efSScott Long.Pp 6053c6bf4efSScott Long.Dl Nm Cm cache mfid0 writes 6063c6bf4efSScott Long.Dl Nm Cm cache mfid0 write-back 6073c6bf4efSScott Long.Pp 6083c6bf4efSScott LongCreate a RAID5 array spanning the first four disks in the second enclosure: 6093c6bf4efSScott Long.Pp 6103c6bf4efSScott Long.Dl Nm Cm create raid5 e1:s0,e1:s1,e1:s2,e1:s4 6113c6bf4efSScott Long.Pp 6123c6bf4efSScott LongConfigure the first three disks on a controller as JBOD: 6133c6bf4efSScott Long.Pp 6143c6bf4efSScott Long.Dl Nm Cm create jbod 0 1 2 6153c6bf4efSScott Long.Pp 6163c6bf4efSScott LongCreate a RAID10 volume that spans two arrays each of which contains two disks 6173c6bf4efSScott Longfrom two different enclosures: 6183c6bf4efSScott Long.Pp 6193c6bf4efSScott Long.Dl Nm Cm create raid10 e1:s0,e1:s1 e2:s0,e2:s1 6203c6bf4efSScott Long.Pp 6213c6bf4efSScott LongAdd drive with the device ID of 4 as a global hot spare: 6223c6bf4efSScott Long.Pp 6233c6bf4efSScott Long.Dl Nm Cm add 4 6243c6bf4efSScott Long.Pp 6253c6bf4efSScott LongAdd the drive in slot 2 in the main chassis as a hot spare for volume mfid0: 6263c6bf4efSScott Long.Pp 6273c6bf4efSScott Long.Dl Nm Cm add s2 mfid0 6283c6bf4efSScott Long.Pp 6293c6bf4efSScott LongConfigure the adapter to run periodic patrol reads once a week with the first 6303c6bf4efSScott Longpatrol read starting in 5 minutes: 6313c6bf4efSScott Long.Pp 6323c6bf4efSScott Long.Dl Nm Cm patrol auto 604800 300 6333c6bf4efSScott Long.Sh SEE ALSO 6343c6bf4efSScott Long.Xr mfi 4 635d78c3fa1SScott Long.Sh HISTORY 636d78c3fa1SScott LongThe 637d78c3fa1SScott Long.Nm 638d78c3fa1SScott Longutility first appeared in 639d78c3fa1SScott Long.Fx 8.0 . 640