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 6606f1884fSSean Bruno.Cm show foreign Op Ar volume 6706f1884fSSean Bruno.Nm 6806f1884fSSean Bruno.Op Fl u Ar unit 693c6bf4efSScott Long.Cm show logstate 703c6bf4efSScott Long.Nm 717bbae305SBjoern A. Zeeb.Op Fl d 727bbae305SBjoern A. Zeeb.Op Fl e 733c6bf4efSScott Long.Op Fl u Ar unit 743c6bf4efSScott Long.Cm show patrol 753c6bf4efSScott Long.Nm 767bbae305SBjoern A. Zeeb.Op Fl d 777bbae305SBjoern A. Zeeb.Op Fl e 783c6bf4efSScott Long.Op Fl u Ar unit 7998be0dfeSJohn Baldwin.Cm show progress 8098be0dfeSJohn Baldwin.Nm 8198be0dfeSJohn Baldwin.Op Fl u Ar unit 823c6bf4efSScott Long.Cm show volumes 833c6bf4efSScott Long.Nm 843c6bf4efSScott Long.Op Fl u Ar unit 853c6bf4efSScott Long.Cm fail Ar drive 863c6bf4efSScott Long.Nm 873c6bf4efSScott Long.Op Fl u Ar unit 883c6bf4efSScott Long.Cm good Ar drive 893c6bf4efSScott Long.Nm 903c6bf4efSScott Long.Op Fl u Ar unit 913c6bf4efSScott Long.Cm rebuild Ar drive 923c6bf4efSScott Long.Nm 933c6bf4efSScott Long.Op Fl u Ar unit 947c2ad1eeSSean Bruno.Cm syspd Ar drive 957c2ad1eeSSean Bruno.Nm 967c2ad1eeSSean Bruno.Op Fl u Ar unit 973c6bf4efSScott Long.Cm drive progress Ar drive 983c6bf4efSScott Long.Nm 993c6bf4efSScott Long.Op Fl u Ar unit 1003c6bf4efSScott Long.Cm drive clear Ar drive Brq "start | stop" 1013c6bf4efSScott Long.Nm 1023c6bf4efSScott Long.Op Fl u Ar unit 1033c6bf4efSScott Long.Cm start rebuild Ar drive 1043c6bf4efSScott Long.Nm 1053c6bf4efSScott Long.Op Fl u Ar unit 1063c6bf4efSScott Long.Cm abort rebuild Ar drive 1073c6bf4efSScott Long.Nm 1083c6bf4efSScott Long.Op Fl u Ar unit 1093c6bf4efSScott Long.Cm locate Ar drive Brq "on | off" 1103c6bf4efSScott Long.Nm 1113c6bf4efSScott Long.Op Fl u Ar unit 1122e5df98aSJohn Baldwin.Cm cache Ar volume Op Ar setting Oo Ar value Oc Op ... 1133c6bf4efSScott Long.Nm 1143c6bf4efSScott Long.Op Fl u Ar unit 1153c6bf4efSScott Long.Cm name Ar volume Ar name 1163c6bf4efSScott Long.Nm 1173c6bf4efSScott Long.Op Fl u Ar unit 1183c6bf4efSScott Long.Cm volume progress Ar volume 1193c6bf4efSScott Long.Nm 1203c6bf4efSScott Long.Op Fl u Ar unit 1213c6bf4efSScott Long.Cm clear 1223c6bf4efSScott Long.Nm 1233c6bf4efSScott Long.Op Fl u Ar unit 1243c6bf4efSScott Long.Cm create Ar type 1253c6bf4efSScott Long.Op Fl v 1263c6bf4efSScott Long.Op Fl s Ar stripe_size 1273c6bf4efSScott Long.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..." 1283c6bf4efSScott Long.Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..." 1293c6bf4efSScott Long.Nm 1303c6bf4efSScott Long.Op Fl u Ar unit 1313c6bf4efSScott Long.Cm delete Ar volume 1323c6bf4efSScott Long.Nm 1333c6bf4efSScott Long.Op Fl u Ar unit 1343c6bf4efSScott Long.Cm add Ar drive Op Ar volume 1353c6bf4efSScott Long.Nm 1363c6bf4efSScott Long.Op Fl u Ar unit 1373c6bf4efSScott Long.Cm remove Ar drive 1383c6bf4efSScott Long.Nm 1393c6bf4efSScott Long.Op Fl u Ar unit 1403c6bf4efSScott Long.Cm start patrol 1413c6bf4efSScott Long.Nm 1423c6bf4efSScott Long.Op Fl u Ar unit 1433c6bf4efSScott Long.Cm stop patrol 1443c6bf4efSScott Long.Nm 1453c6bf4efSScott Long.Op Fl u Ar unit 1463c6bf4efSScott Long.Cm patrol Ar command Op Ar interval Op Ar start 1473c6bf4efSScott Long.Nm 1483c6bf4efSScott Long.Op Fl u Ar unit 14906f1884fSSean Bruno.Cm foreign scan 15006f1884fSSean Bruno.Nm 15106f1884fSSean Bruno.Op Fl u Ar unit 15206f1884fSSean Bruno.Cm foreign clear Op Ar config 15306f1884fSSean Bruno.Nm 15406f1884fSSean Bruno.Op Fl u Ar unit 15506f1884fSSean Bruno.Cm foreign diag Op Ar config 15606f1884fSSean Bruno.Nm 15706f1884fSSean Bruno.Op Fl u Ar unit 15806f1884fSSean Bruno.Cm foreign preview Op Ar config 15906f1884fSSean Bruno.Nm 16006f1884fSSean Bruno.Op Fl u Ar unit 16106f1884fSSean Bruno.Cm foreign import Op Ar config 16206f1884fSSean Bruno.Nm 16306f1884fSSean Bruno.Op Fl u Ar unit 1643c6bf4efSScott Long.Cm flash Ar file 165dee3e845SMark Johnston.Nm 166dee3e845SMark Johnston.Op Fl u Ar unit 167dee3e845SMark Johnston.Cm start learn 168dee3e845SMark Johnston.Nm 169dee3e845SMark Johnston.Op Fl u Ar unit 170dee3e845SMark Johnston.Cm bbu Ar setting Ar value 171ee7a2acaSSean Bruno.Nm 172ee7a2acaSSean Bruno.Op Fl u Ar unit 173ee7a2acaSSean Bruno.Cm ctrlprop Ar rebuild Op Ar rate 174ee7a2acaSSean Bruno.Nm 175ee7a2acaSSean Bruno.Op Fl u Ar unit 176ee7a2acaSSean Bruno.Cm ctrlprop Ar alarm Op Ar 0/1 1773c6bf4efSScott Long.Sh DESCRIPTION 1783c6bf4efSScott LongThe 1793c6bf4efSScott Long.Nm 1803c6bf4efSScott Longutility can be used to display or modify various parameters on LSI 1813c6bf4efSScott LongMegaRAID SAS RAID controllers. 1823c6bf4efSScott LongEach invocation of 1833c6bf4efSScott Long.Nm 1843c6bf4efSScott Longconsists of zero or more global options followed by a command. 1853c6bf4efSScott LongCommands may support additional optional or required arguments after the 1863c6bf4efSScott Longcommand. 1873c6bf4efSScott Long.Pp 1883c6bf4efSScott LongCurrently one global option is supported: 1893c6bf4efSScott Long.Bl -tag -width indent 1903c6bf4efSScott Long.It Fl u Ar unit 1913c6bf4efSScott Long.Ar unit 1923c6bf4efSScott Longspecifies the unit of the controller to work with. 1933c6bf4efSScott LongIf no unit is specified, 1943c6bf4efSScott Longthen unit 0 is used. 1953c6bf4efSScott Long.El 1963c6bf4efSScott Long.Pp 1977bbae305SBjoern A. ZeebVarious commands accept either or both of the two options: 1987bbae305SBjoern A. Zeeb.Bl -tag -width indent 1997bbae305SBjoern A. Zeeb.It Fl d 2007bbae305SBjoern A. ZeebPrint numeric device IDs as drive identifier. 2017bbae305SBjoern A. ZeebThis is the default. 2027bbae305SBjoern A. ZeebUseful in combination with 2037bbae305SBjoern A. Zeeb.Fl e 2047bbae305SBjoern A. Zeebto print both, numeric device IDs and enclosure:slot information. 2057bbae305SBjoern A. Zeeb.It Fl e 2067bbae305SBjoern A. ZeebPrint drive identifiers in enclosure:slot form. 2077bbae305SBjoern A. ZeebSee next paragraph on format details in context of input rather than 2087bbae305SBjoern A. Zeeboutput. 2097bbae305SBjoern A. Zeeb.El 2103c6bf4efSScott Long.Pp 2113c6bf4efSScott LongDrives may be specified in two forms. 2123c6bf4efSScott LongFirst, 2133c6bf4efSScott Longa drive may be identified by its device ID. 2143c6bf4efSScott LongThe device ID for configured drives can be found in 2153c6bf4efSScott Long.Cm show config . 2163c6bf4efSScott LongSecond, 2173c6bf4efSScott Longa drive may be identified by its location as 2183c6bf4efSScott Long.Sm off 2193c6bf4efSScott Long.Op E Ar xx Ns \&: 2203c6bf4efSScott Long.Li S Ns Ar yy 2213c6bf4efSScott Long.Sm on 2223c6bf4efSScott Longwhere 2233c6bf4efSScott Long.Ar xx 2243c6bf4efSScott Longis the enclosure 2253c6bf4efSScott Longand 2263c6bf4efSScott Long.Ar yy 2273c6bf4efSScott Longis the slot for each drive as displayed in 2283c6bf4efSScott Long.Cm show drives . 2293c6bf4efSScott Long.Pp 2307bbae305SBjoern A. ZeebVolumes may be specified in two forms. 2317bbae305SBjoern A. ZeebFirst, 2327bbae305SBjoern A. Zeeba volume may be identified by its target ID. 2337bbae305SBjoern A. ZeebSecond, 2347bbae305SBjoern A. Zeebon the volume may be specified by the corresponding 2357bbae305SBjoern A. Zeeb.Em mfidX 2367bbae305SBjoern A. Zeebdevice, 2377bbae305SBjoern A. Zeebsuch as 2387bbae305SBjoern A. Zeeb.Em mfid0 . 2397bbae305SBjoern A. Zeeb.Pp 2403c6bf4efSScott LongThe 2413c6bf4efSScott Long.Nm 2423c6bf4efSScott Longutility supports several different groups of commands. 2433c6bf4efSScott LongThe first group of commands provide information about the controller, 2443c6bf4efSScott Longthe volumes it manages, and the drives it controls. 2453c6bf4efSScott LongThe second group of commands are used to manage the physical drives 2463c6bf4efSScott Longattached to the controller. 2473c6bf4efSScott LongThe third group of commands are used to manage the logical volumes 2483c6bf4efSScott Longmanaged by the controller. 2493c6bf4efSScott LongThe fourth group of commands are used to manage the drive configuration for 2503c6bf4efSScott Longthe controller. 2513c6bf4efSScott LongThe fifth group of commands are used to manage controller-wide operations. 2523c6bf4efSScott Long.Pp 2533c6bf4efSScott LongThe informational commands include: 2543c6bf4efSScott Long.Bl -tag -width indent 2553c6bf4efSScott Long.It Cm version 2563c6bf4efSScott LongDisplays the version of 2573c6bf4efSScott Long.Nm . 2583c6bf4efSScott Long.It Cm show adapter 2593c6bf4efSScott LongDisplays information about the RAID controller such as the model number. 2603c6bf4efSScott Long.It Cm show battery 2613c6bf4efSScott LongDisplays information about the battery from the battery backup unit. 2623c6bf4efSScott Long.It Cm show config 2633c6bf4efSScott LongDisplays the volume and drive configuration for the controller. 2643c6bf4efSScott LongEach array is listed along with the physical drives the array is built from. 2653c6bf4efSScott LongEach volume is listed along with the arrays that the volume spans. 2663c6bf4efSScott LongIf any hot spare drives are configured, then they are listed as well. 2673c6bf4efSScott Long.It Cm show drives 2683c6bf4efSScott LongLists all of the physical drives attached to the controller. 2693c6bf4efSScott Long.It Xo Cm show events 2703c6bf4efSScott Long.Op Fl c Ar class 2713c6bf4efSScott Long.Op Fl l Ar locale 2723c6bf4efSScott Long.Op Fl n Ar count 2733c6bf4efSScott Long.Op Fl v 2743c6bf4efSScott Long.Op Ar start Op Ar stop 2753c6bf4efSScott Long.Xc 2763c6bf4efSScott LongDisplay entries from the controller's event log. 2773c6bf4efSScott LongThe controller maintains a circular buffer of events. 2783c6bf4efSScott LongEach event is tagged with a class and locale. 2793c6bf4efSScott Long.Pp 2803c6bf4efSScott LongThe 2813c6bf4efSScott Long.Ar class 2823c6bf4efSScott Longparameter limits the output to entries at the specified class or higher. 2833c6bf4efSScott LongThe default class is 2843c6bf4efSScott Long.Dq warn . 2853c6bf4efSScott LongThe available classes from lowest priority to highest are: 28646355096SJoel Dahl.Bl -tag -width indent 2873c6bf4efSScott Long.It Cm debug 2883c6bf4efSScott LongDebug messages. 2893c6bf4efSScott Long.It Cm progress 2903c6bf4efSScott LongPeriodic progress updates for long-running operations such as background 2913c6bf4efSScott Longinitializations, array rebuilds, or patrol reads. 2923c6bf4efSScott Long.It Cm info 2933c6bf4efSScott LongInformational messages such as drive insertions and volume creations. 2943c6bf4efSScott Long.It Cm warn 2953c6bf4efSScott LongIndicates that some component may be close to failing. 2963c6bf4efSScott Long.It Cm crit 2973c6bf4efSScott LongA component has failed, but no data is lost. 2983c6bf4efSScott LongFor example, a volume becoming degraded due to a drive failure. 2993c6bf4efSScott Long.It Cm fatal 3003c6bf4efSScott LongA component has failed resulting in data loss. 3013c6bf4efSScott Long.It Cm dead 3023c6bf4efSScott LongThe controller itself has died. 3033c6bf4efSScott Long.El 3043c6bf4efSScott Long.Pp 3053c6bf4efSScott LongThe 3063c6bf4efSScott Long.Ar locale 3073c6bf4efSScott Longparameter limits the output to entries for the specified part of the controller. 3083c6bf4efSScott LongThe default locale is 3093c6bf4efSScott Long.Dq all . 3103c6bf4efSScott LongThe available locales are 3113c6bf4efSScott Long.Dq volume , 3123c6bf4efSScott Long.Dq drive , 313f6ac2391SJoel Dahl.Dq enclosure , 3143c6bf4efSScott Long.Dq battery , 3153c6bf4efSScott Long.Dq sas , 3163c6bf4efSScott Long.Dq controller , 3173c6bf4efSScott Long.Dq config , 3183c6bf4efSScott Long.Dq cluster , 3193c6bf4efSScott Longand 3203c6bf4efSScott Long.Dq all . 3213c6bf4efSScott Long.Pp 3223c6bf4efSScott LongThe 3233c6bf4efSScott Long.Ar count 3243c6bf4efSScott Longparameter is a debugging aid that specifies the number of events to fetch from 3253c6bf4efSScott Longthe controller for each low-level request. 3263c6bf4efSScott LongThe default is 15 events. 3273c6bf4efSScott Long.Pp 3283c6bf4efSScott LongBy default, matching event log entries from the previous shutdown up to the 329*75f8dcc8SGordon Berglingpresent are displayed. 330*75f8dcc8SGordon BerglingThis range can be adjusted via the 3313c6bf4efSScott Long.Ar start 3323c6bf4efSScott Longand 3333c6bf4efSScott Long.Ar stop 3343c6bf4efSScott Longparameters. 3353c6bf4efSScott LongEach of these parameters can either be specified as a log entry number or as 3363c6bf4efSScott Longone of the following aliases: 33746355096SJoel Dahl.Bl -tag -width indent 3383c6bf4efSScott Long.It Cm newest 3393c6bf4efSScott LongThe newest entry in the event log. 3403c6bf4efSScott Long.It Cm oldest 3413c6bf4efSScott LongThe oldest entry in the event log. 3423c6bf4efSScott Long.It Cm clear 3433c6bf4efSScott LongThe first entry since the event log was cleared. 3443c6bf4efSScott Long.It Cm shutdown 3453c6bf4efSScott LongThe entry in the event log corresponding to the last time the controller was 3463c6bf4efSScott Longcleanly shut down. 3473c6bf4efSScott Long.It Cm boot 3483c6bf4efSScott LongThe entry in the event log corresponding to the most recent boot. 3493c6bf4efSScott Long.El 3503c6bf4efSScott Long.It Cm show firmware 3513c6bf4efSScott LongLists all of the firmware images present on the controller. 35206f1884fSSean Bruno.It Cm show foreign 35306f1884fSSean BrunoDisplays detected foreign configurations on disks for importation or removal. 3543c6bf4efSScott Long.It Cm show logstate 3553c6bf4efSScott LongDisplay the various sequence numbers associated with the event log. 3563c6bf4efSScott Long.It Cm show patrol 3573c6bf4efSScott LongDisplay the status of the controller's patrol read operation. 35898be0dfeSJohn Baldwin.It Cm show progress 35998be0dfeSJohn BaldwinReport the current progress and estimated completion time for active 36098be0dfeSJohn Baldwinoperations on all volumes and drives. 3613c6bf4efSScott Long.It Cm show volumes 3623c6bf4efSScott LongLists all of the logical volumes managed by the controller. 3633c6bf4efSScott Long.El 3643c6bf4efSScott Long.Pp 3653c6bf4efSScott LongThe physical drive management commands include: 3663c6bf4efSScott Long.Bl -tag -width indent 3673c6bf4efSScott Long.It Cm fail Ar drive 3683c6bf4efSScott LongMark 3693c6bf4efSScott Long.Ar drive 3703c6bf4efSScott Longas failed. 3713c6bf4efSScott Long.Ar Drive 3723c6bf4efSScott Longmust be an online drive that is part of an array. 3733c6bf4efSScott Long.It Cm good Ar drive 3743c6bf4efSScott LongMark 3753c6bf4efSScott Long.Ar drive 3763c6bf4efSScott Longas an unconfigured good drive. 3773c6bf4efSScott Long.Ar Drive 3783c6bf4efSScott Longmust not be part of an existing array. 3793c6bf4efSScott Long.It Cm rebuild Ar drive 3803c6bf4efSScott LongMark a failed 3813c6bf4efSScott Long.Ar drive 3823c6bf4efSScott Longthat is still part of an array as a good drive suitable for a rebuild. 3833c6bf4efSScott LongThe firmware should kick off an array rebuild on its own if a failed drive 3843c6bf4efSScott Longis marked as a rebuild drive. 3857c2ad1eeSSean Bruno.It Cm syspd Ar drive 3867c2ad1eeSSean BrunoPresent the drive to the host operating system as a disk SYSPD block device in 387*75f8dcc8SGordon Berglingthe format /dev/mfisyspdX. 388*75f8dcc8SGordon BerglingClear this flag with 3897c2ad1eeSSean Bruno.Cm good 3907c2ad1eeSSean Bruno.Ar drive 3913c6bf4efSScott Long.It Cm drive progress Ar drive 3923c6bf4efSScott LongReport the current progress and estimated completion time of drive operations 3933c6bf4efSScott Longsuch as rebuilds or patrol reads. 3943c6bf4efSScott Long.It Cm drive clear Ar drive Brq "start | stop" 3953c6bf4efSScott LongStart or stop the writing of all 0x00 characters to a drive. 3963c6bf4efSScott Long.It Cm start rebuild Ar drive 3973c6bf4efSScott LongManually start a rebuild on 3983c6bf4efSScott Long.Ar drive . 3993c6bf4efSScott Long.It Cm abort rebuild Ar drive 4003c6bf4efSScott LongAbort an in-progress rebuild operation on 4013c6bf4efSScott Long.Ar drive . 4023c6bf4efSScott LongIt can be resumed with the 4033c6bf4efSScott Long.Cm start rebuild 4043c6bf4efSScott Longcommand. 4053c6bf4efSScott Long.It Cm locate Ar drive Brq "on | off" 4063c6bf4efSScott LongChange the state of the external LED associated with 4073c6bf4efSScott Long.Ar drive . 4083c6bf4efSScott Long.El 4093c6bf4efSScott Long.Pp 4103c6bf4efSScott LongThe logical volume management commands include: 4113c6bf4efSScott Long.Bl -tag -width indent 4122e5df98aSJohn Baldwin.It Cm cache Ar volume Op Ar setting Oo Ar value Oc Op ... 4133c6bf4efSScott LongIf no 4143c6bf4efSScott Long.Ar setting 4152e5df98aSJohn Baldwinarguments are supplied, then the current cache policy for 4163c6bf4efSScott Long.Ar volume 4173c6bf4efSScott Longis displayed; 4183c6bf4efSScott Longotherwise, 4193c6bf4efSScott Longthe cache policy for 4203c6bf4efSScott Long.Ar volume 4213c6bf4efSScott Longis modified. 4222e5df98aSJohn BaldwinOne or more 4233c6bf4efSScott Long.Ar setting 4242e5df98aSJohn Baldwinarguments may be given. 4252e5df98aSJohn BaldwinSome settings take an additional 4262e5df98aSJohn Baldwin.Ar value 4272e5df98aSJohn Baldwinargument as noted below. 4282e5df98aSJohn BaldwinThe valid settings are: 4293c6bf4efSScott Long.Bl -tag -width indent 4303c6bf4efSScott Long.It Cm enable 4313c6bf4efSScott LongEnable caching for both read and write I/O operations. 4323c6bf4efSScott Long.It Cm disable 4333c6bf4efSScott LongDisable caching for both read and write I/O operations. 4343c6bf4efSScott Long.It Cm reads 4353c6bf4efSScott LongEnable caching only for read I/O operations. 4363c6bf4efSScott Long.It Cm writes 4373c6bf4efSScott LongEnable caching only for write I/O operations. 4383c6bf4efSScott Long.It Cm write-back 4393c6bf4efSScott LongUse write-back policy for cached writes. 4403c6bf4efSScott Long.It Cm write-through 4413c6bf4efSScott LongUse write-through policy for cached writes. 4428b22f43dSJohn Baldwin.It Cm read-ahead Ar value 4433c6bf4efSScott LongSet the read ahead policy for cached reads. 4443c6bf4efSScott LongThe 4453c6bf4efSScott Long.Ar value 4463c6bf4efSScott Longargument can be set to either 4473c6bf4efSScott Long.Dq none , 4483c6bf4efSScott Long.Dq adaptive , 4493c6bf4efSScott Longor 4503c6bf4efSScott Long.Dq always . 4518b22f43dSJohn Baldwin.It Cm bad-bbu-write-cache Ar value 4528b22f43dSJohn BaldwinControl the behavior of I/O write caching if the battery is dead or 4538b22f43dSJohn Baldwinmissing. 4548b22f43dSJohn BaldwinThe 4558b22f43dSJohn Baldwin.Ar value 4568b22f43dSJohn Baldwinargument can be set to either 4578b22f43dSJohn Baldwin.Dq disable 4588b22f43dSJohn Baldwinor 4598b22f43dSJohn Baldwin.Dq enable . 4608b22f43dSJohn BaldwinIn general this setting should be left disabled to avoid data loss when 4618b22f43dSJohn Baldwinthe system loses power. 4628b22f43dSJohn Baldwin.It Cm write-cache Ar value 4633c6bf4efSScott LongControl the write caches on the physical drives backing 4643c6bf4efSScott Long.Ar volume . 4653c6bf4efSScott LongThe 4663c6bf4efSScott Long.Ar value 4673c6bf4efSScott Longargument can be set to either 4683c6bf4efSScott Long.Dq disable , 4693c6bf4efSScott Long.Dq enable , 4703c6bf4efSScott Longor 4713c6bf4efSScott Long.Dq default . 4723c6bf4efSScott Long.Pp 4733c6bf4efSScott LongIn general this setting should be left disabled to avoid data loss when the 4743c6bf4efSScott Longphysical drives lose power. 4753c6bf4efSScott LongThe battery backup of the RAID controller does not save data in the write 4763c6bf4efSScott Longcaches of the physical drives. 4773c6bf4efSScott Long.El 4783c6bf4efSScott Long.It Cm name Ar volume Ar name 4793c6bf4efSScott LongSets the name of 4803c6bf4efSScott Long.Ar volume 4813c6bf4efSScott Longto 4823c6bf4efSScott Long.Ar name . 4833c6bf4efSScott Long.It Cm volume progress Ar volume 4843c6bf4efSScott LongReport the current progress and estimated completion time of volume operations 4853c6bf4efSScott Longsuch as consistency checks and initializations. 4863c6bf4efSScott Long.El 4873c6bf4efSScott Long.Pp 4883c6bf4efSScott LongThe configuration commands include: 4893c6bf4efSScott Long.Bl -tag -width indent 4903c6bf4efSScott Long.It Cm clear 4913c6bf4efSScott LongDelete the entire configuration including all volumes, arrays, and spares. 4923c6bf4efSScott Long.It Xo Cm create Ar type 4933c6bf4efSScott Long.Op Fl v 4943c6bf4efSScott Long.Op Fl s Ar stripe_size 4953c6bf4efSScott Long.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..." 4963c6bf4efSScott Long.Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..." 4973c6bf4efSScott Long.Xc 4983c6bf4efSScott LongCreate a new volume. 4993c6bf4efSScott LongThe 5003c6bf4efSScott Long.Ar type 5013c6bf4efSScott Longspecifies the type of volume to create. 5023c6bf4efSScott LongCurrently supported types include: 5033c6bf4efSScott Long.Bl -tag -width indent 5043c6bf4efSScott Long.It Cm jbod 5053c6bf4efSScott LongCreates a RAID0 volume for each drive specified. 5063c6bf4efSScott LongEach drive must be specified as a separate argument. 5073c6bf4efSScott Long.It Cm raid0 5083c6bf4efSScott LongCreates one RAID0 volume spanning the drives listed in the single drive list. 5093c6bf4efSScott Long.It Cm raid1 5103c6bf4efSScott LongCreates one RAID1 volume spanning the drives listed in the single drive list. 5113c6bf4efSScott Long.It Cm raid5 5123c6bf4efSScott LongCreates one RAID5 volume spanning the drives listed in the single drive list. 5133c6bf4efSScott Long.It Cm raid6 5143c6bf4efSScott LongCreates one RAID6 volume spanning the drives listed in the single drive list. 5153c6bf4efSScott Long.It Cm raid10 5163c6bf4efSScott LongCreates one RAID10 volume spanning multiple RAID1 arrays. 5173c6bf4efSScott LongThe drives for each RAID1 array are specified as a single drive list. 5183c6bf4efSScott Long.It Cm raid50 5193c6bf4efSScott LongCreates one RAID50 volume spanning multiple RAID5 arrays. 5203c6bf4efSScott LongThe drives for each RAID5 array are specified as a single drive list. 5213c6bf4efSScott Long.It Cm raid60 5223c6bf4efSScott LongCreates one RAID60 volume spanning multiple RAID6 arrays. 5233c6bf4efSScott LongThe drives for each RAID6 array are specified as a single drive list. 5243c6bf4efSScott Long.It Cm concat 5253c6bf4efSScott LongCreates a single volume by concatenating all of the drives in the single drive 5263c6bf4efSScott Longlist. 5273c6bf4efSScott Long.El 5283c6bf4efSScott Long.Pp 5293c6bf4efSScott Long.Sy Note : 5303c6bf4efSScott LongNot all volume types are supported by all controllers. 5313c6bf4efSScott Long.Pp 5323c6bf4efSScott LongIf the 5333c6bf4efSScott Long.Fl v 5343c6bf4efSScott Longflag is specified after 5353c6bf4efSScott Long.Ar type , 5363c6bf4efSScott Longthen more verbose output will be enabled. 5373c6bf4efSScott LongCurrently this just provides notification as drives are added to arrays and 5383c6bf4efSScott Longarrays to volumes when building the configuration. 5393c6bf4efSScott Long.Pp 5403c6bf4efSScott LongThe 5413c6bf4efSScott Long.Fl s 5423c6bf4efSScott Long.Ar stripe_size 5433c6bf4efSScott Longparameter allows the stripe size of the array to be set. 5443c6bf4efSScott LongBy default a stripe size of 64K is used. 5453c6bf4efSScott LongValid values are 512 through 1M, though the MFI firmware may reject some 5463c6bf4efSScott Longvalues. 5473c6bf4efSScott Long.It Cm delete Ar volume 5483c6bf4efSScott LongDelete the volume 5493c6bf4efSScott Long.Ar volume . 5503c6bf4efSScott Long.It Cm add Ar drive Op Ar volume 5513c6bf4efSScott LongMark 5523c6bf4efSScott Long.Ar drive 5533c6bf4efSScott Longas a hot spare. 5543c6bf4efSScott Long.Ar Drive 5553c6bf4efSScott Longmust be in the unconfigured good state. 5563c6bf4efSScott LongIf 5573c6bf4efSScott Long.Ar volume 5583c6bf4efSScott Longis specified, 5593c6bf4efSScott Longthen the hot spare will be dedicated to arrays backing that volume. 5603c6bf4efSScott LongOtherwise, 5613c6bf4efSScott Long.Ar drive 5623c6bf4efSScott Longwill be used as a global hot spare backing all arrays for this controller. 5633c6bf4efSScott LongNote that 5643c6bf4efSScott Long.Ar drive 5653c6bf4efSScott Longmust be as large as the smallest drive in all of the arrays it is going to 5663c6bf4efSScott Longback. 5673c6bf4efSScott Long.It Cm remove Ar drive 5683c6bf4efSScott LongRemove the hot spare 5693c6bf4efSScott Long.Ar drive 5703c6bf4efSScott Longfrom service. 5713c6bf4efSScott LongIt will be placed in the unconfigured good state. 5723c6bf4efSScott Long.El 5733c6bf4efSScott Long.Pp 5743c6bf4efSScott LongThe controller management commands include: 5753c6bf4efSScott Long.Bl -tag -width indent 5763c6bf4efSScott Long.It Cm patrol Ar command Op Ar interval Op Ar start 5773c6bf4efSScott LongSet the patrol read operation mode. 5783c6bf4efSScott LongThe 5793c6bf4efSScott Long.Ar command 5803c6bf4efSScott Longargument can be one of the following values: 5813c6bf4efSScott Long.Bl -tag -width indent 5823c6bf4efSScott Long.It Cm disable 5833c6bf4efSScott LongDisable patrol reads. 5843c6bf4efSScott Long.It Cm auto 5853c6bf4efSScott LongEnable periodic patrol reads initiated by the firmware. 5863c6bf4efSScott LongThe optional 5873c6bf4efSScott Long.Ar interval 5883c6bf4efSScott Longargument specifies the interval in seconds between patrol reads. 589d4352d29SJoel DahlIf patrol reads should be run continuously, 5903c6bf4efSScott Longthen 5913c6bf4efSScott Long.Ar interval 5923c6bf4efSScott Longshould consist of the word 5933c6bf4efSScott Long.Dq continuously . 5943c6bf4efSScott LongThe optional 5953c6bf4efSScott Long.Ar start 5963c6bf4efSScott Longargument specifies a non-negative, relative start time for the next patrol read. 5973c6bf4efSScott LongIf an interval or start time is not specified, 5983c6bf4efSScott Longthen the existing setting will be used. 5993c6bf4efSScott Long.It Cm manual 6003c6bf4efSScott LongEnable manual patrol reads that are only initiated by the user. 6013c6bf4efSScott Long.El 6023c6bf4efSScott Long.It Cm start patrol 6033c6bf4efSScott LongStart a patrol read operation. 6043c6bf4efSScott Long.It Cm stop patrol 6053c6bf4efSScott LongStop a currently running patrol read operation. 60606f1884fSSean Bruno.It Cm foreign scan 607*75f8dcc8SGordon BerglingScan for foreign configurations and display the number found. 608*75f8dcc8SGordon BerglingThe 60906f1884fSSean Bruno.Ar config 61006f1884fSSean Brunoargument for the commands below takes the form of a number from 0 to the total 61106f1884fSSean Brunoconfigurations found. 61206f1884fSSean Bruno.It Cm foreign clear Op config 613463a577bSEitan AdlerClear the specified foreign 61406f1884fSSean Bruno.Ar config 61506f1884fSSean Brunoor all if no 61606f1884fSSean Bruno.Ar config 61706f1884fSSean Brunoargument is provided. 61806f1884fSSean Bruno.It Cm foreign diag Op config 619463a577bSEitan AdlerDisplay a diagnostic display of the specified foreign 62006f1884fSSean Bruno.Ar config 62106f1884fSSean Brunoor all if no 62206f1884fSSean Bruno.Ar config 62306f1884fSSean Brunoargument is provided. 62406f1884fSSean Bruno.It Cm foreign preview Op config 625463a577bSEitan AdlerPreview the specified foreign 62606f1884fSSean Bruno.Ar config 62706f1884fSSean Brunoafter import or all if no 62806f1884fSSean Bruno.Ar config 62906f1884fSSean Brunoargument is provided. 63006f1884fSSean Bruno.It Cm foreign import Op config 631463a577bSEitan AdlerImport the specified foreign 63206f1884fSSean Bruno.Ar config 63306f1884fSSean Brunoor all if no 63406f1884fSSean Bruno.Ar config 63506f1884fSSean Brunoargument is provided. 6363c6bf4efSScott Long.It Cm flash Ar file 6373c6bf4efSScott LongUpdates the flash on the controller with the firmware stored in 6383c6bf4efSScott Long.Ar file . 6393c6bf4efSScott LongA reboot is required for the new firmware to take effect. 640dee3e845SMark Johnston.It Cm start learn 641dee3e845SMark JohnstonStart a battery relearn. 642252d8593SMark JohnstonNote that this seems to always result in the battery being completely drained, 643252d8593SMark Johnstonregardless of the BBU mode. 644252d8593SMark JohnstonIn particular, the controller write cache will be disabled during the relearn 645252d8593SMark Johnstoneven if transparent learning mode is enabled. 646dee3e845SMark Johnston.It Cm bbu Ar setting Ar value 647dee3e845SMark JohnstonUpdate battery backup unit (BBU) properties related to battery relearning. 648dee3e845SMark JohnstonThe following settings are configurable: 649dee3e845SMark Johnston.Bl -tag -width indent 650dee3e845SMark Johnston.It Cm learn-delay 651*75f8dcc8SGordon BerglingAdd a delay to the next scheduled battery relearn event. 652*75f8dcc8SGordon BerglingThis setting is given in hours and must lie in the range of 0 to 255. 653dee3e845SMark Johnston.It Cm autolearn-mode 654dee3e845SMark JohnstonEnable or disable automatic periodic battery relearning. 655dee3e845SMark JohnstonThe setting may be set to 656dee3e845SMark Johnston.Dq enable 657dee3e845SMark Johnstonor 658dee3e845SMark Johnston.Dq disable 659dee3e845SMark Johnstonto respectively enable or disable the relearn cycle. 660dee3e845SMark JohnstonAlternatively, a mode of 0, 1 or 2 may be given. 661dee3e845SMark JohnstonMode 0 enables periodic relearning, mode 1 disables it, and mode 2 disables 662dee3e845SMark Johnstonit and logs a warning to the event log when it detects that a battery relearn 663dee3e845SMark Johnstonshould be performed. 664dee3e845SMark Johnston.It Cm bbu-mode 665*75f8dcc8SGordon BerglingSet the BBU's mode of operation. 666*75f8dcc8SGordon BerglingThis setting is not supported by all BBUs. 667dee3e845SMark JohnstonWhere it is supported, the possible values are the integers between 1 and 5 668dee3e845SMark Johnstoninclusive. 669dee3e845SMark JohnstonModes 1, 2 and 3 enable a transparent learn cycle, whereas modes 4 and 5 do not. 670dee3e845SMark JohnstonThe BBU's data retention time is greater when transparent learning is not used. 671dee3e845SMark Johnston.El 672ee7a2acaSSean Bruno.It Cm ctrlprop Ar rebuild Op Ar rate 673ee7a2acaSSean BrunoWith no arguments display the rate of rebuild (percentage)a for volumes. 674ee7a2acaSSean BrunoWith an integer argument (0-100), set that value as the new rebuild rate for volumes. 675ee7a2acaSSean Bruno.It Cm ctrlprop Ar alarm Op Ar 0/1 676ee7a2acaSSean BrunoWith no arguments display the current alarm enable/disable status. 677*75f8dcc8SGordon BerglingWith a 0, disable alarms. 678*75f8dcc8SGordon BerglingWith a 1, enable alarms. 6793c6bf4efSScott Long.El 6803c6bf4efSScott Long.Sh EXAMPLES 6813c6bf4efSScott LongConfigure the cache for volume mfid0 to cache only writes: 6823c6bf4efSScott Long.Pp 6833c6bf4efSScott Long.Dl Nm Cm cache mfid0 writes 6843c6bf4efSScott Long.Dl Nm Cm cache mfid0 write-back 6853c6bf4efSScott Long.Pp 6863c6bf4efSScott LongCreate a RAID5 array spanning the first four disks in the second enclosure: 6873c6bf4efSScott Long.Pp 6883c6bf4efSScott Long.Dl Nm Cm create raid5 e1:s0,e1:s1,e1:s2,e1:s4 6893c6bf4efSScott Long.Pp 6903c6bf4efSScott LongConfigure the first three disks on a controller as JBOD: 6913c6bf4efSScott Long.Pp 6923c6bf4efSScott Long.Dl Nm Cm create jbod 0 1 2 6933c6bf4efSScott Long.Pp 6943c6bf4efSScott LongCreate a RAID10 volume that spans two arrays each of which contains two disks 6953c6bf4efSScott Longfrom two different enclosures: 6963c6bf4efSScott Long.Pp 6973c6bf4efSScott Long.Dl Nm Cm create raid10 e1:s0,e1:s1 e2:s0,e2:s1 6983c6bf4efSScott Long.Pp 6993c6bf4efSScott LongAdd drive with the device ID of 4 as a global hot spare: 7003c6bf4efSScott Long.Pp 7013c6bf4efSScott Long.Dl Nm Cm add 4 7023c6bf4efSScott Long.Pp 7033c6bf4efSScott LongAdd the drive in slot 2 in the main chassis as a hot spare for volume mfid0: 7043c6bf4efSScott Long.Pp 7053c6bf4efSScott Long.Dl Nm Cm add s2 mfid0 7063c6bf4efSScott Long.Pp 7077c2ad1eeSSean BrunoReconfigure a disk as a SYSPD block device with no RAID 7087c2ad1eeSSean Bruno.Pp 7097c2ad1eeSSean Bruno.Dl Nm Cm syspd 0 7107c2ad1eeSSean Bruno.Pp 7113c6bf4efSScott LongConfigure the adapter to run periodic patrol reads once a week with the first 7123c6bf4efSScott Longpatrol read starting in 5 minutes: 7133c6bf4efSScott Long.Pp 7143c6bf4efSScott Long.Dl Nm Cm patrol auto 604800 300 71506f1884fSSean Bruno.Pp 71606f1884fSSean BrunoDisplay the second detected foreign configuration: 71706f1884fSSean Bruno.Pp 71806f1884fSSean Bruno.Dl Nm Cm show foreign 1 719ee7a2acaSSean Bruno.Pp 720ee7a2acaSSean BrunoSet the current rebuild rate for volumes to 40%: 721ee7a2acaSSean Bruno.Dl Nm Cm ctrlprop rebuild 40 7223c6bf4efSScott Long.Sh SEE ALSO 7233c6bf4efSScott Long.Xr mfi 4 724d78c3fa1SScott Long.Sh HISTORY 725d78c3fa1SScott LongThe 726d78c3fa1SScott Long.Nm 727d78c3fa1SScott Longutility first appeared in 728d78c3fa1SScott Long.Fx 8.0 . 729