Move /var/svc/log to /var/log/svc
[unleashed/lotheac.git] / share / man / man8 / mpathadm.8
blob9d2f317c76f90198447ba580634a0e780c318bdc
1 '\" te
2 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH MPATHADM 8 "May 4, 2009"
7 .SH NAME
8 mpathadm \- multipath discovery and administration
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBmpathadm\fR \fIsubcommand\fR \fIdirect-object\fR [\fIoptions\fR] [\fIoperand\fR]
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 The \fBmpathadm\fR command enables multipathing discovery and management. The
19 \fBmpathadm\fR command is implemented as a set of subcommands, many with their
20 own options, that are described in the section for that subcommand. Options not
21 associated with a particular subcommand are described under OPTIONS. The
22 \fBmpathadm\fR subcommands operate on a \fIdirect-object\fR. These are
23 described in this section for each subcommand. The \fIdirect-objects\fR,
24 \fIinitiator-port\fR, \fItarget-port\fR, and\fIlogical-unit\fR in the
25 subcommands are consistent with SCSI standard definitions.
26 .sp
27 .LP
28 The \fBmpathadm\fR command supports the following subcommands, which are
29 described in detail in subsections that follow.
30 .sp
31 .ne 2
32 .na
33 \fB\fBlist\fR\fR
34 .ad
35 .RS 12n
36 Display a list of discovered instances for a given object.
37 .RE
39 .sp
40 .ne 2
41 .na
42 \fB\fBshow\fR\fR
43 .ad
44 .RS 12n
45 Display information about a given object instance.
46 .RE
48 .sp
49 .ne 2
50 .na
51 \fB\fBmodify\fR\fR
52 .ad
53 .RS 12n
54 Modify properties of an object.
55 .RE
57 .sp
58 .ne 2
59 .na
60 \fB\fBenable\fR\fR
61 .ad
62 .RS 12n
63 Enable an object.
64 .RE
66 .sp
67 .ne 2
68 .na
69 \fB\fBdisable\fR\fR
70 .ad
71 .RS 12n
72 Disable an object.
73 .RE
75 .sp
76 .ne 2
77 .na
78 \fB\fBfailover\fR\fR
79 .ad
80 .RS 12n
81 Cause target port group failover for a logical-unit.
82 .RE
84 .sp
85 .ne 2
86 .na
87 \fB\fBoverride\fR\fR
88 .ad
89 .RS 12n
90 Set a path to be used over other paths on a logical-unit.
91 .RE
93 .sp
94 .LP
95 The \fBmpathadm\fR subcommands operate on a \fIdirect-object\fR. These are
96 described in this section for each subcommand.
97 .SS "list Subcommand"
98 .sp
99 .LP
100 The syntax for the \fBlist\fR subcommand is:
102 .in +2
104 # mpathadm list \fIdirect-object\fR [\fIoperands\fR...]
106 .in -2
110 The \fBlist\fR subcommand displays data for following direct-objects:
112 .ne 2
114 \fB\fBmpath-support\fR [\fImpath-support-name\fR, ...]\fR
116 .sp .6
117 .RS 4n
118 List the multipathing support that can be administered by this CLI. This
119 presents itself in the form of a library name registered through the MPAPI
120 framework. If no mpath-support name \fImpath-support-name\fR is specified, all
121 registered multipathing support libraries will be displayed.
125 .ne 2
127 \fB\fBinitiator-port\fR [\fIinitiator-port-name\fR, ...]\fR
129 .sp .6
130 .RS 4n
131 List the initiator ports that are discovered on this system. If no
132 \fIinitiator-port-name\fR is specified, all discovered initiator ports are
133 displayed.
137 .ne 2
139 \fB{\fBlogical-unit\fR | \fBlu\fR} [\fIoptions\fR]
140 [\fIlogical-unit-name\fR, ...]\fR
142 .sp .6
143 .RS 4n
144 List the information on multipath logical units. If no \fIlogical-unit-name\fR
145 is specified, all discovered logical-units will be displayed.
147 Options for \fBlist logical-unit\fR are as follows:
149 .ne 2
151 \fB\fB-n\fR, \fB-\fR\fB-name\fR \fIname\fR\fR
153 .sp .6
154 .RS 4n
155 Return the logical unit name that is associated with the given name string.
156 This name can be extracted from the output of the \fBmpathadm\fR \fBshow lu\fR
157 command.
161 .ne 2
163 \fB\fB-t\fR, \fB-\fR\fB-target-port\fR \fItarget-port-name\fR\fR
165 .sp .6
166 .RS 4n
167 Return the list of logical units names that are associated with the given
168 \fItarget-port-name\fR.
173 .SS "\fBshow\fR Subcommand"
176 The syntax for the \fBshow\fR subcommand is:
178 .in +2
180 # mpathadm show \fIdirect-object\fR [\fIoperands\fR...]
182 .in -2
186 The \fBshow\fR subcommand displays detailed information for following the
187 direct-objects:
189 .ne 2
191 \fB\fBmpath-support\fR [\fImpath-support-name\fR, ...]\fR
193 .sp .6
194 .RS 4n
195 Show the detailed information on the given \fImpath-support-name\fR if the name
196 exists. If the given \fImpath-support-name\fR supports only a limited set of
197 device products, the list of device products will be listed as part of the
198 output.
202 .ne 2
204 \fB\fBinitiator-port\fR
205 \fIinitiator-port-name\fR[,\fIinitiator-port-name\fR, ...]\fR
207 .sp .6
208 .RS 4n
209 Show the detailed information for the given \fIinitiator-port-name\fR.
213 .ne 2
215 \fB{\fBlogical-unit\fR | \fBlu\fR} [\fIlogical-unit-name\fR, ...]\fR
217 .sp .6
218 .RS 4n
219 Display the detailed information on multipath logical unit(s), including path
220 and target port group information. Note that the name property in the logical
221 unit information represents the identifier for this LUN, derived from the
222 hardware, and used by this system. If the name is derived from SCSI Inquiry
223 Vital Product Data (VPD) page 83h, the name type property represents an
224 associated identifier type defined by the SCSI standards.
227 .SS "\fBmodify\fR Subcommand"
230 The syntax for the \fBmodify\fR subcommand is:
232 .in +2
234 # mpathadm modify \fIdirect-object\fR [\fIoptions\fR] [\fIoperands\fR...]
236 .in -2
240 The \fBmodify\fR subcommand modifies characteristics of the following
241 direct-objects:
243 .ne 2
245 \fB\fBmpath-support\fR [\fIoptions\fR] \fImpath-support-name\fR, ...\fR
247 .sp .6
248 .RS 4n
249 Configuration management of an \fImpath-support\fR. Options to modify
250 mpath-support are as follows:
252 .ne 2
254 \fB\fB-a\fR, \fB-\fR\fB-autofailback\fR on | off\fR
256 .sp .6
257 .RS 4n
258 Set \fBautofailback\fR. Applicable only when mpath-support provides auto
259 failback support.
263 .ne 2
265 \fB\fB-p\fR, \fB-\fR\fB-autoprobe\fR on | off\fR
267 .sp .6
268 .RS 4n
269 Set \fBautoprobing\fR. Applicable only when mpath-support provides auto probing
270 support.
274 .ne 2
276 \fB\fB-b\fR, \fB-\fR\fB-loadbalance\fR loadbalance-type\fR
278 .sp .6
279 .RS 4n
280 Change the default load balance type. The \fBloadbalance\fR type is one of the
281 supported types listed in the \fBshow mpath-support\fR output.
287 .ne 2
289 \fB{\fBlogical-unit\fR | \fBlu\fR} [\fIoptions\fR]
290 \fIlogical-unit-name\fR, ...\fR
292 .sp .6
293 .RS 4n
294 Configuration management of a logical unit. Options to modify
295 \fBlogical-unit\fR are as follows:
297 .ne 2
299 \fB\fB-a\fR, \fB-\fR\fB-autofailback\fR on | off\fR
301 .sp .6
302 .RS 4n
303 Set \fBautofailback\fR. Applicable only when \fBmpath-support\fR provides auto
304 failback support
308 .ne 2
310 \fB\fB-p\fR, \fB-\fR\fB-autoprobe\fR on | off\fR
312 .sp .6
313 .RS 4n
314 Set \fBautoprobing\fR. Applicable only when \fBmpath-support\fR provides auto
315 probing support.
319 .ne 2
321 \fB\fB-b\fR, \fB-\fR\fB-loadbalance\fR loadbalance-type\fR
323 .sp .6
324 .RS 4n
325 Set load balance type for the logical unit. Applicable only when load balance
326 configuration is supported at the logical unit level.
331 .SS "\fBenable\fR Subcommand"
334 The syntax for the \fBenable\fR subcommand is:
336 .in +2
338 # mpathadm disable [\fIoptions\fR]
340 .in -2
344 The \fBenable\fR subcommand supports the following direct-objects to be
345 enabled:
347 .ne 2
349 \fB\fBpath\fR \fB-i\fR \fIinitiator-port-name\fR \fB-t\fR
350 \fItarget-port-name\fR\fR
354 \fB\fB-l\fR \fIlogical-unit-name\fR\fR
356 .sp .6
357 .RS 4n
358 The path that consists of the specified initiator port, target port, and
359 logical unit will be enabled.
362 .SS "\fBdisable\fR Subcommand"
365 The syntax for the \fBdisable\fR subcommand is:
367 .in +2
369 # mpathadm disable [\fIoptions\fR]
371 .in -2
375 The \fBdisable\fR subcommand supports the following direct-objects to be
376 disabled:
378 .ne 2
380 \fB\fBpath\fR \fB-i\fR \fIinitiator-port-name\fR \fB-t\fR
381 \fItarget-port-name\fR\fR
385 \fB\fB-l\fR \fIlogical-unit-name\fR\fR
387 .sp .6
388 .RS 4n
389 The path that consists of the specified initiator port, target port, and
390 logical unit will be disabled.
393 .SS "\fBfailover\fR Subcommand"
396 The syntax for the \fBfailover\fR subcommand is:
398 .in +2
400 # mpathadm failover \fIdirect-object\fR [\fIoperand\fR]
402 .in -2
406 The \fBfailover\fR subcommand supports failover for the following
407 direct-objects:
409 .ne 2
411 \fB{\fBlogical-unit\fR | \fBlu\fR} \fIlogical-unit-name\fR\fR
413 .sp .6
414 .RS 4n
415 The target port group will failover when the given logical-unit is asymmetric
416 and supports explicit state change. The currently active target port group will
417 be changed to the standby state and the standby target port group will be
418 active.
421 .SS "\fBoverride\fR Subcommand"
424 The syntax for the \fBoverride\fR subcommand is:
426 .in +2
428 # mpathadm override [\fIoptions\fR]
430 .in -2
434 The \fBoverride\fR subcommand controls whether or not the following
435 direct-objects override another:
437 .ne 2
439 \fBpath {\fB-i\fR \fIinitiator-port-name\fR \fB-t\fR \fItarget-port-name\fR |
440 \fB-c\fR}\fR
444 \fB\fB-l\fR \fIlogical-unit-name\fR\fR
446 .sp .6
447 .RS 4n
448 Cause a path that consists of the specified initiator port, target port, and
449 logical unit to override other paths on the logical unit. Once a path overrides
450 other paths, the mpath-support uses only that path regardless of any other path
451 selection configuration. The \fB-c\fR option cancels the setting. The path that
452 consists of the specified initiator port, target port, and logical unit will be
453 disabled.
455 Options for override path are as follows:
457 .ne 2
459 \fB\fB-i\fR, \fB-\fR\fB-initiator-port\fR \fIinitiator-port-name\fR\fR
461 .sp .6
462 .RS 4n
463 Represent the initiator port element of a path. Options \fB-t\fR and \fB-l\fR
464 must also be included.
468 .ne 2
470 \fB\fB-t\fR, \fB-\fR\fB-target-port\fR \fItarget-port-name\fR\fR
472 .sp .6
473 .RS 4n
474 Represent the target port element of a path. Options \fB-i\fR and \fB-l\fR must
475 also be included.
479 .ne 2
481 \fB\fB-l\fR, \fB-\fR\fB-logical-unit\fR \fIlogical-unit\fR\fR
483 .sp .6
484 .RS 4n
485 Represent the logical unit element of a path. Options \fB-i\fR and \fB-t\fR
486 must also be included.
490 .ne 2
492 \fB\fB-c\fR, \fB-\fR\fB-cancel\fR\fR
494 .sp .6
495 .RS 4n
496 Cancels overriding setting for the given logical unit. Option \fB-l\fR must
497 also be included.
502 .SH OPTIONS
505 The following options are supported:
507 .ne 2
509 \fB\fB-V\fR, \fB-\fR\fB-version\fR\fR
511 .RS 17n
512 Display the version information.
516 .ne 2
518 \fB\fB-?\fR, \fB-\fR\fB-help\fR\fR
520 .RS 17n
521 Display context help. Can be used following an \fBmpathadm\fR command with no
522 arguments, following a subcommand, or following a subcommand direct-object
523 combination. Responds with help information appropriate for your entry. For
524 example, if you enter:
526 .in +2
528 # \fBmpathadm add mpath-support-help\fR
530 .in -2
533 \&... \fBmpathadm\fR responds with a display of the options available for that
534 combination of subcommand and direct-object.
537 .SH EXAMPLES
539 \fBExample 1 \fRObtaining a List of Multipathing Support
542 The following command uses the \fBlist\fR subcommand to list all currently
543 registered \fBmpath-support\fR libraries.
546 .in +2
548 # \fBmpathadm list mpath-support\fR
549 mpath-support: libmpscsi_vhci.so
551 .in -2
555 \fBExample 2 \fRDisplaying the Properties of a Particular Multipathing Support
558 The following command uses the \fBshow\fR subcommand to display the properties
559 for a currently registered \fBmpath-support\fR library.
562 .in +2
564 # \fBmpathadm show mpath-support libmpscsi_vhci.so\fR
565 mpath-support:  libmpscsi_vhci.so
566        Vendor:  Sun Microsystems
567        Driver Name:  scsi_vhci
568        Default Load Balance:  round-robin
569        Supported Load Balance Types:
570               round-robin
571               logical-block
572 Allows To Activate Target Port Group Access:  yes
573 Allows Path Override:  no
574 Supported Auto Failback Config:  1
575 Auto Failback:  on
576 Failback Polling Rate (current/max):  0/0
577 Supported Auto Probing Config:  0
578 Auto Probing:  NA
579 Probing Polling Rate (current/max):  NA/NA
580 Supported Devices:
581        Vendor:   SUN
582        Product:  T300
583        Revision:
584        Supported Load Balance Types:
585               round-robin
586        Vendor:   SUN
587        Product:  T4
588        Revision:
589        Supported Load Balance Types:
590               round-robin
592 .in -2
596 \fBExample 3 \fRObtaining a List of Initiator Ports Discovered Through the
597 \fBmpath-support\fR Libraries
600 The following command uses the \fBlist initiator-port\fR subcommand to display
601 a list of initiator ports discovered by the currently registered
602 \fBmpath-support\fR libraries.
605 .in +2
607 # \fBmpathadm list initiator-port\fR
608 Initiator-Port: iqn.1986-03.com.sun:01:080020b7ac2b.437a3b3e,4000002a0000
609 Initiator-Port: 2000000173018713
610 Initiator-Port: 2000000173818713
612 .in -2
616 \fBExample 4 \fRDisplaying the Properties of a Particular Initiator Port
619 The following command uses the \fBshow initiator-port\fR subcommand to display
620 the properties of a particular initiator port discovered using the \fBlist
621 initiator-port\fR subcommand in an example above.
624 .in +2
626 # \fBmpathadm show initiator-port 2000000173018713\fR
627 initiator-port:  2000000173018713
628         Transport Type:  Fibre Channel
629         OS device File:  devices/pci@1f,4000/pci@2/SUNW,qlca@5/fp@0,0:fc
631 .in -2
635 \fBExample 5 \fRDisplaying the Properties of a Particular Logical Unit
638 The following command uses the \fBshow logical-unit\fR subcommand to display
639 the properties of the logical unit with the specified name.
642 .in +2
644 # \fBmpathadm show lu /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2\fR
645 Logical Unit: /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
646                mpath-support libmpscsi_vhci.so
647                Vendor: SUN
648                Product: T4
649                Revision: 0301
650         Name Type: SCSI Inquiry VPD Page 83 type 3
651         Name: 60003ba27d2120004204ac2b000dab00
652         Asymmetric: yes
653         Current Load Balance: round-robin
654         Logical Unit Group ID: NA
655         Aauto Failback: on
656         Auto Probing: NA
658 Paths:
659         Initiator Port Name: 2000000173818713
660         Target Port Name: 20030003ba27d212
661         Override Path: NA
662         Path State: OK
663         Disabled: no
665         Initiator Port Name: 2000000173018713
666         Target Port Name: 20030003ba27d095
667         Override Path: NA
668         Path State: OK
669         Disabled: no
671 Target Port Group:
672         ID: 2
673         Explicit Failover: yes
674         Access State: standby
675         Target Ports:
676                         Name: 20030003ba27d212
677                    Relative ID: 0
679         ID: 5
680         Explicit Failover: yes
681         Access State: active
682         Target Ports
683                         Name: 20030003ba27d095
684                    Relative ID: 0
686 .in -2
690 \fBExample 6 \fREnabling a Path
693 The following command uses the \fBenable path\fR subcommand to enable the path
694 with the specified initiator port, target port, and logical unit.
697 .in +2
699 # \fBmpathadm enable path -i 2000000173018713 -t 20030003ba27d095        \e
700 -l /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2\fR
702 .in -2
706 \fBExample 7 \fRModifying \fBmpath-support\fR To Turn On \fBautofailback\fR
708 .in +2
710 # \fBmpathadm modify mpath-support -a on libmpscsi_vhci.so\fR
712 .in -2
715 .SH ATTRIBUTES
718 See \fBattributes\fR(5) for descriptions of the following attributes:
723 box;
724 c | c
725 l | l .
726 ATTRIBUTE TYPE  ATTRIBUTE VALUE
728 Interface Stability     Evolving
731 .SH SEE ALSO
734 \fBstmsboot\fR(8), \fBlibMPAPI\fR(3LIB), \fBexec_attr\fR(4),
735 \fBattributes\fR(5)