xref: /freebsd/usr.sbin/mfiutil/mfiutil.8 (revision 87b759f0fa1f7554d50ce640c40138512bbded44)
1.\" Copyright (c) 2008, 2009 Yahoo!, Inc.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
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
14.\"    permission.
15.\"
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
26.\" SUCH DAMAGE.
27.\"
28.Dd September 2, 2011
29.Dt MFIUTIL 8
30.Os
31.Sh NAME
32.Nm mfiutil ,
33.Nm mrsasutil
34.Nd Utility for managing LSI MegaRAID SAS controllers
35.Sh SYNOPSIS
36.Nm
37.Cm version
38.Nm
39.Op Fl D Ar device
40.Op Fl t Ar type
41.Op Fl u Ar unit
42.Cm show adapter
43.Nm
44.Op Fl D Ar device
45.Op Fl t Ar type
46.Op Fl u Ar unit
47.Cm show battery
48.Nm
49.Op Fl d
50.Op Fl e
51.Op Fl D Ar device
52.Op Fl t Ar type
53.Op Fl u Ar unit
54.Cm show config
55.Nm
56.Op Fl D Ar device
57.Op Fl t Ar type
58.Op Fl u Ar unit
59.Cm show drives
60.Nm
61.Op Fl D Ar device
62.Op Fl t Ar type
63.Op Fl u Ar unit
64.Cm show events
65.Op Fl c Ar class
66.Op Fl l Ar locale
67.Op Fl n Ar count
68.Op Fl v
69.Op Ar start Op Ar stop
70.Nm
71.Op Fl D Ar device
72.Op Fl t Ar type
73.Op Fl u Ar unit
74.Cm show firmware
75.Nm
76.Op Fl D Ar device
77.Op Fl t Ar type
78.Op Fl u Ar unit
79.Cm show foreign Op Ar volume
80.Nm
81.Op Fl D Ar device
82.Op Fl t Ar type
83.Op Fl u Ar unit
84.Cm show logstate
85.Nm
86.Op Fl d
87.Op Fl e
88.Op Fl D Ar device
89.Op Fl t Ar type
90.Op Fl u Ar unit
91.Cm show patrol
92.Nm
93.Op Fl d
94.Op Fl e
95.Op Fl D Ar device
96.Op Fl t Ar type
97.Op Fl u Ar unit
98.Cm show progress
99.Nm
100.Op Fl D Ar device
101.Op Fl t Ar type
102.Op Fl u Ar unit
103.Cm show volumes
104.Nm
105.Op Fl D Ar device
106.Op Fl t Ar type
107.Op Fl u Ar unit
108.Cm fail Ar drive
109.Nm
110.Op Fl D Ar device
111.Op Fl t Ar type
112.Op Fl u Ar unit
113.Cm good Ar drive
114.Nm
115.Op Fl D Ar device
116.Op Fl t Ar type
117.Op Fl u Ar unit
118.Cm rebuild Ar drive
119.Nm
120.Op Fl D Ar device
121.Op Fl t Ar type
122.Op Fl u Ar unit
123.Cm syspd Ar drive
124.Nm
125.Op Fl D Ar device
126.Op Fl t Ar type
127.Op Fl u Ar unit
128.Cm drive progress Ar drive
129.Nm
130.Op Fl D Ar device
131.Op Fl t Ar type
132.Op Fl u Ar unit
133.Cm drive clear Ar drive Brq "start | stop"
134.Nm
135.Op Fl D Ar device
136.Op Fl t Ar type
137.Op Fl u Ar unit
138.Cm start rebuild Ar drive
139.Nm
140.Op Fl D Ar device
141.Op Fl t Ar type
142.Op Fl u Ar unit
143.Cm abort rebuild Ar drive
144.Nm
145.Op Fl D Ar device
146.Op Fl t Ar type
147.Op Fl u Ar unit
148.Cm locate Ar drive Brq "on | off"
149.Nm
150.Op Fl D Ar device
151.Op Fl t Ar type
152.Op Fl u Ar unit
153.Cm cache Ar volume Op Ar setting Oo Ar value Oc Op ...
154.Nm
155.Op Fl D Ar device
156.Op Fl t Ar type
157.Op Fl u Ar unit
158.Cm name Ar volume Ar name
159.Nm
160.Op Fl D Ar device
161.Op Fl t Ar type
162.Op Fl u Ar unit
163.Cm volume progress Ar volume
164.Nm
165.Op Fl D Ar device
166.Op Fl t Ar type
167.Op Fl u Ar unit
168.Cm clear
169.Nm
170.Op Fl D Ar device
171.Op Fl t Ar type
172.Op Fl u Ar unit
173.Cm create Ar type
174.Op Fl v
175.Op Fl s Ar stripe_size
176.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
177.Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
178.Nm
179.Op Fl D Ar device
180.Op Fl t Ar type
181.Op Fl u Ar unit
182.Cm delete Ar volume
183.Nm
184.Op Fl D Ar device
185.Op Fl t Ar type
186.Op Fl u Ar unit
187.Cm add Ar drive Op Ar volume
188.Nm
189.Op Fl D Ar device
190.Op Fl t Ar type
191.Op Fl u Ar unit
192.Cm remove Ar drive
193.Nm
194.Op Fl D Ar device
195.Op Fl t Ar type
196.Op Fl u Ar unit
197.Cm start patrol
198.Nm
199.Op Fl D Ar device
200.Op Fl t Ar type
201.Op Fl u Ar unit
202.Cm stop patrol
203.Nm
204.Op Fl D Ar device
205.Op Fl t Ar type
206.Op Fl u Ar unit
207.Cm patrol Ar command Op Ar interval Op Ar start
208.Nm
209.Op Fl D Ar device
210.Op Fl t Ar type
211.Op Fl u Ar unit
212.Cm foreign scan
213.Nm
214.Op Fl D Ar device
215.Op Fl t Ar type
216.Op Fl u Ar unit
217.Cm foreign clear Op Ar config
218.Nm
219.Op Fl D Ar device
220.Op Fl t Ar type
221.Op Fl u Ar unit
222.Cm foreign diag Op Ar config
223.Nm
224.Op Fl D Ar device
225.Op Fl t Ar type
226.Op Fl u Ar unit
227.Cm foreign preview Op Ar config
228.Nm
229.Op Fl D Ar device
230.Op Fl t Ar type
231.Op Fl u Ar unit
232.Cm foreign import Op Ar config
233.Nm
234.Op Fl D Ar device
235.Op Fl t Ar type
236.Op Fl u Ar unit
237.Cm flash Ar file
238.Nm
239.Op Fl D Ar device
240.Op Fl t Ar type
241.Op Fl u Ar unit
242.Cm start learn
243.Nm
244.Op Fl D Ar device
245.Op Fl t Ar type
246.Op Fl u Ar unit
247.Cm bbu Ar setting Ar value
248.Nm
249.Op Fl D Ar device
250.Op Fl t Ar type
251.Op Fl u Ar unit
252.Cm ctrlprop Ar rebuild Op Ar rate
253.Nm
254.Op Fl D Ar device
255.Op Fl t Ar type
256.Op Fl u Ar unit
257.Cm ctrlprop Ar alarm Op Ar 0/1
258.Sh DESCRIPTION
259The
260.Nm
261utility can be used to display or modify various parameters on LSI
262MegaRAID SAS RAID controllers.
263Each invocation of
264.Nm
265consists of zero or more global options followed by a command.
266Commands may support additional optional or required arguments after the
267command.
268.Pp
269Currently three global options are supported:
270.Bl -tag -width indent
271.It Fl D Ar device
272.Ar device
273specifies the device node of the controller to use.
274.Pa /dev/
275will be added to the device node if needed.
276If no device node is specified,
277then device will be made of the type and device.
278.It Fl t Ar type
279.Ar type
280specifies the type of the controller to work with either
281.Xr mfi 4
282or
283.Xr mrsas 4 .
284If no type is specified,
285then the name of the invoked tool used to derive the type.
286.It Fl u Ar unit
287.Ar unit
288specifies the unit of the controller to work with.
289If no unit is specified,
290then unit 0 is used.
291.El
292.Pp
293Various commands accept either or both of the two options:
294.Bl -tag -width indent
295.It Fl d
296Print numeric device IDs as drive identifier.
297This is the default.
298Useful in combination with
299.Fl e
300to print both, numeric device IDs and enclosure:slot information.
301.It Fl e
302Print drive identifiers in enclosure:slot form.
303See next paragraph on format details in context of input rather than
304output.
305.El
306.Pp
307Drives may be specified in two forms.
308First,
309a drive may be identified by its device ID.
310The device ID for configured drives can be found in
311.Cm show config .
312Second,
313a drive may be identified by its location as
314.Sm off
315.Op E Ar xx Ns \&:
316.Li S Ns Ar yy
317.Sm on
318where
319.Ar xx
320is the enclosure
321and
322.Ar yy
323is the slot for each drive as displayed in
324.Cm show drives .
325.Pp
326Volumes may be specified in two forms.
327First,
328a volume may be identified by its target ID.
329Second,
330on the volume may be specified by the corresponding
331.Em mfidX
332device,
333such as
334.Em mfid0 .
335.Pp
336The
337.Nm
338utility supports several different groups of commands.
339The first group of commands provide information about the controller,
340the volumes it manages, and the drives it controls.
341The second group of commands are used to manage the physical drives
342attached to the controller.
343The third group of commands are used to manage the logical volumes
344managed by the controller.
345The fourth group of commands are used to manage the drive configuration for
346the controller.
347The fifth group of commands are used to manage controller-wide operations.
348.Pp
349The informational commands include:
350.Bl -tag -width indent
351.It Cm version
352Displays the version of
353.Nm .
354.It Cm show adapter
355Displays information about the RAID controller such as the model number.
356.It Cm show battery
357Displays information about the battery from the battery backup unit.
358.It Cm show config
359Displays the volume and drive configuration for the controller.
360Each array is listed along with the physical drives the array is built from.
361Each volume is listed along with the arrays that the volume spans.
362If any hot spare drives are configured, then they are listed as well.
363.It Cm show drives
364Lists all of the physical drives attached to the controller.
365.It Xo Cm show events
366.Op Fl c Ar class
367.Op Fl l Ar locale
368.Op Fl n Ar count
369.Op Fl v
370.Op Ar start Op Ar stop
371.Xc
372Display entries from the controller's event log.
373The controller maintains a circular buffer of events.
374Each event is tagged with a class and locale.
375.Pp
376The
377.Ar class
378parameter limits the output to entries at the specified class or higher.
379The default class is
380.Dq warn .
381The available classes from lowest priority to highest are:
382.Bl -tag -width indent
383.It Cm debug
384Debug messages.
385.It Cm progress
386Periodic progress updates for long-running operations such as background
387initializations, array rebuilds, or patrol reads.
388.It Cm info
389Informational messages such as drive insertions and volume creations.
390.It Cm warn
391Indicates that some component may be close to failing.
392.It Cm crit
393A component has failed, but no data is lost.
394For example, a volume becoming degraded due to a drive failure.
395.It Cm fatal
396A component has failed resulting in data loss.
397.It Cm dead
398The controller itself has died.
399.El
400.Pp
401The
402.Ar locale
403parameter limits the output to entries for the specified part of the controller.
404The default locale is
405.Dq all .
406The available locales are
407.Dq volume ,
408.Dq drive ,
409.Dq enclosure ,
410.Dq battery ,
411.Dq sas ,
412.Dq controller ,
413.Dq config ,
414.Dq cluster ,
415and
416.Dq all .
417.Pp
418The
419.Ar count
420parameter is a debugging aid that specifies the number of events to fetch from
421the controller for each low-level request.
422The default is 15 events.
423.Pp
424By default, matching event log entries from the previous shutdown up to the
425present are displayed.
426This range can be adjusted via the
427.Ar start
428and
429.Ar stop
430parameters.
431Each of these parameters can either be specified as a log entry number or as
432one of the following aliases:
433.Bl -tag -width indent
434.It Cm newest
435The newest entry in the event log.
436.It Cm oldest
437The oldest entry in the event log.
438.It Cm clear
439The first entry since the event log was cleared.
440.It Cm shutdown
441The entry in the event log corresponding to the last time the controller was
442cleanly shut down.
443.It Cm boot
444The entry in the event log corresponding to the most recent boot.
445.El
446.It Cm show firmware
447Lists all of the firmware images present on the controller.
448.It Cm show foreign
449Displays detected foreign configurations on disks for importation or removal.
450.It Cm show logstate
451Display the various sequence numbers associated with the event log.
452.It Cm show patrol
453Display the status of the controller's patrol read operation.
454.It Cm show progress
455Report the current progress and estimated completion time for active
456operations on all volumes and drives.
457.It Cm show volumes
458Lists all of the logical volumes managed by the controller.
459.El
460.Pp
461The physical drive management commands include:
462.Bl -tag -width indent
463.It Cm fail Ar drive
464Mark
465.Ar drive
466as failed.
467.Ar Drive
468must be an online drive that is part of an array.
469.It Cm good Ar drive
470Mark
471.Ar drive
472as an unconfigured good drive.
473.Ar Drive
474must not be part of an existing array.
475.It Cm rebuild Ar drive
476Mark a failed
477.Ar drive
478that is still part of an array as a good drive suitable for a rebuild.
479The firmware should kick off an array rebuild on its own if a failed drive
480is marked as a rebuild drive.
481.It Cm syspd Ar drive
482Present the drive to the host operating system as a disk SYSPD block device in
483the format /dev/mfisyspdX.
484Clear this flag with
485.Cm good
486.Ar drive
487.It Cm drive progress Ar drive
488Report the current progress and estimated completion time of drive operations
489such as rebuilds or patrol reads.
490.It Cm drive clear Ar drive Brq "start | stop"
491Start or stop the writing of all 0x00 characters to a drive.
492.It Cm start rebuild Ar drive
493Manually start a rebuild on
494.Ar drive .
495.It Cm abort rebuild Ar drive
496Abort an in-progress rebuild operation on
497.Ar drive .
498It can be resumed with the
499.Cm start rebuild
500command.
501.It Cm locate Ar drive Brq "on | off"
502Change the state of the external LED associated with
503.Ar drive .
504.El
505.Pp
506The logical volume management commands include:
507.Bl -tag -width indent
508.It Cm cache Ar volume Op Ar setting Oo Ar value Oc Op ...
509If no
510.Ar setting
511arguments are supplied, then the current cache policy for
512.Ar volume
513is displayed;
514otherwise,
515the cache policy for
516.Ar volume
517is modified.
518One or more
519.Ar setting
520arguments may be given.
521Some settings take an additional
522.Ar value
523argument as noted below.
524The valid settings are:
525.Bl -tag -width indent
526.It Cm enable
527Enable caching for both read and write I/O operations.
528.It Cm disable
529Disable caching for both read and write I/O operations.
530.It Cm reads
531Enable caching only for read I/O operations.
532.It Cm writes
533Enable caching only for write I/O operations.
534.It Cm write-back
535Use write-back policy for cached writes.
536.It Cm write-through
537Use write-through policy for cached writes.
538.It Cm read-ahead Ar value
539Set the read ahead policy for cached reads.
540The
541.Ar value
542argument can be set to either
543.Dq none ,
544.Dq adaptive ,
545or
546.Dq always .
547.It Cm bad-bbu-write-cache Ar value
548Control the behavior of I/O write caching if the battery is dead or
549missing.
550The
551.Ar value
552argument can be set to either
553.Dq disable
554or
555.Dq enable .
556In general this setting should be left disabled to avoid data loss when
557the system loses power.
558.It Cm write-cache Ar value
559Control the write caches on the physical drives backing
560.Ar volume .
561The
562.Ar value
563argument can be set to either
564.Dq disable ,
565.Dq enable ,
566or
567.Dq default .
568.Pp
569In general this setting should be left disabled to avoid data loss when the
570physical drives lose power.
571The battery backup of the RAID controller does not save data in the write
572caches of the physical drives.
573.El
574.It Cm name Ar volume Ar name
575Sets the name of
576.Ar volume
577to
578.Ar name .
579.It Cm volume progress Ar volume
580Report the current progress and estimated completion time of volume operations
581such as consistency checks and initializations.
582.El
583.Pp
584The configuration commands include:
585.Bl -tag -width indent
586.It Cm clear
587Delete the entire configuration including all volumes, arrays, and spares.
588.It Xo Cm create Ar type
589.Op Fl v
590.Op Fl s Ar stripe_size
591.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
592.Op Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
593.Xc
594Create a new volume.
595The
596.Ar type
597specifies the type of volume to create.
598Currently supported types include:
599.Bl -tag -width indent
600.It Cm jbod
601Creates a RAID0 volume for each drive specified.
602Each drive must be specified as a separate argument.
603.It Cm raid0
604Creates one RAID0 volume spanning the drives listed in the single drive list.
605.It Cm raid1
606Creates one RAID1 volume spanning the drives listed in the single drive list.
607.It Cm raid5
608Creates one RAID5 volume spanning the drives listed in the single drive list.
609.It Cm raid6
610Creates one RAID6 volume spanning the drives listed in the single drive list.
611.It Cm raid10
612Creates one RAID10 volume spanning multiple RAID1 arrays.
613The drives for each RAID1 array are specified as a single drive list.
614.It Cm raid50
615Creates one RAID50 volume spanning multiple RAID5 arrays.
616The drives for each RAID5 array are specified as a single drive list.
617.It Cm raid60
618Creates one RAID60 volume spanning multiple RAID6 arrays.
619The drives for each RAID6 array are specified as a single drive list.
620.It Cm concat
621Creates a single volume by concatenating all of the drives in the single drive
622list.
623.El
624.Pp
625.Sy Note :
626Not all volume types are supported by all controllers.
627.Pp
628If the
629.Fl v
630flag is specified after
631.Ar type ,
632then more verbose output will be enabled.
633Currently this just provides notification as drives are added to arrays and
634arrays to volumes when building the configuration.
635.Pp
636The
637.Fl s
638.Ar stripe_size
639parameter allows the stripe size of the array to be set.
640By default a stripe size of 64K is used.
641Valid values are 512 through 1M, though the MFI firmware may reject some
642values.
643.It Cm delete Ar volume
644Delete the volume
645.Ar volume .
646.It Cm add Ar drive Op Ar volume
647Mark
648.Ar drive
649as a hot spare.
650.Ar Drive
651must be in the unconfigured good state.
652If
653.Ar volume
654is specified,
655then the hot spare will be dedicated to arrays backing that volume.
656Otherwise,
657.Ar drive
658will be used as a global hot spare backing all arrays for this controller.
659Note that
660.Ar drive
661must be as large as the smallest drive in all of the arrays it is going to
662back.
663.It Cm remove Ar drive
664Remove the hot spare
665.Ar drive
666from service.
667It will be placed in the unconfigured good state.
668.El
669.Pp
670The controller management commands include:
671.Bl -tag -width indent
672.It Cm patrol Ar command Op Ar interval Op Ar start
673Set the patrol read operation mode.
674The
675.Ar command
676argument can be one of the following values:
677.Bl -tag -width indent
678.It Cm disable
679Disable patrol reads.
680.It Cm auto
681Enable periodic patrol reads initiated by the firmware.
682The optional
683.Ar interval
684argument specifies the interval in seconds between patrol reads.
685If patrol reads should be run continuously,
686then
687.Ar interval
688should consist of the word
689.Dq continuously .
690The optional
691.Ar start
692argument specifies a non-negative, relative start time for the next patrol read.
693If an interval or start time is not specified,
694then the existing setting will be used.
695.It Cm manual
696Enable manual patrol reads that are only initiated by the user.
697.El
698.It Cm start patrol
699Start a patrol read operation.
700.It Cm stop patrol
701Stop a currently running patrol read operation.
702.It Cm foreign scan
703Scan for foreign configurations and display the number found.
704The
705.Ar config
706argument for the commands below takes the form of a number from 0 to the total
707configurations found.
708.It Cm foreign clear Op config
709Clear the specified foreign
710.Ar config
711or all if no
712.Ar config
713argument is provided.
714.It Cm foreign diag Op config
715Display a diagnostic display of the specified foreign
716.Ar config
717or all if no
718.Ar config
719argument is provided.
720.It Cm foreign preview Op config
721Preview the specified foreign
722.Ar config
723after import or all if no
724.Ar config
725argument is provided.
726.It Cm foreign import Op config
727Import the specified foreign
728.Ar config
729or all if no
730.Ar config
731argument is provided.
732.It Cm flash Ar file
733Updates the flash on the controller with the firmware stored in
734.Ar file .
735A reboot is required for the new firmware to take effect.
736.It Cm start learn
737Start a battery relearn.
738Note that this seems to always result in the battery being completely drained,
739regardless of the BBU mode.
740In particular, the controller write cache will be disabled during the relearn
741even if transparent learning mode is enabled.
742.It Cm bbu Ar setting Ar value
743Update battery backup unit (BBU) properties related to battery relearning.
744The following settings are configurable:
745.Bl -tag -width indent
746.It Cm learn-delay
747Add a delay to the next scheduled battery relearn event.
748This setting is given in hours and must lie in the range of 0 to 255.
749.It Cm autolearn-mode
750Enable or disable automatic periodic battery relearning.
751The setting may be set to
752.Dq enable
753or
754.Dq disable
755to respectively enable or disable the relearn cycle.
756Alternatively, a mode of 0, 1 or 2 may be given.
757Mode 0 enables periodic relearning, mode 1 disables it, and mode 2 disables
758it and logs a warning to the event log when it detects that a battery relearn
759should be performed.
760.It Cm bbu-mode
761Set the BBU's mode of operation.
762This setting is not supported by all BBUs.
763Where it is supported, the possible values are the integers between 1 and 5
764inclusive.
765Modes 1, 2 and 3 enable a transparent learn cycle, whereas modes 4 and 5 do not.
766The BBU's data retention time is greater when transparent learning is not used.
767.El
768.It Cm ctrlprop Ar rebuild Op Ar rate
769With no arguments display the rate of rebuild (percentage)a for volumes.
770With an integer argument (0-100), set that value as the new rebuild rate for volumes.
771.It Cm ctrlprop Ar alarm Op Ar 0/1
772With no arguments display the current alarm enable/disable status.
773With a 0, disable alarms.
774With a 1, enable alarms.
775.El
776.Sh EXAMPLES
777Configure the cache for volume mfid0 to cache only writes:
778.Pp
779.Dl Nm Cm cache mfid0 writes
780.Dl Nm Cm cache mfid0 write-back
781.Pp
782Create a RAID5 array spanning the first four disks in the second enclosure:
783.Pp
784.Dl Nm Cm create raid5 e1:s0,e1:s1,e1:s2,e1:s4
785.Pp
786Configure the first three disks on a controller as JBOD:
787.Pp
788.Dl Nm Cm create jbod 0 1 2
789.Pp
790Create a RAID10 volume that spans two arrays each of which contains two disks
791from two different enclosures:
792.Pp
793.Dl Nm Cm create raid10 e1:s0,e1:s1 e2:s0,e2:s1
794.Pp
795Add drive with the device ID of 4 as a global hot spare:
796.Pp
797.Dl Nm Cm add 4
798.Pp
799Add the drive in slot 2 in the main chassis as a hot spare for volume mfid0:
800.Pp
801.Dl Nm Cm add s2 mfid0
802.Pp
803Reconfigure a disk as a SYSPD block device with no RAID
804.Pp
805.Dl Nm Cm syspd 0
806.Pp
807Configure the adapter to run periodic patrol reads once a week with the first
808patrol read starting in 5 minutes:
809.Pp
810.Dl Nm Cm patrol auto 604800 300
811.Pp
812Display the second detected foreign configuration:
813.Pp
814.Dl Nm Cm show foreign 1
815.Pp
816Set the current rebuild rate for volumes to 40%:
817.Dl Nm Cm ctrlprop rebuild 40
818.Sh SEE ALSO
819.Xr mfi 4 ,
820.Xr mrsas 4
821.Sh HISTORY
822The
823.Nm
824utility first appeared in
825.Fx 8.0 .
826