1 .\" Copyright (c) 2008, 2009 Yahoo!, Inc.
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. The names of the authors may not be used to endorse or promote
13 .\" products derived from this software without specific prior written
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" $FreeBSD: src/usr.sbin/mfiutil/mfiutil.8,v 1.9 2011/09/02 16:00:51 jhb Exp $
35 .Nd Utility for managing LSI MegaRAID SAS controllers
60 .Op Ar start Op Ar stop
91 .Cm drive progress Ar drive
94 .Cm drive clear Ar drive Brq "start | stop"
97 .Cm start rebuild Ar drive
100 .Cm abort rebuild Ar drive
103 .Cm locate Ar drive Brq "on | off"
106 .Cm cache Ar volume Op Ar setting Oo Ar value Oc Op ...
109 .Cm name Ar volume Ar name
112 .Cm volume progress Ar volume
120 .Op Fl s Ar stripe_size
121 .Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
122 .Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
128 .Cm add Ar drive Op Ar volume
140 .Cm patrol Ar command Op Ar interval Op Ar start
147 utility can be used to display or modify various parameters on LSI
148 MegaRAID SAS RAID controllers.
151 consists of zero or more global options followed by a command.
152 Commands may support additional optional or required arguments after the
155 Currently one global option is supported:
156 .Bl -tag -width indent
159 specifies the unit of the controller to work with.
160 If no unit is specified,
164 Various commands accept either or both of the two options:
165 .Bl -tag -width indent
167 Print numeric device IDs as drive identifier.
169 Useful in combination with
171 to print both, numeric device IDs and enclosure:slot information.
173 Print drive identifiers in enclosure:slot form.
174 See next paragraph on format details in context of input rather than
178 Drives may be specified in two forms.
180 a drive may be identified by its device ID.
181 The device ID for configured drives can be found in
184 a drive may be identified by its location as
194 is the slot for each drive as displayed in
197 Volumes may be specified in two forms.
199 a volume may be identified by its target ID.
201 on the volume may be specified by the corresponding
209 utility supports several different groups of commands.
210 The first group of commands provide information about the controller,
211 the volumes it manages, and the drives it controls.
212 The second group of commands are used to manage the physical drives
213 attached to the controller.
214 The third group of commands are used to manage the logical volumes
215 managed by the controller.
216 The fourth group of commands are used to manage the drive configuration for
218 The fifth group of commands are used to manage controller-wide operations.
220 The informational commands include:
221 .Bl -tag -width indent
223 Displays the version of
226 Displays information about the RAID controller such as the model number.
228 Displays information about the battery from the battery backup unit.
230 Displays the volume and drive configuration for the controller.
231 Each array is listed along with the physical drives the array is built from.
232 Each volume is listed along with the arrays that the volume spans.
233 If any hot spare drives are configured, then they are listed as well.
235 Lists all of the physical drives attached to the controller.
236 .It Xo Cm show events
241 .Op Ar start Op Ar stop
243 Display entries from the controller's event log.
244 The controller maintains a circular buffer of events.
245 Each event is tagged with a class and locale.
249 parameter limits the output to entries at the specified class or higher.
252 The available classes from lowest priority to highest are:
253 .Bl -tag -width -indent
257 Periodic progress updates for long-running operations such as background
258 initializations, array rebuilds, or patrol reads.
260 Informational messages such as drive insertions and volume creations.
262 Indicates that some component may be close to failing.
264 A component has failed, but no data is lost.
265 For example, a volume becoming degraded due to a drive failure.
267 A component has failed resulting in data loss.
269 The controller itself has died.
274 parameter limits the output to entries for the specified part of the controller.
275 The default locale is
277 The available locales are
291 parameter is a debugging aid that specifies the number of events to fetch from
292 the controller for each low-level request.
293 The default is 15 events.
295 By default, matching event log entries from the previous shutdown up to the
296 present are displayed. This range can be adjusted via the
301 Each of these parameters can either be specified as a log entry number or as
302 one of the following aliases:
303 .Bl -tag -width -indent
305 The newest entry in the event log.
307 The oldest entry in the event log.
309 The first entry since the event log was cleared.
311 The entry in the event log corresponding to the last time the controller was
314 The entry in the event log corresponding to the most recent boot.
317 Lists all of the firmware images present on the controller.
319 Display the various sequence numbers associated with the event log.
321 Display the status of the controller's patrol read operation.
323 Report the current progress and estimated completion time for active
324 operations on all volumes and drives.
326 Lists all of the logical volumes managed by the controller.
329 The physical drive management commands include:
330 .Bl -tag -width indent
336 must be an online drive that is part of an array.
340 as an unconfigured good drive.
342 must not be part of an existing array.
343 .It Cm rebuild Ar drive
346 that is still part of an array as a good drive suitable for a rebuild.
347 The firmware should kick off an array rebuild on its own if a failed drive
348 is marked as a rebuild drive.
349 .It Cm drive progress Ar drive
350 Report the current progress and estimated completion time of drive operations
351 such as rebuilds or patrol reads.
352 .It Cm drive clear Ar drive Brq "start | stop"
353 Start or stop the writing of all 0x00 characters to a drive.
354 .It Cm start rebuild Ar drive
355 Manually start a rebuild on
357 .It Cm abort rebuild Ar drive
358 Abort an in-progress rebuild operation on
360 It can be resumed with the
363 .It Cm locate Ar drive Brq "on | off"
364 Change the state of the external LED associated with
368 The logical volume management commands include:
369 .Bl -tag -width indent
370 .It Cm cache Ar volume Op Ar setting Oo Ar value Oc Op ...
373 arguments are supplied, then the current cache policy for
382 arguments may be given.
383 Some settings take an additional
385 argument as noted below.
386 The valid settings are:
387 .Bl -tag -width indent
389 Enable caching for both read and write I/O operations.
391 Disable caching for both read and write I/O operations.
393 Enable caching only for read I/O operations.
395 Enable caching only for write I/O operations.
397 Use write-back policy for cached writes.
399 Use write-through policy for cached writes.
400 .It Cm read-ahead Ar value
401 Set the read ahead policy for cached reads.
404 argument can be set to either
409 .It Cm bad-bbu-write-cache Ar value
410 Control the behavior of I/O write caching if the battery is dead or
414 argument can be set to either
418 In general this setting should be left disabled to avoid data loss when
419 the system loses power.
420 .It Cm write-cache Ar value
421 Control the write caches on the physical drives backing
425 argument can be set to either
431 In general this setting should be left disabled to avoid data loss when the
432 physical drives lose power.
433 The battery backup of the RAID controller does not save data in the write
434 caches of the physical drives.
436 .It Cm name Ar volume Ar name
441 .It Cm volume progress Ar volume
442 Report the current progress and estimated completion time of volume operations
443 such as consistency checks and initializations.
446 The configuration commands include:
447 .Bl -tag -width indent
449 Delete the entire configuration including all volumes, arrays, and spares.
450 .It Xo Cm create Ar type
452 .Op Fl s Ar stripe_size
453 .Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
454 .Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
459 specifies the type of volume to create.
460 Currently supported types include:
461 .Bl -tag -width indent
463 Creates a RAID0 volume for each drive specified.
464 Each drive must be specified as a separate argument.
466 Creates one RAID0 volume spanning the drives listed in the single drive list.
468 Creates one RAID1 volume spanning the drives listed in the single drive list.
470 Creates one RAID5 volume spanning the drives listed in the single drive list.
472 Creates one RAID6 volume spanning the drives listed in the single drive list.
474 Creates one RAID10 volume spanning multiple RAID1 arrays.
475 The drives for each RAID1 array are specified as a single drive list.
477 Creates one RAID50 volume spanning multiple RAID5 arrays.
478 The drives for each RAID5 array are specified as a single drive list.
480 Creates one RAID60 volume spanning multiple RAID6 arrays.
481 The drives for each RAID6 array are specified as a single drive list.
483 Creates a single volume by concatenating all of the drives in the single drive
488 Not all volume types are supported by all controllers.
492 flag is specified after
494 then more verbose output will be enabled.
495 Currently this just provides notification as drives are added to arrays and
496 arrays to volumes when building the configuration.
501 parameter allows the stripe size of the array to be set.
502 By default a stripe size of 64K is used.
503 Valid values are 512 through 1M, though the MFI firmware may reject some
505 .It Cm delete Ar volume
508 .It Cm add Ar drive Op Ar volume
513 must be in the unconfigured good state.
517 then the hot spare will be dedicated to arrays backing that volume.
520 will be used as a global hot spare backing all arrays for this controller.
523 must be as large as the smallest drive in all of the arrays it is going to
525 .It Cm remove Ar drive
529 It will be placed in the unconfigured good state.
532 The controller management commands include:
533 .Bl -tag -width indent
534 .It Cm patrol Ar command Op Ar interval Op Ar start
535 Set the patrol read operation mode.
538 argument can be one of the following values:
539 .Bl -tag -width indent
541 Disable patrol reads.
543 Enable periodic patrol reads initiated by the firmware.
546 argument specifies the interval in seconds between patrol reads.
547 If patrol reads should be run continuously,
550 should consist of the word
554 argument specifies a non-negative, relative start time for the next patrol read.
555 If an interval or start time is not specified,
556 then the existing setting will be used.
558 Enable manual patrol reads that are only initiated by the user.
561 Start a patrol read operation.
563 Stop a currently running patrol read operation.
565 Updates the flash on the controller with the firmware stored in
567 A reboot is required for the new firmware to take effect.
570 Configure the cache for volume mfid0 to cache only writes:
572 .Dl Nm Cm cache mfid0 writes
573 .Dl Nm Cm cache mfid0 write-back
575 Create a RAID5 array spanning the first four disks in the second enclosure:
577 .Dl Nm Cm create raid5 e1:s0,e1:s1,e1:s2,e1:s4
579 Configure the first three disks on a controller as JBOD:
581 .Dl Nm Cm create jbod 0 1 2
583 Create a RAID10 volume that spans two arrays each of which contains two disks
584 from two different enclosures:
586 .Dl Nm Cm create raid10 e1:s0,e1:s1 e2:s0,e2:s1
588 Add drive with the device ID of 4 as a global hot spare:
592 Add the drive in slot 2 in the main chassis as a hot spare for volume mfid0:
594 .Dl Nm Cm add s2 mfid0
596 Configure the adapter to run periodic patrol reads once a week with the first
597 patrol read starting in 5 minutes:
599 .Dl Nm Cm patrol auto 604800 300
605 utility first appeared in