2 .\" Copyright (c) 2004-2006 Storage Networking Industry Association. All Rights Reserved.
3 .\" Portions Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH MP_SETLOGICALUNITLOADBALANCETYPE 3MPAPI "Feb 15, 2006"
9 MP_SetLogicalUnitLoadBalanceType \- set a load balancing policy
13 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lMPAPI\fR [ \fIlibrary\fR\&.\|.\|. ]
16 \fBMP_STATUS\fR \fBMP_SetLogicalUnitLoadBalanceType\fR(\fBMP_OID\fR \fIlogicalUnitoid\fR,
17 \fBMP_LOAD_BALANCE_TYPE\fR \fIloadBalance\fR);
24 \fB\fIlogicalUnitOid\fR\fR
27 The object ID of the multipath logical unit.
33 \fB\fIloadBalance\fR\fR
36 The desired load balance policy for the specified logical unit.
42 The \fBMP_SetLogicalUnitLoadBalanceType()\fR function sets the multipath
43 logical unit's load balancing policy. The value must correspond to one of the
45 \fBMP_PLUGIN_PROPERTIES.SupportedLogicalUnitLoadBalanceTypes\fR.
50 \fB\fBMP_STATUS_INVALID_OBJECT_TYPE\fR\fR
54 The \fIlogicalUnitOid\fR does not specify any valid object type. This is most
55 likely to happen if an uninitialized object ID is passed to the API.
61 \fB\fBMP_STATUS_INVALID_PARAMETER\fR\fR
65 The \fIloadBalance\fR is invalid or \fIlogicalUnitOid\fR has a type subfield
66 other than \fBMP_OBJECT_TYPE_MULTIPATH_LU\fR.
72 \fB\fBMP_STATUS_OBJECT_NOT_FOUND\fR\fR
76 The \fIlogicalUnitOid\fR owner ID or object sequence number is invalid.
82 \fB\fBMP_STATUS_SUCCESS\fR\fR
86 The operation is successful.
92 \fB\fBMP_STATUS_FAILED\fR\fR
96 The specified \fIloadBalance\fR type cannot be handled by the plugin. One
97 possible reason for this is a request to set \fBMP_LOAD_BALANCE_TYPE_PRODUCT\fR
98 when the specified logical unit has no corresponding
99 \fBMP_DEVICE_PRODUCT_PROPERTIES\fR instance (i.e., the plugin does not have a
100 product-specific load balance algorithm for the LU product).
106 \fB\fBMP_STATUS_UNSUPPORTED\fR\fR
110 The implementation does not support the API.
116 See \fBattributes\fR(5) for descriptions of the following attributes:
124 ATTRIBUTE TYPE ATTRIBUTE VALUE
126 Interface Stability T{
127 Standard: ANSI INCITS 412 Multipath Management API
136 \fBlibMPAPI\fR(3LIB), \fBattributes\fR(5)
139 \fIMultipath Management API Version 1.0\fR