2 .\" Copyright 2008 Sun Microsystems, Inc. All Rights reserved. Use is subject to license terms.
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 STMSBOOT 8 "Dec 15, 2008"
8 stmsboot \- administration program for the Solaris I/O multipathing feature
12 \fB/usr/sbin/stmsboot\fR [[\fB-d\fR | \fB-e\fR [\fB-D\fR (fp | mpt) ]]
13 | \fB-u\fR | \fB-L\fR | \fB-l\fR \fIcontroller_number\fR]
19 The Solaris I/O multipathing feature is a multipathing solution for storage
20 devices that is part of the Solaris operating environment. This feature was
21 formerly known as Sun StorEdge Traffic Manager (STMS) or MPxIO.
24 The \fBstmsboot\fR program is an administrative command to manage enumeration
25 of multipath-capable devices with Solaris I/O multipathing. Solaris I/O
26 multipathing-enabled devices are enumerated under \fBscsi_vhci\fR(7D),
27 providing multipathing capabilities. Solaris I/O multipathing-disabled devices
28 are enumerated under the physical controller.
31 In the \fB/dev\fR and \fB/devices\fR trees, Solaris I/O multipathing-enabled
32 devices receive new names that indicate that they are under Solaris I/O
33 multipathing control. This means a device will have a different name from its
34 original name (after enabling) when it is under Solaris I/O multipathing
35 control. The \fBstmsboot\fR command automatically updates \fB/etc/vfstab\fR and
36 dump configuration to reflect the device names changes when enabling or
37 disabling Solaris I/O multipathing. One reboot is required for changes to take
42 The following options are supported:
46 \fB\fB-e\fR [ \fB-D\fR \fBfp | mpt\fR ]\fR
50 Enables Solaris I/O multipathing on all supported multipath-capable controller
51 ports. Multipath-capable ports include fibre channel (\fBfp\fR(7D)) controller
52 ports and SAS (\fBmpt\fR(7D)) controller ports. Following this enabling, you
53 are prompted to reboot. During the reboot, \fBvfstab\fR and the dump
54 configuration will be updated to reflect the device name changes. Specifying
55 either \fB-D\fR \fBmpt\fR or \fB-D\fR \fBfp\fR limits the enabling operation to
56 ports attached using the specified driver.
62 \fB\fB-d\fR [ \fB-D\fR \fBfp | mpt\fR ]\fR
66 Disables Solaris I/O multipathing on all supported multipath-capable controller
67 ports. Multipath-capable ports include fibre channel (\fBfp\fR(7D)) controller
68 ports and SAS (\fBmpt\fR(7D)) controller ports. Following this disabling, you
69 are prompted to reboot. During the reboot, \fBvfstab\fR and the dump
70 configuration will be updated to reflect the device name changes. Specifying
71 either \fB-D\fR \fBmpt\fR or \fB-D\fR \fBfp\fR limits the disabling operation
72 to ports attached using the specified driver.
82 Updates \fBvfstab\fR and the dump configuration after you have manually
83 modified the configuration to have Solaris I/O multipathing enabled or disabled
84 on specific multipath-capable controller ports. This option prompts you to
85 reboot. During the reboot, \fBvfstab\fR and the dump configuration will be
86 updated to reflect the device name changes.
96 Display the device name changes from non-Solaris I/O multipathing device names
97 to Solaris I/O multipathing device names for multipath-enabled controller
98 ports. If Solaris I/O multipathing is not enabled, then no mappings are
105 \fB\fB-l\fR \fIcontroller_number\fR\fR
109 Display the device name changes from non-Solaris I/O multipathing device names
110 to Solaris I/O multipathing device names for the specified controller. If
111 Solaris I/O multipathing is not enabled, then no mappings are displayed.
117 The primary function of \fBstmsboot\fR is to control the enabling and disabling
118 of Solaris I/O multipathing on the host. The utility automatically updates
119 \fBvfstab\fR(4) and \fBdumpadm\fR(8) configuration to reflect device name
120 changes. The system administrator is responsible for modifying application
121 configuration (for example, backup software, DBMS, and so forth) to reflect
122 updated device names.
125 The \fB-L\fR and \fB-l\fR options display the mapping between multipathed and
126 non-multipathed device names. These options function only after changes to the
127 Solaris I/O multipathing configuration have taken effect, that is, following
128 the reboot after invoking \fBstmsboot\fR \fB-e\fR.
131 ZFS datasets, including ZFS root datasets, are correctly handled by
135 \fBExample 1 \fREnabling Solaris I/O Multipathing
138 To enable Solaris I/O multipathing for all multipath-capable controllers, run:
150 To enable Solaris I/O multipathing on multipath-capable \fBmpt\fR(7D)
151 controller ports, enter:
156 # \fBstmsboot -D mpt -e\fR
163 To enable Solaris I/O Multipathing on multipath-capable fibre channel
164 controller ports, enter:
169 # \fBstmsboot -D fp -e\fR
175 \fBExample 2 \fRDisabling Solaris I/O Multipathing
178 To disable Solaris I/O multipathing on all multipath-capable controllers,
191 To disable Solaris I/O multipathing on multipath-capable \fBmpt\fR(7D)
192 controller ports, enter:
197 # \fBstmsboot -D mpt -d\fR
204 To disable Solaris I/O multipathing on multipath-capable fibre channel
205 controller ports, enter:
210 # \fBstmsboot -D fp -d\fR
216 \fBExample 3 \fREnabling Solaris I/O Multipathing on Selected Ports
219 To enable Solaris I/O multipathing on specific fibre channel controller ports
220 and disable the feature on others, manually edit the \fB/kernel/drv/fp.conf\fR
221 file. (See \fBfp\fR(7D).) The following command will update \fBvfstab\fR(4) and
222 \fBdumpadm\fR(8) configurations to reflect the changed device names:
234 A similar procedure involving the \fB/kernel/drv/mpt.conf\fR file should be
235 followed for devices attached by means of the \fBmpt\fR(7D) driver.
240 See \fBattributes\fR(5) for descriptions of the following attributes:
248 ATTRIBUTE TYPE ATTRIBUTE VALUE
250 Interface Stability Obsolete
256 \fBdumpadm\fR(8), \fBfsck\fR(8), \fBmpathadm\fR(8), \fBufsdump\fR(8),
257 \fBzfs\fR(8), \fBzpool\fR(8), \fBdumpdates\fR(4), \fBvfstab\fR(4),
258 \fBemlxs\fR(7D), \fBfcp\fR(7D), \fBfp\fR(7D), \fBmpt\fR(7D), \fBqlc\fR(7D),
262 \fISolaris SAN Configuration and Multipathing Guide\fR (see
263 \fBhttp://docs.sun.com\fR)
266 Consult a particular storage product's system administrator's guide and release
267 notes for further information specific to that product.
271 Solaris I/O multipathing is not supported on all devices. After enabling
272 Solaris I/O multipathing, only supported devices are placed under Solaris I/O
273 multipathing control. Non-supported devices remain unchanged.
276 For Solaris releases prior to the current release, the \fB-e\fR and \fB-d\fR
277 options replace \fBmpxio-disable\fR property entries with a global
278 \fBmpxio-disable\fR entry in \fBfp.conf\fR.
279 .SS "Enabling Solaris I/O Multipathing on a Sun StorEdge Disk Array"
282 The following applies to Sun StoreEdge T3, 3910, 3960, 6120, and 6320 storage
286 To place your Sun StorEdge disk subsystem under Solaris I/O multipathing
287 control, in addition to enabling Solaris I/O multipathing, the \fBmp_support\fR
288 of the subsystem must be set to \fBmpxio\fR mode. The preferred sequence is to
289 change the subsystem's \fBmp_support\fR to \fBmpxio\fR mode, then run
290 \fBstmsboot\fR \fB-e\fR. If Solaris I/O multipathing is already enabled but the
291 subsystem's \fBmp_support\fR is not in \fBmpxio\fR mode, then change the
292 \fBmp_support\fR to \fBmpxio\fR mode and run \fBstmsboot\fR \fB-u\fR.
295 Refer to the \fISun StorEdge Administrator's Guide\fR for your subsystem for
297 .SS "Using \fBufsdump\fR"
300 The \fBufsdump\fR(8) command records details of filesystem dumps in
301 \fB/etc/dumpdates\fR (see \fBdumpdates\fR(4)). Among other items, the entries
302 contain device names. An effect of the "active" \fBstmsboot\fR options
303 (\fB-e\fR, \fB-d\fR, and \fB-u\fR) is to change the device name of a storage
307 Because \fBstmsboot\fR does not modify \fBdumpdates\fR, entries will refer to
308 obsolete device names, that is, device names that were in effect before Solaris
309 I/O multipathing configuration changes were performed. In this situation
310 \fBufsdump\fR will behave as if no previous dump of the filesystem had been
311 performed. A level 0 dump will be performed.
312 .SS "Procedure to Use \fBstmsboot\fR in Conjunction with Sun Cluster"
315 If possible, invoke \fBstmsboot\fR \fB-e\fR before installing Sun Cluster
316 software. After executing \fBstmsboot\fR, install Sun Cluster software
320 If Sun Cluster software is installed before executing \fBstmsboot\fR, follow
324 On each machine in the cluster where Solaris I/O multipathing is required,
336 \&...and allow the system to reboot.
339 When the system comes up, enter the following two commands:
343 # \fB/usr/cluster/bin/scdidadm -C\fR
348 # \fB/usr/cluster/bin/scdidadm -r\fR
350 The preceding commands update \fBdid\fR mappings with new device names while
351 preserving \fBdid\fR instance numbers for disks that are connected to multiple
352 cluster nodes. \fBdid\fR instance numbers of the local disks might not be
353 preserved. For this reason, the \fBdid\fR disk names for local disks might
359 Update \fB/etc/vfstab\fR to reflect any new \fBdid\fR disk names for your
369 To disable the Solaris multipathing feature, use \fBstmsboot\fR \fB-d\fR
370 (instead of \fBstmsboot\fR \fB-e\fR), then follow the procedure above.
373 To view mappings between the old and new device names, run \fBstmsboot\fR
374 \fB-L\fR. To view \fBdid\fR device name mappings, run
375 \fB/usr/cluster/bin/scdidadm\fR \fB-L\fR.
378 With active-passive storage arrays, it is possible that while your host is
379 rebooting the array controller could failover the path that a particular target
380 is using. In this scenario, \fBfsck\fR(8) will fail to open the physical path
381 listed in \fB/etc/vfstab\fR. The \fBsvc:/system/filesystem/local:default\fR SMF
382 service will transition to a maintenance state as a result. To rectify this,
383 consult the documentation for your storage array to failback the path. The
384 \fBmpathadm\fR(8) can assist with determining the active and passive path(s).
388 On x86 platforms, the current Solaris release does not support disabling
389 Solaris I/O multipathing of boot devices attached by means of fibre channel.
390 Solaris I/O multipathing is always enabled for supported fibre channel-attached
391 boot devices. Disabling Solaris I/O multipathing in this situation must be
392 performed on a per-port basis. See \fBfp\fR(7D).
395 Executing \fBdevfsadm\fR \fB-C\fR removes obsolete device entries that
396 \fBstmsboot\fR relies on. This will prevent correct operation of the \fB-d\fR
397 option for boot devices (regardless of platform type) and the \fB-L\fR option.