1MP_SetLogicalUnitLCooamdmBoanlaMnucletTiyppaet(h3MMPaAnPaIgM)ePm_eSnettLLoigbircaarlyUnFiutnLcotaidoBnaslanceType(3MPAPI)
2
3
4

NAME

6       MP_SetLogicalUnitLoadBalanceType - set a load balancing policy
7

SYNOPSIS

9       cc [ flag... ] file... -lMPAPI [ library... ]
10       #include <mpapi.h>
11
12       MP_STATUS MP_SetLogicalUnitLoadBalanceType(MP_OID logicalUnitoid,
13            MP_LOAD_BALANCE_TYPE  loadBalance);
14
15

PARAMETERS

17       logicalUnitOid    The object ID of the multipath logical unit.
18
19
20       loadBalance       The  desired  load  balance  policy for the specified
21                         logical unit.
22
23

DESCRIPTION

25       The MP_SetLogicalUnitLoadBalanceType() function sets the multipath log‐
26       ical  unit's load balancing policy. The value must correspond to one of
27       the supported values in  MP_PLUGIN_PROPERTIES.SupportedLogicalUnitLoad‐
28       BalanceTypes.
29

RETURN VALUES

31       MP_STATUS_INVALID_OBJECT_TYPE
32
33           The  logicalUnitOid does not specify any valid object type. This is
34           most likely to happen if an uninitialized object ID  is  passed  to
35           the API.
36
37
38       MP_STATUS_INVALID_PARAMETER
39
40           The  loadBalance  is  invalid or logicalUnitOid has a type subfield
41           other than MP_OBJECT_TYPE_MULTIPATH_LU.
42
43
44       MP_STATUS_OBJECT_NOT_FOUND
45
46           The logicalUnitOid owner ID or object sequence number is invalid.
47
48
49       MP_STATUS_SUCCESS
50
51           The operation is successful.
52
53
54       MP_STATUS_FAILED
55
56           The specified loadBalance type cannot be handled by the plugin. One
57           possible   reason  for  this  is  a  request  to  set  MP_LOAD_BAL‐
58           ANCE_TYPE_PRODUCT when the specified logical  unit  has  no  corre‐
59           sponding  MP_DEVICE_PRODUCT_PROPERTIES  instance  (i.e., the plugin
60           does not have a product-specific load balance algorithm for the  LU
61           product).
62
63
64       MP_STATUS_UNSUPPORTED
65
66           The implementation does not support the API.
67
68

ATTRIBUTES

70       See attributes(5) for descriptions of the following attributes:
71
72
73
74
75       ┌─────────────────────────────┬─────────────────────────────┐
76       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
77       ├─────────────────────────────┼─────────────────────────────┤
78       │Interface Stability          │Standard:  ANSI  INCITS 412  │
79       │                             │Multipath Management API     │
80       ├─────────────────────────────┼─────────────────────────────┤
81       │MT-Level                     │Safe                         │
82       └─────────────────────────────┴─────────────────────────────┘
83

SEE ALSO

85       libMPAPI(3LIB), attributes(5)
86
87
88       Multipath Management API Version 1.0
89
90
91
92SunOS 5.11                        15 FeMbP_2S0e0t6LogicalUnitLoadBalanceType(3MPAPI)
Impressum