xref: /dflybsd-src/usr.sbin/mptutil/mptutil.8 (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
186d7f5d3SJohn Marino.\"
286d7f5d3SJohn Marino.\" Copyright (c) 2008 Yahoo!, Inc.
386d7f5d3SJohn Marino.\" All rights reserved.
486d7f5d3SJohn Marino.\" Written by: John Baldwin <jhb@FreeBSD.org>
586d7f5d3SJohn Marino.\"
686d7f5d3SJohn Marino.\" Redistribution and use in source and binary forms, with or without
786d7f5d3SJohn Marino.\" modification, are permitted provided that the following conditions
886d7f5d3SJohn Marino.\" are met:
986d7f5d3SJohn Marino.\" 1. Redistributions of source code must retain the above copyright
1086d7f5d3SJohn Marino.\"    notice, this list of conditions and the following disclaimer.
1186d7f5d3SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright
1286d7f5d3SJohn Marino.\"    notice, this list of conditions and the following disclaimer in the
1386d7f5d3SJohn Marino.\"    documentation and/or other materials provided with the distribution.
1486d7f5d3SJohn Marino.\" 3. Neither the name of the author nor the names of any co-contributors
1586d7f5d3SJohn Marino.\"    may be used to endorse or promote products derived from this software
1686d7f5d3SJohn Marino.\"    without specific prior written permission.
1786d7f5d3SJohn Marino.\"
1886d7f5d3SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1986d7f5d3SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2086d7f5d3SJohn Marino.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2186d7f5d3SJohn Marino.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2286d7f5d3SJohn Marino.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2386d7f5d3SJohn Marino.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2486d7f5d3SJohn Marino.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2586d7f5d3SJohn Marino.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2686d7f5d3SJohn Marino.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2786d7f5d3SJohn Marino.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2886d7f5d3SJohn Marino.\" SUCH DAMAGE.
2986d7f5d3SJohn Marino.\"
3086d7f5d3SJohn Marino.\" $FreeBSD: src/usr.sbin/mptutil/mptutil.8,v 1.6 2010/08/01 09:37:36 joel Exp $
3186d7f5d3SJohn Marino.\"
3286d7f5d3SJohn Marino.Dd April 28, 2011
3386d7f5d3SJohn Marino.Dt MPTUTIL 8
3486d7f5d3SJohn Marino.Os
3586d7f5d3SJohn Marino.Sh NAME
3686d7f5d3SJohn Marino.Nm mptutil
3786d7f5d3SJohn Marino.Nd Utility for managing LSI Fusion-MPT controllers
3886d7f5d3SJohn Marino.Sh SYNOPSIS
3986d7f5d3SJohn Marino.Nm
4086d7f5d3SJohn Marino.Cm version
4186d7f5d3SJohn Marino.Nm
4286d7f5d3SJohn Marino.Op Fl u Ar unit
4386d7f5d3SJohn Marino.Cm show adapter
4486d7f5d3SJohn Marino.Nm
4586d7f5d3SJohn Marino.Op Fl u Ar unit
4686d7f5d3SJohn Marino.Cm show config
4786d7f5d3SJohn Marino.Nm
4886d7f5d3SJohn Marino.Op Fl u Ar unit
4986d7f5d3SJohn Marino.Cm show drives
5086d7f5d3SJohn Marino.Nm
5186d7f5d3SJohn Marino.Op Fl u Ar unit
5286d7f5d3SJohn Marino.Cm show events
5386d7f5d3SJohn Marino.Nm
5486d7f5d3SJohn Marino.Op Fl u Ar unit
5586d7f5d3SJohn Marino.Cm show volumes
5686d7f5d3SJohn Marino.Nm
5786d7f5d3SJohn Marino.Op Fl u Ar unit
5886d7f5d3SJohn Marino.Cm fail Ar drive
5986d7f5d3SJohn Marino.Nm
6086d7f5d3SJohn Marino.Op Fl u Ar unit
6186d7f5d3SJohn Marino.Cm online Ar drive
6286d7f5d3SJohn Marino.Nm
6386d7f5d3SJohn Marino.Op Fl u Ar unit
6486d7f5d3SJohn Marino.Cm offline Ar drive
6586d7f5d3SJohn Marino.Nm
6686d7f5d3SJohn Marino.Op Fl u Ar unit
6786d7f5d3SJohn Marino.Cm name Ar volume Ar name
6886d7f5d3SJohn Marino.Nm
6986d7f5d3SJohn Marino.Op Fl u Ar unit
7086d7f5d3SJohn Marino.Cm volume status Ar volume
7186d7f5d3SJohn Marino.Nm
7286d7f5d3SJohn Marino.Op Fl u Ar unit
7386d7f5d3SJohn Marino.Cm volume cache Ar volume
7486d7f5d3SJohn Marino.Ar enable|disable
7586d7f5d3SJohn Marino.Nm
7686d7f5d3SJohn Marino.Op Fl u Ar unit
7786d7f5d3SJohn Marino.Cm clear
7886d7f5d3SJohn Marino.Nm
7986d7f5d3SJohn Marino.Op Fl u Ar unit
8086d7f5d3SJohn Marino.Cm create Ar type
8186d7f5d3SJohn Marino.Op Fl q
8286d7f5d3SJohn Marino.Op Fl v
8386d7f5d3SJohn Marino.Op Fl s Ar stripe_size
8486d7f5d3SJohn Marino.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
8586d7f5d3SJohn Marino.Nm
8686d7f5d3SJohn Marino.Op Fl u Ar unit
8786d7f5d3SJohn Marino.Cm delete Ar volume
8886d7f5d3SJohn Marino.Nm
8986d7f5d3SJohn Marino.Op Fl u Ar unit
9086d7f5d3SJohn Marino.Cm add Ar drive Op Ar volume
9186d7f5d3SJohn Marino.Nm
9286d7f5d3SJohn Marino.Op Fl u Ar unit
9386d7f5d3SJohn Marino.Cm remove Ar drive
9486d7f5d3SJohn Marino.Sh DESCRIPTION
9586d7f5d3SJohn MarinoThe
9686d7f5d3SJohn Marino.Nm
9786d7f5d3SJohn Marinoutility can be used to display or modify various parameters on LSI
9886d7f5d3SJohn MarinoFusion-MPT controllers.
9986d7f5d3SJohn MarinoEach invocation of
10086d7f5d3SJohn Marino.Nm
10186d7f5d3SJohn Marinoconsists of zero or more global options followed by a command.
10286d7f5d3SJohn MarinoCommands may support additional optional or required arguments after the
10386d7f5d3SJohn Marinocommand.
10486d7f5d3SJohn Marino.Pp
10586d7f5d3SJohn MarinoCurrently one global option is supported:
10686d7f5d3SJohn Marino.Bl -tag -width indent
10786d7f5d3SJohn Marino.It Fl u Ar unit
10886d7f5d3SJohn Marino.Ar unit
10986d7f5d3SJohn Marinospecifies the unit of the controller to work with.
11086d7f5d3SJohn MarinoIf no unit is specified,
11186d7f5d3SJohn Marinothen unit 0 is used.
11286d7f5d3SJohn Marino.El
11386d7f5d3SJohn Marino.Pp
11486d7f5d3SJohn MarinoVolumes may be specified in two forms.
11586d7f5d3SJohn MarinoFirst,
11686d7f5d3SJohn Marinoa volume may be identified by its location as
11786d7f5d3SJohn Marino.Sm off
11886d7f5d3SJohn Marino.Op Ar xx Ns \&:
11986d7f5d3SJohn Marino.Ar yy
12086d7f5d3SJohn Marino.Sm on
12186d7f5d3SJohn Marinowhere
12286d7f5d3SJohn Marino.Ar xx
12386d7f5d3SJohn Marinois the bus ID and
12486d7f5d3SJohn Marino.Ar yy
12586d7f5d3SJohn Marinois the target ID.
12686d7f5d3SJohn MarinoIf the bus ID is omitted,
12786d7f5d3SJohn Marinothe volume is assumed to be on bus 0.
12886d7f5d3SJohn MarinoSecond,
12986d7f5d3SJohn Marinoon the volume may be specified by the corresponding
13086d7f5d3SJohn Marino.Em daX
13186d7f5d3SJohn Marinodevice,
13286d7f5d3SJohn Marinosuch as
13386d7f5d3SJohn Marino.Em da0 .
13486d7f5d3SJohn Marino.Pp
13586d7f5d3SJohn MarinoThe
13686d7f5d3SJohn Marino.Xr mpt 4
13786d7f5d3SJohn Marinocontroller divides drives up into two categories.
13886d7f5d3SJohn MarinoConfigured drives belong to a RAID volume either as a member drive or as a hot
13986d7f5d3SJohn Marinospare.
14086d7f5d3SJohn MarinoEach configured drive is assigned a unique device ID such as 0 or 1 that is
14186d7f5d3SJohn Marinoshow in
14286d7f5d3SJohn Marino.Cm show config ,
14386d7f5d3SJohn Marinoand in the first column of
14486d7f5d3SJohn Marino.Cm show drives .
14586d7f5d3SJohn MarinoAny drive not associated with a RAID volume as either a member or a hot spare
14686d7f5d3SJohn Marinois a standalone drive.
14786d7f5d3SJohn MarinoStandalone drives are visible to the operating system as SCSI disk devices.
14886d7f5d3SJohn MarinoAs a result, drives may be specified in three forms.
14986d7f5d3SJohn MarinoFirst,
15086d7f5d3SJohn Marinoa configured drive may be identified by its device ID.
15186d7f5d3SJohn MarinoSecond,
15286d7f5d3SJohn Marinoany drive may be identified by its location as
15386d7f5d3SJohn Marino.Sm off
15486d7f5d3SJohn Marino.Ar xx Ns \&:
15586d7f5d3SJohn Marino.Ar yy
15686d7f5d3SJohn Marino.Sm on
15786d7f5d3SJohn Marinowhere
15886d7f5d3SJohn Marino.Ar xx
15986d7f5d3SJohn Marinois the bus ID and
16086d7f5d3SJohn Marino.Ar yy
16186d7f5d3SJohn Marinois the target ID for each drive as displayed in
16286d7f5d3SJohn Marino.Cm show drives .
16386d7f5d3SJohn MarinoNote that unlike volumes,
16486d7f5d3SJohn Marinoa drive location always requires the bus ID to avoid confusion with device IDs.
16586d7f5d3SJohn MarinoThird,
16686d7f5d3SJohn Marinoa standalone drive that is not part of a volume may be identified by its
16786d7f5d3SJohn Marinocorresponding
16886d7f5d3SJohn Marino.Em daX
16986d7f5d3SJohn Marinodevice as displayed in
17086d7f5d3SJohn Marino.Cm show drives .
17186d7f5d3SJohn Marino.Pp
17286d7f5d3SJohn MarinoThe
17386d7f5d3SJohn Marino.Nm
17486d7f5d3SJohn Marinoutility supports several different groups of commands.
17586d7f5d3SJohn MarinoThe first group of commands provide information about the controller,
17686d7f5d3SJohn Marinothe volumes it manages, and the drives it controls.
17786d7f5d3SJohn MarinoThe second group of commands are used to manage the physical drives
17886d7f5d3SJohn Marinoattached to the controller.
17986d7f5d3SJohn MarinoThe third group of commands are used to manage the logical volumes
18086d7f5d3SJohn Marinomanaged by the controller.
18186d7f5d3SJohn MarinoThe fourth group of commands are used to manage the drive configuration for
18286d7f5d3SJohn Marinothe controller.
18386d7f5d3SJohn Marino.Pp
18486d7f5d3SJohn MarinoThe informational commands include:
18586d7f5d3SJohn Marino.Bl -tag -width indent
18686d7f5d3SJohn Marino.It Cm version
18786d7f5d3SJohn MarinoDisplays the version of
18886d7f5d3SJohn Marino.Nm .
18986d7f5d3SJohn Marino.It Cm show adapter
19086d7f5d3SJohn MarinoDisplays information about the RAID controller such as the model number.
19186d7f5d3SJohn Marino.It Cm show config
19286d7f5d3SJohn MarinoDisplays the volume and drive configuration for the controller.
19386d7f5d3SJohn MarinoEach volume is listed along with the physical drives that the volume spans.
19486d7f5d3SJohn MarinoIf any hot spare drives are configured, then they are listed as well.
19586d7f5d3SJohn Marino.It Cm show drives
19686d7f5d3SJohn MarinoLists all of the physical drives attached to the controller.
19786d7f5d3SJohn Marino.It Cm show events
19886d7f5d3SJohn MarinoDisplay all the entries from the controller's event log.
19986d7f5d3SJohn MarinoDue to lack of documentation this command isn't very useful currently and
20086d7f5d3SJohn Marinojust dumps each log entry in hex.
20186d7f5d3SJohn Marino.It Cm show volumes
20286d7f5d3SJohn MarinoLists all of the logical volumes managed by the controller.
20386d7f5d3SJohn Marino.El
20486d7f5d3SJohn Marino.Pp
20586d7f5d3SJohn MarinoThe physical drive management commands include:
20686d7f5d3SJohn Marino.Bl -tag -width indent
20786d7f5d3SJohn Marino.It Cm fail Ar drive
20886d7f5d3SJohn MarinoMark
20986d7f5d3SJohn Marino.Ar drive
21086d7f5d3SJohn Marinoas
21186d7f5d3SJohn Marino.Dq failed requested .
21286d7f5d3SJohn MarinoNote that this state is different from the
21386d7f5d3SJohn Marino.Dq failed
21486d7f5d3SJohn Marinostate that is used when the firmware fails a drive.
21586d7f5d3SJohn Marino.Ar Drive
21686d7f5d3SJohn Marinomust be a configured drive.
21786d7f5d3SJohn Marino.It Cm online Ar drive
21886d7f5d3SJohn MarinoMark
21986d7f5d3SJohn Marino.Ar drive
22086d7f5d3SJohn Marinoas an online drive.
22186d7f5d3SJohn Marino.Ar Drive
22286d7f5d3SJohn Marinomust be part a configured drive in either the
22386d7f5d3SJohn Marino.Dq offline
22486d7f5d3SJohn Marinoor
22586d7f5d3SJohn Marino.Dq failed requested
22686d7f5d3SJohn Marinostates.
22786d7f5d3SJohn Marino.It Cm offline Ar drive
22886d7f5d3SJohn MarinoMark
22986d7f5d3SJohn Marino.Ar drive
23086d7f5d3SJohn Marinoas offline.
23186d7f5d3SJohn Marino.Ar Drive
23286d7f5d3SJohn Marinomust be a configured, online drive.
23386d7f5d3SJohn Marino.El
23486d7f5d3SJohn Marino.Pp
23586d7f5d3SJohn MarinoThe logical volume management commands include:
23686d7f5d3SJohn Marino.Bl -tag -width indent
23786d7f5d3SJohn Marino.It Cm name Ar volume Ar name
23886d7f5d3SJohn MarinoSets the name of
23986d7f5d3SJohn Marino.Ar volume
24086d7f5d3SJohn Marinoto
24186d7f5d3SJohn Marino.Ar name .
24286d7f5d3SJohn Marino.It Cm volume cache Ar volume Ar enable|disable
24386d7f5d3SJohn MarinoEnables or disables the drive write cache for the member drives of
24486d7f5d3SJohn Marino.Ar volume .
24586d7f5d3SJohn Marino.It Cm volume status Ar volume
24686d7f5d3SJohn MarinoDisplay more detailed status about a single volume including the current
24786d7f5d3SJohn Marinoprogress of a rebuild operation if one is being performed.
24886d7f5d3SJohn Marino.El
24986d7f5d3SJohn Marino.Pp
25086d7f5d3SJohn MarinoThe configuration commands include:
25186d7f5d3SJohn Marino.Bl -tag -width indent
25286d7f5d3SJohn Marino.It Cm clear
25386d7f5d3SJohn MarinoDelete the entire configuration including all volumes and spares.
25486d7f5d3SJohn MarinoAll drives will become standalone drives.
25586d7f5d3SJohn Marino.It Xo Cm create Ar type
25686d7f5d3SJohn Marino.Op Fl q
25786d7f5d3SJohn Marino.Op Fl v
25886d7f5d3SJohn Marino.Op Fl s Ar stripe_size
25986d7f5d3SJohn Marino.Ar drive Ns Op \&, Ns Ar drive Ns Op ",..."
26086d7f5d3SJohn Marino.Xc
26186d7f5d3SJohn MarinoCreate a new volume.
26286d7f5d3SJohn MarinoThe
26386d7f5d3SJohn Marino.Ar type
26486d7f5d3SJohn Marinospecifies the type of volume to create.
26586d7f5d3SJohn MarinoCurrently supported types include:
26686d7f5d3SJohn Marino.Bl -tag -width indent
26786d7f5d3SJohn Marino.It Cm raid0
26886d7f5d3SJohn MarinoCreates one RAID0 volume spanning the drives listed in the single drive list.
26986d7f5d3SJohn Marino.It Cm raid1
27086d7f5d3SJohn MarinoCreates one RAID1 volume spanning the drives listed in the single drive list.
27186d7f5d3SJohn Marino.It Cm raid1e
27286d7f5d3SJohn MarinoCreates one RAID1E volume spanning the drives listed in the single drive list.
27386d7f5d3SJohn Marino.El
27486d7f5d3SJohn Marino.Pp
27586d7f5d3SJohn Marino.Sy Note:
27686d7f5d3SJohn MarinoNot all volume types are supported by all controllers.
27786d7f5d3SJohn Marino.Pp
27886d7f5d3SJohn MarinoIf the
27986d7f5d3SJohn Marino.Fl q
28086d7f5d3SJohn Marinoflag is specified after
28186d7f5d3SJohn Marino.Ar type ,
28286d7f5d3SJohn Marinothen a
28386d7f5d3SJohn Marino.Dq quick
28486d7f5d3SJohn Marinoinitialization of the volume will be done.
28586d7f5d3SJohn MarinoThis is useful when the drives do not contain any existing data that need
28686d7f5d3SJohn Marinoto be preserved.
28786d7f5d3SJohn Marino.Pp
28886d7f5d3SJohn MarinoIf the
28986d7f5d3SJohn Marino.Fl v
29086d7f5d3SJohn Marinoflag is specified after
29186d7f5d3SJohn Marino.Ar type ,
29286d7f5d3SJohn Marinothen more verbose output will be enabled.
29386d7f5d3SJohn MarinoCurrently this just provides notification as drives are added to volumes
29486d7f5d3SJohn Marinowhen building the configuration.
29586d7f5d3SJohn Marino.Pp
29686d7f5d3SJohn MarinoThe
29786d7f5d3SJohn Marino.Fl s
29886d7f5d3SJohn Marino.Ar stripe_size
29986d7f5d3SJohn Marinoparameter allows the stripe size of the array to be set.
30086d7f5d3SJohn MarinoBy default a stripe size of 64K is used.
30186d7f5d3SJohn MarinoThe list of valid values for a given
30286d7f5d3SJohn Marino.Ar type
30386d7f5d3SJohn Marinoare listed in the output of
30486d7f5d3SJohn Marino.Cm show adapter .
30586d7f5d3SJohn Marino.It Cm delete Ar volume
30686d7f5d3SJohn MarinoDelete the volume
30786d7f5d3SJohn Marino.Ar volume .
30886d7f5d3SJohn MarinoMember drives will become standalone drives.
30986d7f5d3SJohn Marino.It Cm add Ar drive Op Ar volume
31086d7f5d3SJohn MarinoMark
31186d7f5d3SJohn Marino.Ar drive
31286d7f5d3SJohn Marinoas a hot spare.
31386d7f5d3SJohn Marino.Ar Drive
31486d7f5d3SJohn Marinomust not be a member of a volume.
31586d7f5d3SJohn MarinoIf
31686d7f5d3SJohn Marino.Ar volume
31786d7f5d3SJohn Marinois specified,
31886d7f5d3SJohn Marinothen the hot spare will be dedicated to that volume.
31986d7f5d3SJohn MarinoOtherwise,
32086d7f5d3SJohn Marino.Ar drive
32186d7f5d3SJohn Marinowill be used as a global hot spare backing all volumes for this controller.
32286d7f5d3SJohn MarinoNote that
32386d7f5d3SJohn Marino.Ar drive
32486d7f5d3SJohn Marinomust be as large as the smallest drive in all of the volumes it is going to
32586d7f5d3SJohn Marinoback.
32686d7f5d3SJohn Marino.It Cm remove Ar drive
32786d7f5d3SJohn MarinoRemove the hot spare
32886d7f5d3SJohn Marino.Ar drive
32986d7f5d3SJohn Marinofrom service.
33086d7f5d3SJohn MarinoIt will become a standalone drive.
33186d7f5d3SJohn Marino.El
33286d7f5d3SJohn Marino.Sh EXAMPLES
33386d7f5d3SJohn MarinoMark the drive at bus 0 target 4 as offline:
33486d7f5d3SJohn Marino.Pp
33586d7f5d3SJohn Marino.Dl Nm Cm offline 0:4
33686d7f5d3SJohn Marino.Pp
33786d7f5d3SJohn MarinoCreate a RAID1 array from the two standalone drives
33886d7f5d3SJohn Marino.Va da1
33986d7f5d3SJohn Marinoand
34086d7f5d3SJohn Marino.Va da2 :
34186d7f5d3SJohn Marino.Pp
34286d7f5d3SJohn Marino.Dl Nm Cm create raid1 da1,da2
34386d7f5d3SJohn Marino.Pp
34486d7f5d3SJohn MarinoMark standalone drive
34586d7f5d3SJohn Marino.Va da3
34686d7f5d3SJohn Marinoas a global hot spare:
34786d7f5d3SJohn Marino.Pp
34886d7f5d3SJohn Marino.Dl Nm Cm add da3
34986d7f5d3SJohn Marino.Sh SEE ALSO
35086d7f5d3SJohn Marino.Xr mpt 4
35186d7f5d3SJohn Marino.Sh HISTORY
35286d7f5d3SJohn MarinoThe
35386d7f5d3SJohn Marino.Nm
35486d7f5d3SJohn Marinoutility first appeared in
35586d7f5d3SJohn Marino.Fx 8.0 .
35686d7f5d3SJohn Marino.Sh BUGS
35786d7f5d3SJohn MarinoThe handling of spare drives appears to be unreliable.
35886d7f5d3SJohn MarinoThe
35986d7f5d3SJohn Marino.Xr mpt 4
36086d7f5d3SJohn Marinofirmware manages spares via spare drive
36186d7f5d3SJohn Marino.Dq pools .
36286d7f5d3SJohn MarinoThere are eight pools numbered 0 through 7.
36386d7f5d3SJohn MarinoEach spare drive can only be assigned to a single pool.
36486d7f5d3SJohn MarinoEach volume can be backed by any combination of zero or more spare pools.
36586d7f5d3SJohn MarinoThe
36686d7f5d3SJohn Marino.Nm
36786d7f5d3SJohn Marinoutility attempts to use the following algorithm for managing spares.
36886d7f5d3SJohn MarinoGlobal spares are always assigned to pool 0,
36986d7f5d3SJohn Marinoand all volumes are always backed by pool 0.
37086d7f5d3SJohn MarinoFor dedicated spares,
37186d7f5d3SJohn Marino.Nm
37286d7f5d3SJohn Marinoassigns one of the remaining 7 pools to each volume and
37386d7f5d3SJohn Marinoassigns dedicated drives to that pool.
37486d7f5d3SJohn MarinoIn practice however, it seems that assigning a drive as a spare does not
37586d7f5d3SJohn Marinotake effect until the box has been rebooted.
37686d7f5d3SJohn MarinoAlso, the firmware renumbers the spare pool assignments after a reboot
37786d7f5d3SJohn Marinowhich undoes the effects of the algorithm above.
37886d7f5d3SJohn MarinoSimple cases such as assigning global spares seem to work ok
37986d7f5d3SJohn Marino.Pq albeit requiring a reboot to take effect
38086d7f5d3SJohn Marinobut more
38186d7f5d3SJohn Marino.Dq exotic
38286d7f5d3SJohn Marinoconfigurations may not work reliably.
38386d7f5d3SJohn Marino.Pp
38486d7f5d3SJohn MarinoDrive configuration commands result in an excessive flood of messages on the
38586d7f5d3SJohn Marinoconsole.
38686d7f5d3SJohn Marino.Pp
38786d7f5d3SJohn MarinoThe mpt version 1 API that is used by
38886d7f5d3SJohn Marino.Nm
38986d7f5d3SJohn Marinoand
39086d7f5d3SJohn Marino.Xr mpt 4
39186d7f5d3SJohn Marinodoesn't support volumes above two terabytes.
39286d7f5d3SJohn MarinoThis is a limitation of the API.
39386d7f5d3SJohn MarinoIf you are using this adapter with volumes larger than two terabytes, use the adapter in JBOD mode.
39486d7f5d3SJohn MarinoUtilize
39586d7f5d3SJohn Marino.Xr lvm 8
39686d7f5d3SJohn Marinoor another software volume manager to work around this limitation.
397