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*7bbae305SBjoern A. Zeeb.Dd June 20, 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 46*7bbae305SBjoern A. Zeeb.Op Fl d 47*7bbae305SBjoern 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 68*7bbae305SBjoern A. Zeeb.Op Fl d 69*7bbae305SBjoern A. Zeeb.Op Fl e 703c6bf4efSScott Long.Op Fl u Ar unit 713c6bf4efSScott Long.Cm show patrol 723c6bf4efSScott Long.Nm 73*7bbae305SBjoern A. Zeeb.Op Fl d 74*7bbae305SBjoern 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 1063c6bf4efSScott Long.Cm cache Ar volume Op Ar setting Op Ar value 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 1443c6bf4efSScott Long.Sh DESCRIPTION 1453c6bf4efSScott LongThe 1463c6bf4efSScott Long.Nm 1473c6bf4efSScott Longutility can be used to display or modify various parameters on LSI 1483c6bf4efSScott LongMegaRAID SAS RAID controllers. 1493c6bf4efSScott LongEach invocation of 1503c6bf4efSScott Long.Nm 1513c6bf4efSScott Longconsists of zero or more global options followed by a command. 1523c6bf4efSScott LongCommands may support additional optional or required arguments after the 1533c6bf4efSScott Longcommand. 1543c6bf4efSScott Long.Pp 1553c6bf4efSScott LongCurrently one global option is supported: 1563c6bf4efSScott Long.Bl -tag -width indent 1573c6bf4efSScott Long.It Fl u Ar unit 1583c6bf4efSScott Long.Ar unit 1593c6bf4efSScott Longspecifies the unit of the controller to work with. 1603c6bf4efSScott LongIf no unit is specified, 1613c6bf4efSScott Longthen unit 0 is used. 1623c6bf4efSScott Long.El 1633c6bf4efSScott Long.Pp 164*7bbae305SBjoern A. ZeebVarious commands accept either or both of the two options: 165*7bbae305SBjoern A. Zeeb.Bl -tag -width indent 166*7bbae305SBjoern A. Zeeb.It Fl d 167*7bbae305SBjoern A. ZeebPrint numeric device IDs as drive identifier. 168*7bbae305SBjoern A. ZeebThis is the default. 169*7bbae305SBjoern A. ZeebUseful in combination with 170*7bbae305SBjoern A. Zeeb.Fl e 171*7bbae305SBjoern A. Zeebto print both, numeric device IDs and enclosure:slot information. 172*7bbae305SBjoern A. Zeeb.It Fl e 173*7bbae305SBjoern A. ZeebPrint drive identifiers in enclosure:slot form. 174*7bbae305SBjoern A. ZeebSee next paragraph on format details in context of input rather than 175*7bbae305SBjoern A. Zeeboutput. 176*7bbae305SBjoern A. Zeeb.El 1773c6bf4efSScott Long.Pp 1783c6bf4efSScott LongDrives may be specified in two forms. 1793c6bf4efSScott LongFirst, 1803c6bf4efSScott Longa drive may be identified by its device ID. 1813c6bf4efSScott LongThe device ID for configured drives can be found in 1823c6bf4efSScott Long.Cm show config . 1833c6bf4efSScott LongSecond, 1843c6bf4efSScott Longa drive may be identified by its location as 1853c6bf4efSScott Long.Sm off 1863c6bf4efSScott Long.Op E Ar xx Ns \&: 1873c6bf4efSScott Long.Li S Ns Ar yy 1883c6bf4efSScott Long.Sm on 1893c6bf4efSScott Longwhere 1903c6bf4efSScott Long.Ar xx 1913c6bf4efSScott Longis the enclosure 1923c6bf4efSScott Longand 1933c6bf4efSScott Long.Ar yy 1943c6bf4efSScott Longis the slot for each drive as displayed in 1953c6bf4efSScott Long.Cm show drives . 1963c6bf4efSScott Long.Pp 197*7bbae305SBjoern A. ZeebVolumes may be specified in two forms. 198*7bbae305SBjoern A. ZeebFirst, 199*7bbae305SBjoern A. Zeeba volume may be identified by its target ID. 200*7bbae305SBjoern A. ZeebSecond, 201*7bbae305SBjoern A. Zeebon the volume may be specified by the corresponding 202*7bbae305SBjoern A. Zeeb.Em mfidX 203*7bbae305SBjoern A. Zeebdevice, 204*7bbae305SBjoern A. Zeebsuch as 205*7bbae305SBjoern A. Zeeb.Em mfid0 . 206*7bbae305SBjoern A. Zeeb.Pp 2073c6bf4efSScott LongThe 2083c6bf4efSScott Long.Nm 2093c6bf4efSScott Longutility supports several different groups of commands. 2103c6bf4efSScott LongThe first group of commands provide information about the controller, 2113c6bf4efSScott Longthe volumes it manages, and the drives it controls. 2123c6bf4efSScott LongThe second group of commands are used to manage the physical drives 2133c6bf4efSScott Longattached to the controller. 2143c6bf4efSScott LongThe third group of commands are used to manage the logical volumes 2153c6bf4efSScott Longmanaged by the controller. 2163c6bf4efSScott LongThe fourth group of commands are used to manage the drive configuration for 2173c6bf4efSScott Longthe controller. 2183c6bf4efSScott LongThe fifth group of commands are used to manage controller-wide operations. 2193c6bf4efSScott Long.Pp 2203c6bf4efSScott LongThe informational commands include: 2213c6bf4efSScott Long.Bl -tag -width indent 2223c6bf4efSScott Long.It Cm version 2233c6bf4efSScott LongDisplays the version of 2243c6bf4efSScott Long.Nm . 2253c6bf4efSScott Long.It Cm show adapter 2263c6bf4efSScott LongDisplays information about the RAID controller such as the model number. 2273c6bf4efSScott Long.It Cm show battery 2283c6bf4efSScott LongDisplays information about the battery from the battery backup unit. 2293c6bf4efSScott Long.It Cm show config 2303c6bf4efSScott LongDisplays the volume and drive configuration for the controller. 2313c6bf4efSScott LongEach array is listed along with the physical drives the array is built from. 2323c6bf4efSScott LongEach volume is listed along with the arrays that the volume spans. 2333c6bf4efSScott LongIf any hot spare drives are configured, then they are listed as well. 2343c6bf4efSScott Long.It Cm show drives 2353c6bf4efSScott LongLists all of the physical drives attached to the controller. 2363c6bf4efSScott Long.It Xo Cm show events 2373c6bf4efSScott Long.Op Fl c Ar class 2383c6bf4efSScott Long.Op Fl l Ar locale 2393c6bf4efSScott Long.Op Fl n Ar count 2403c6bf4efSScott Long.Op Fl v 2413c6bf4efSScott Long.Op Ar start Op Ar stop 2423c6bf4efSScott Long.Xc 2433c6bf4efSScott LongDisplay entries from the controller's event log. 2443c6bf4efSScott LongThe controller maintains a circular buffer of events. 2453c6bf4efSScott LongEach event is tagged with a class and locale. 2463c6bf4efSScott Long.Pp 2473c6bf4efSScott LongThe 2483c6bf4efSScott Long.Ar class 2493c6bf4efSScott Longparameter limits the output to entries at the specified class or higher. 2503c6bf4efSScott LongThe default class is 2513c6bf4efSScott Long.Dq warn . 2523c6bf4efSScott LongThe available classes from lowest priority to highest are: 2533c6bf4efSScott Long.Bl -tag -width -indent 2543c6bf4efSScott Long.It Cm debug 2553c6bf4efSScott LongDebug messages. 2563c6bf4efSScott Long.It Cm progress 2573c6bf4efSScott LongPeriodic progress updates for long-running operations such as background 2583c6bf4efSScott Longinitializations, array rebuilds, or patrol reads. 2593c6bf4efSScott Long.It Cm info 2603c6bf4efSScott LongInformational messages such as drive insertions and volume creations. 2613c6bf4efSScott Long.It Cm warn 2623c6bf4efSScott LongIndicates that some component may be close to failing. 2633c6bf4efSScott Long.It Cm crit 2643c6bf4efSScott LongA component has failed, but no data is lost. 2653c6bf4efSScott LongFor example, a volume becoming degraded due to a drive failure. 2663c6bf4efSScott Long.It Cm fatal 2673c6bf4efSScott LongA component has failed resulting in data loss. 2683c6bf4efSScott Long.It Cm dead 2693c6bf4efSScott LongThe controller itself has died. 2703c6bf4efSScott Long.El 2713c6bf4efSScott Long.Pp 2723c6bf4efSScott LongThe 2733c6bf4efSScott Long.Ar locale 2743c6bf4efSScott Longparameter limits the output to entries for the specified part of the controller. 2753c6bf4efSScott LongThe default locale is 2763c6bf4efSScott Long.Dq all . 2773c6bf4efSScott LongThe available locales are 2783c6bf4efSScott Long.Dq volume , 2793c6bf4efSScott Long.Dq drive , 280f6ac2391SJoel Dahl.Dq enclosure , 2813c6bf4efSScott Long.Dq battery , 2823c6bf4efSScott Long.Dq sas , 2833c6bf4efSScott Long.Dq controller , 2843c6bf4efSScott Long.Dq config , 2853c6bf4efSScott Long.Dq cluster , 2863c6bf4efSScott Longand 2873c6bf4efSScott Long.Dq all . 2883c6bf4efSScott Long.Pp 2893c6bf4efSScott LongThe 2903c6bf4efSScott Long.Ar count 2913c6bf4efSScott Longparameter is a debugging aid that specifies the number of events to fetch from 2923c6bf4efSScott Longthe controller for each low-level request. 2933c6bf4efSScott LongThe default is 15 events. 2943c6bf4efSScott Long.Pp 2953c6bf4efSScott LongBy default, matching event log entries from the previous shutdown up to the 2963c6bf4efSScott Longpresent are displayed. This range can be adjusted via the 2973c6bf4efSScott Long.Ar start 2983c6bf4efSScott Longand 2993c6bf4efSScott Long.Ar stop 3003c6bf4efSScott Longparameters. 3013c6bf4efSScott LongEach of these parameters can either be specified as a log entry number or as 3023c6bf4efSScott Longone of the following aliases: 3033c6bf4efSScott Long.Bl -tag -width -indent 3043c6bf4efSScott Long.It Cm newest 3053c6bf4efSScott LongThe newest entry in the event log. 3063c6bf4efSScott Long.It Cm oldest 3073c6bf4efSScott LongThe oldest entry in the event log. 3083c6bf4efSScott Long.It Cm clear 3093c6bf4efSScott LongThe first entry since the event log was cleared. 3103c6bf4efSScott Long.It Cm shutdown 3113c6bf4efSScott LongThe entry in the event log corresponding to the last time the controller was 3123c6bf4efSScott Longcleanly shut down. 3133c6bf4efSScott Long.It Cm boot 3143c6bf4efSScott LongThe entry in the event log corresponding to the most recent boot. 3153c6bf4efSScott Long.El 3163c6bf4efSScott Long.It Cm show firmware 3173c6bf4efSScott LongLists all of the firmware images present on the controller. 3183c6bf4efSScott Long.It Cm show logstate 3193c6bf4efSScott LongDisplay the various sequence numbers associated with the event log. 3203c6bf4efSScott Long.It Cm show patrol 3213c6bf4efSScott LongDisplay the status of the controller's patrol read operation. 32298be0dfeSJohn Baldwin.It Cm show progress 32398be0dfeSJohn BaldwinReport the current progress and estimated completion time for active 32498be0dfeSJohn Baldwinoperations on all volumes and drives. 3253c6bf4efSScott Long.It Cm show volumes 3263c6bf4efSScott LongLists all of the logical volumes managed by the controller. 3273c6bf4efSScott Long.El 3283c6bf4efSScott Long.Pp 3293c6bf4efSScott LongThe physical drive management commands include: 3303c6bf4efSScott Long.Bl -tag -width indent 3313c6bf4efSScott Long.It Cm fail Ar drive 3323c6bf4efSScott LongMark 3333c6bf4efSScott Long.Ar drive 3343c6bf4efSScott Longas failed. 3353c6bf4efSScott Long.Ar Drive 3363c6bf4efSScott Longmust be an online drive that is part of an array. 3373c6bf4efSScott Long.It Cm good Ar drive 3383c6bf4efSScott LongMark 3393c6bf4efSScott Long.Ar drive 3403c6bf4efSScott Longas an unconfigured good drive. 3413c6bf4efSScott Long.Ar Drive 3423c6bf4efSScott Longmust not be part of an existing array. 3433c6bf4efSScott Long.It Cm rebuild Ar drive 3443c6bf4efSScott LongMark a failed 3453c6bf4efSScott Long.Ar drive 3463c6bf4efSScott Longthat is still part of an array as a good drive suitable for a rebuild. 3473c6bf4efSScott LongThe firmware should kick off an array rebuild on its own if a failed drive 3483c6bf4efSScott Longis marked as a rebuild drive. 3493c6bf4efSScott Long.It Cm drive progress Ar drive 3503c6bf4efSScott LongReport the current progress and estimated completion time of drive operations 3513c6bf4efSScott Longsuch as rebuilds or patrol reads. 3523c6bf4efSScott Long.It Cm drive clear Ar drive Brq "start | stop" 3533c6bf4efSScott LongStart or stop the writing of all 0x00 characters to a drive. 3543c6bf4efSScott Long.It Cm start rebuild Ar drive 3553c6bf4efSScott LongManually start a rebuild on 3563c6bf4efSScott Long.Ar drive . 3573c6bf4efSScott Long.It Cm abort rebuild Ar drive 3583c6bf4efSScott LongAbort an in-progress rebuild operation on 3593c6bf4efSScott Long.Ar drive . 3603c6bf4efSScott LongIt can be resumed with the 3613c6bf4efSScott Long.Cm start rebuild 3623c6bf4efSScott Longcommand. 3633c6bf4efSScott Long.It Cm locate Ar drive Brq "on | off" 3643c6bf4efSScott LongChange the state of the external LED associated with 3653c6bf4efSScott Long.Ar drive . 3663c6bf4efSScott Long.El 3673c6bf4efSScott Long.Pp 3683c6bf4efSScott LongThe logical volume management commands include: 3693c6bf4efSScott Long.Bl -tag -width indent 3703c6bf4efSScott Long.It Cm cache Ar volume Op Ar setting Op Ar value 3713c6bf4efSScott LongIf no 3723c6bf4efSScott Long.Ar setting 3733c6bf4efSScott Longargument is supplied, then the current cache policy for 3743c6bf4efSScott Long.Ar volume 3753c6bf4efSScott Longis displayed; 3763c6bf4efSScott Longotherwise, 3773c6bf4efSScott Longthe cache policy for 3783c6bf4efSScott Long.Ar volume 3793c6bf4efSScott Longis modified. 3803c6bf4efSScott LongThe optional 3813c6bf4efSScott Long.Ar setting 3823c6bf4efSScott Longargument can be one of the following values: 3833c6bf4efSScott Long.Bl -tag -width indent 3843c6bf4efSScott Long.It Cm enable 3853c6bf4efSScott LongEnable caching for both read and write I/O operations. 3863c6bf4efSScott Long.It Cm disable 3873c6bf4efSScott LongDisable caching for both read and write I/O operations. 3883c6bf4efSScott Long.It Cm reads 3893c6bf4efSScott LongEnable caching only for read I/O operations. 3903c6bf4efSScott Long.It Cm writes 3913c6bf4efSScott LongEnable caching only for write I/O operations. 3923c6bf4efSScott Long.It Cm write-back 3933c6bf4efSScott LongUse write-back policy for cached writes. 3943c6bf4efSScott Long.It Cm write-through 3953c6bf4efSScott LongUse write-through policy for cached writes. 3968b22f43dSJohn Baldwin.It Cm read-ahead Ar value 3973c6bf4efSScott LongSet the read ahead policy for cached reads. 3983c6bf4efSScott LongThe 3993c6bf4efSScott Long.Ar value 4003c6bf4efSScott Longargument can be set to either 4013c6bf4efSScott Long.Dq none , 4023c6bf4efSScott Long.Dq adaptive , 4033c6bf4efSScott Longor 4043c6bf4efSScott Long.Dq always . 4058b22f43dSJohn Baldwin.It Cm bad-bbu-write-cache Ar value 4068b22f43dSJohn BaldwinControl the behavior of I/O write caching if the battery is dead or 4078b22f43dSJohn Baldwinmissing. 4088b22f43dSJohn BaldwinThe 4098b22f43dSJohn Baldwin.Ar value 4108b22f43dSJohn Baldwinargument can be set to either 4118b22f43dSJohn Baldwin.Dq disable 4128b22f43dSJohn Baldwinor 4138b22f43dSJohn Baldwin.Dq enable . 4148b22f43dSJohn BaldwinIn general this setting should be left disabled to avoid data loss when 4158b22f43dSJohn Baldwinthe system loses power. 4168b22f43dSJohn Baldwin.It Cm write-cache Ar value 4173c6bf4efSScott LongControl the write caches on the physical drives backing 4183c6bf4efSScott Long.Ar volume . 4193c6bf4efSScott LongThe 4203c6bf4efSScott Long.Ar value 4213c6bf4efSScott Longargument can be set to either 4223c6bf4efSScott Long.Dq disable , 4233c6bf4efSScott Long.Dq enable , 4243c6bf4efSScott Longor 4253c6bf4efSScott Long.Dq default . 4263c6bf4efSScott Long.Pp 4273c6bf4efSScott LongIn general this setting should be left disabled to avoid data loss when the 4283c6bf4efSScott Longphysical drives lose power. 4293c6bf4efSScott LongThe battery backup of the RAID controller does not save data in the write 4303c6bf4efSScott Longcaches of the physical drives. 4313c6bf4efSScott Long.El 4323c6bf4efSScott Long.It Cm name Ar volume Ar name 4333c6bf4efSScott LongSets the name of 4343c6bf4efSScott Long.Ar volume 4353c6bf4efSScott Longto 4363c6bf4efSScott Long.Ar name . 4373c6bf4efSScott Long.It Cm volume progress Ar volume 4383c6bf4efSScott LongReport the current progress and estimated completion time of volume operations 4393c6bf4efSScott Longsuch as consistency checks and initializations. 4403c6bf4efSScott Long.El 4413c6bf4efSScott Long.Pp 4423c6bf4efSScott LongThe configuration commands include: 4433c6bf4efSScott Long.Bl -tag -width indent 4443c6bf4efSScott Long.It Cm clear 4453c6bf4efSScott LongDelete the entire configuration including all volumes, arrays, and spares. 4463c6bf4efSScott Long.It Xo Cm create Ar type 4473c6bf4efSScott Long.Op Fl v 4483c6bf4efSScott Long.Op Fl s Ar stripe_size 4493c6bf4efSScott Long.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..." 4503c6bf4efSScott Long.Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..." 4513c6bf4efSScott Long.Xc 4523c6bf4efSScott LongCreate a new volume. 4533c6bf4efSScott LongThe 4543c6bf4efSScott Long.Ar type 4553c6bf4efSScott Longspecifies the type of volume to create. 4563c6bf4efSScott LongCurrently supported types include: 4573c6bf4efSScott Long.Bl -tag -width indent 4583c6bf4efSScott Long.It Cm jbod 4593c6bf4efSScott LongCreates a RAID0 volume for each drive specified. 4603c6bf4efSScott LongEach drive must be specified as a separate argument. 4613c6bf4efSScott Long.It Cm raid0 4623c6bf4efSScott LongCreates one RAID0 volume spanning the drives listed in the single drive list. 4633c6bf4efSScott Long.It Cm raid1 4643c6bf4efSScott LongCreates one RAID1 volume spanning the drives listed in the single drive list. 4653c6bf4efSScott Long.It Cm raid5 4663c6bf4efSScott LongCreates one RAID5 volume spanning the drives listed in the single drive list. 4673c6bf4efSScott Long.It Cm raid6 4683c6bf4efSScott LongCreates one RAID6 volume spanning the drives listed in the single drive list. 4693c6bf4efSScott Long.It Cm raid10 4703c6bf4efSScott LongCreates one RAID10 volume spanning multiple RAID1 arrays. 4713c6bf4efSScott LongThe drives for each RAID1 array are specified as a single drive list. 4723c6bf4efSScott Long.It Cm raid50 4733c6bf4efSScott LongCreates one RAID50 volume spanning multiple RAID5 arrays. 4743c6bf4efSScott LongThe drives for each RAID5 array are specified as a single drive list. 4753c6bf4efSScott Long.It Cm raid60 4763c6bf4efSScott LongCreates one RAID60 volume spanning multiple RAID6 arrays. 4773c6bf4efSScott LongThe drives for each RAID6 array are specified as a single drive list. 4783c6bf4efSScott Long.It Cm concat 4793c6bf4efSScott LongCreates a single volume by concatenating all of the drives in the single drive 4803c6bf4efSScott Longlist. 4813c6bf4efSScott Long.El 4823c6bf4efSScott Long.Pp 4833c6bf4efSScott Long.Sy Note: 4843c6bf4efSScott LongNot all volume types are supported by all controllers. 4853c6bf4efSScott Long.Pp 4863c6bf4efSScott LongIf the 4873c6bf4efSScott Long.Fl v 4883c6bf4efSScott Longflag is specified after 4893c6bf4efSScott Long.Ar type , 4903c6bf4efSScott Longthen more verbose output will be enabled. 4913c6bf4efSScott LongCurrently this just provides notification as drives are added to arrays and 4923c6bf4efSScott Longarrays to volumes when building the configuration. 4933c6bf4efSScott Long.Pp 4943c6bf4efSScott LongThe 4953c6bf4efSScott Long.Fl s 4963c6bf4efSScott Long.Ar stripe_size 4973c6bf4efSScott Longparameter allows the stripe size of the array to be set. 4983c6bf4efSScott LongBy default a stripe size of 64K is used. 4993c6bf4efSScott LongValid values are 512 through 1M, though the MFI firmware may reject some 5003c6bf4efSScott Longvalues. 5013c6bf4efSScott Long.It Cm delete Ar volume 5023c6bf4efSScott LongDelete the volume 5033c6bf4efSScott Long.Ar volume . 5043c6bf4efSScott Long.It Cm add Ar drive Op Ar volume 5053c6bf4efSScott LongMark 5063c6bf4efSScott Long.Ar drive 5073c6bf4efSScott Longas a hot spare. 5083c6bf4efSScott Long.Ar Drive 5093c6bf4efSScott Longmust be in the unconfigured good state. 5103c6bf4efSScott LongIf 5113c6bf4efSScott Long.Ar volume 5123c6bf4efSScott Longis specified, 5133c6bf4efSScott Longthen the hot spare will be dedicated to arrays backing that volume. 5143c6bf4efSScott LongOtherwise, 5153c6bf4efSScott Long.Ar drive 5163c6bf4efSScott Longwill be used as a global hot spare backing all arrays for this controller. 5173c6bf4efSScott LongNote that 5183c6bf4efSScott Long.Ar drive 5193c6bf4efSScott Longmust be as large as the smallest drive in all of the arrays it is going to 5203c6bf4efSScott Longback. 5213c6bf4efSScott Long.It Cm remove Ar drive 5223c6bf4efSScott LongRemove the hot spare 5233c6bf4efSScott Long.Ar drive 5243c6bf4efSScott Longfrom service. 5253c6bf4efSScott LongIt will be placed in the unconfigured good state. 5263c6bf4efSScott Long.El 5273c6bf4efSScott Long.Pp 5283c6bf4efSScott LongThe controller management commands include: 5293c6bf4efSScott Long.Bl -tag -width indent 5303c6bf4efSScott Long.It Cm patrol Ar command Op Ar interval Op Ar start 5313c6bf4efSScott LongSet the patrol read operation mode. 5323c6bf4efSScott LongThe 5333c6bf4efSScott Long.Ar command 5343c6bf4efSScott Longargument can be one of the following values: 5353c6bf4efSScott Long.Bl -tag -width indent 5363c6bf4efSScott Long.It Cm disable 5373c6bf4efSScott LongDisable patrol reads. 5383c6bf4efSScott Long.It Cm auto 5393c6bf4efSScott LongEnable periodic patrol reads initiated by the firmware. 5403c6bf4efSScott LongThe optional 5413c6bf4efSScott Long.Ar interval 5423c6bf4efSScott Longargument specifies the interval in seconds between patrol reads. 543d4352d29SJoel DahlIf patrol reads should be run continuously, 5443c6bf4efSScott Longthen 5453c6bf4efSScott Long.Ar interval 5463c6bf4efSScott Longshould consist of the word 5473c6bf4efSScott Long.Dq continuously . 5483c6bf4efSScott LongThe optional 5493c6bf4efSScott Long.Ar start 5503c6bf4efSScott Longargument specifies a non-negative, relative start time for the next patrol read. 5513c6bf4efSScott LongIf an interval or start time is not specified, 5523c6bf4efSScott Longthen the existing setting will be used. 5533c6bf4efSScott Long.It Cm manual 5543c6bf4efSScott LongEnable manual patrol reads that are only initiated by the user. 5553c6bf4efSScott Long.El 5563c6bf4efSScott Long.It Cm start patrol 5573c6bf4efSScott LongStart a patrol read operation. 5583c6bf4efSScott Long.It Cm stop patrol 5593c6bf4efSScott LongStop a currently running patrol read operation. 5603c6bf4efSScott Long.It Cm flash Ar file 5613c6bf4efSScott LongUpdates the flash on the controller with the firmware stored in 5623c6bf4efSScott Long.Ar file . 5633c6bf4efSScott LongA reboot is required for the new firmware to take effect. 5643c6bf4efSScott Long.El 5653c6bf4efSScott Long.Sh EXAMPLES 5663c6bf4efSScott LongConfigure the cache for volume mfid0 to cache only writes: 5673c6bf4efSScott Long.Pp 5683c6bf4efSScott Long.Dl Nm Cm cache mfid0 writes 5693c6bf4efSScott Long.Dl Nm Cm cache mfid0 write-back 5703c6bf4efSScott Long.Pp 5713c6bf4efSScott LongCreate a RAID5 array spanning the first four disks in the second enclosure: 5723c6bf4efSScott Long.Pp 5733c6bf4efSScott Long.Dl Nm Cm create raid5 e1:s0,e1:s1,e1:s2,e1:s4 5743c6bf4efSScott Long.Pp 5753c6bf4efSScott LongConfigure the first three disks on a controller as JBOD: 5763c6bf4efSScott Long.Pp 5773c6bf4efSScott Long.Dl Nm Cm create jbod 0 1 2 5783c6bf4efSScott Long.Pp 5793c6bf4efSScott LongCreate a RAID10 volume that spans two arrays each of which contains two disks 5803c6bf4efSScott Longfrom two different enclosures: 5813c6bf4efSScott Long.Pp 5823c6bf4efSScott Long.Dl Nm Cm create raid10 e1:s0,e1:s1 e2:s0,e2:s1 5833c6bf4efSScott Long.Pp 5843c6bf4efSScott LongAdd drive with the device ID of 4 as a global hot spare: 5853c6bf4efSScott Long.Pp 5863c6bf4efSScott Long.Dl Nm Cm add 4 5873c6bf4efSScott Long.Pp 5883c6bf4efSScott LongAdd the drive in slot 2 in the main chassis as a hot spare for volume mfid0: 5893c6bf4efSScott Long.Pp 5903c6bf4efSScott Long.Dl Nm Cm add s2 mfid0 5913c6bf4efSScott Long.Pp 5923c6bf4efSScott LongConfigure the adapter to run periodic patrol reads once a week with the first 5933c6bf4efSScott Longpatrol read starting in 5 minutes: 5943c6bf4efSScott Long.Pp 5953c6bf4efSScott Long.Dl Nm Cm patrol auto 604800 300 5963c6bf4efSScott Long.Pp 5973c6bf4efSScott Long.Sh SEE ALSO 5983c6bf4efSScott Long.Xr mfi 4 599d78c3fa1SScott Long.Sh HISTORY 600d78c3fa1SScott LongThe 601d78c3fa1SScott Long.Nm 602d78c3fa1SScott Longutility first appeared in 603d78c3fa1SScott Long.Fx 8.0 . 604