File: StorageResourceManager.rst

package info (click to toggle)
python-pyvmomi 6.7.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,984 kB
  • sloc: python: 9,206; xml: 77; makefile: 9
file content (331 lines) | stat: -rw-r--r-- 11,462 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
.. _str: https://docs.python.org/2/library/stdtypes.html

.. _bool: https://docs.python.org/2/library/stdtypes.html

.. _vim.Task: ../vim/Task.rst

.. _StoragePod: ../vim/StoragePod.rst

.. _CloneVM_Task: ../vim/VirtualMachine.rst#clone

.. _CreateVM_Task: ../vim/Folder.rst#createVm

.. _vim.Datastore: ../vim/Datastore.rst

.. _vim.HostSystem: ../vim/HostSystem.rst

.. _vim.StoragePod: ../vim/StoragePod.rst

.. _RelocateVM_Task: ../vim/VirtualMachine.rst#relocate

.. _vSphere API 5.1: ../vim/version.rst#vimversionversion8

.. _vSphere API 5.0: ../vim/version.rst#vimversionversion7

.. _vSphere API 4.1: ../vim/version.rst#vimversionversion6

.. _ReconfigVM_Task: ../vim/VirtualMachine.rst#reconfigure

.. _vim.fault.NotFound: ../vim/fault/NotFound.rst

.. _StoragePlacementResult: ../vim/storageDrs/StoragePlacementResult.rst

.. _vmodl.fault.NotSupported: ../vmodl/fault/NotSupported.rst

.. _vim.storageDrs.ConfigSpec: ../vim/storageDrs/ConfigSpec.rst

.. _vmodl.fault.InvalidArgument: ../vmodl/fault/InvalidArgument.rst

.. _vim.fault.InaccessibleDatastore: ../vim/fault/InaccessibleDatastore.rst

.. _vim.storageDrs.StoragePlacementSpec: ../vim/storageDrs/StoragePlacementSpec.rst

.. _vim.storageDrs.StoragePlacementResult: ../vim/storageDrs/StoragePlacementResult.rst

.. _vim.storageDrs.ApplyRecommendationResult: ../vim/storageDrs/ApplyRecommendationResult.rst

.. _vim.StorageResourceManager.IORMConfigSpec: ../vim/StorageResourceManager/IORMConfigSpec.rst

.. _vim.fault.IORMNotSupportedHostOnDatastore: ../vim/fault/IORMNotSupportedHostOnDatastore.rst

.. _vim.StorageResourceManager.IORMConfigOption: ../vim/StorageResourceManager/IORMConfigOption.rst

.. _vim.StorageResourceManager.StoragePerformanceSummary: ../vim/StorageResourceManager/StoragePerformanceSummary.rst


vim.StorageResourceManager
==========================
  This managed object type provides a way to configure resource usage for storage resources.


:since: `vSphere API 4.1`_


Attributes
----------


Methods
-------


ConfigureDatastoreIORM(datastore, spec):
   Changes configuration of storage I/O resource management for a given datastore. The changes are applied to all the backing storage devices for the datastore. Currently we only support storage I/O resource management on VMFS volumes. In order to enable storage I/O resource management on a datstore, we require that all the hosts that are attached to the datastore support this feature.This method is only supported by vCenter server.


  Privilege:



  Args:
    datastore (`vim.Datastore`_):
       The datastore to be configured.


    spec (`vim.StorageResourceManager.IORMConfigSpec`_):
       The configuration spec.




  Returns:
     `vim.Task`_:
         

  Raises:

    `vim.fault.IORMNotSupportedHostOnDatastore`_: 
       if called on a datastore that is connected to a host that does not support storage I/O resource management.

    `vim.fault.InaccessibleDatastore`_: 
       if cannot access the datastore from any of the hosts.

    `vmodl.fault.NotSupported`_: 
       if called directly on a host or if called on a datastore that does not have VMFS Volume.

    `vmodl.fault.InvalidArgument`_: 
       if 1. IORMConfigSpec.congestionThreshold is not within the desired range (5 to 100 milliseconds). 2. IORMConfigSpec.congestionThresholdMode is not specified and IORMConfigSpec.congestionThreshold is specified. To set congestionThreshold, congestionThresholdMode should be set to manual


QueryIORMConfigOption(host):
   Query configuration options for storage I/O resource management.


  Privilege:
               Datastore.Config



  Args:
    host (`vim.HostSystem`_):
       [in] - The host VC will forward the query to. This parameter is ignored by host if this method is called on a host directly.




  Returns:
    `vim.StorageResourceManager.IORMConfigOption`_:
         configuration option object.


QueryDatastorePerformanceSummary(datastore):
   Returns datastore summary performance statistics.This is an experimental interface that is not intended for use in production code.
  since: `vSphere API 5.1`_


  Privilege:
               System.View



  Args:
    datastore (`vim.Datastore`_):
       Datastore for which summary statistics is requested.




  Returns:
    [`vim.StorageResourceManager.StoragePerformanceSummary`_]:
         Summary performance statistics for the datastore. The summary contains latency, throughput, and SIOC activity.

  Raises:

    `vim.fault.NotFound`_: 
       if input datastore cannot be found


ApplyStorageDrsRecommendationToPod(pod, key):
   Applies a recommendation from the recommendation list. Each recommendation can be applied only once.Requires Resource.ApplyRecommendation privilege on the storage pod. And requires Resource.ColdMigrate privilege on the virtual machine(s) that are relocated. Additionally requires Resource.HotMigrate privilege if the virtual machine is powered on (for Storage VMotion). Also requires Datastore.AllocateSpace on any datastore the virtual machine or its disks are relocated to.
  since: `vSphere API 5.0`_


  Privilege:
               System.View



  Args:
    pod (`vim.StoragePod`_):
       The storage pod.


    key (`str`_):
       The key field of the Recommendation.




  Returns:
     `vim.Task`_:
         

  Raises:

    `vmodl.fault.InvalidArgument`_: 
       If the specified key refers to a non-existent or an already executed recommendation.


ApplyStorageDrsRecommendation(key):
   Applies a recommendation from the recommendation list. Each recommendation can be applied only once. In the case of CreateVm and CloneVm a VirtualMachine is returned. Other workflows don't have a return value.Requires Resource.ApplyRecommendation privilege on the storage pod. Additionally, depending on the workflow where this API is called from, it may require the privileges of invoking one of following APIs:
    * CreateVm
    * `CreateVM_Task`_
    * AddDisk
    * `ReconfigVM_Task`_
    * RelocateVm
    * `RelocateVM_Task`_
    * CloneVm
    * `CloneVM_Task`_
  since: `vSphere API 5.0`_


  Privilege:
               System.View



  Args:
    key (`str`_):
       The key fields of the Recommendations that are applied.




  Returns:
     `vim.Task`_:
         

  Raises:

    `vmodl.fault.InvalidArgument`_: 
       If the specified key refers to a non-existent or an already executed recommendation.


CancelStorageDrsRecommendation(key):
   Cancels a recommendation. Currently only initial placement recommendations can be cancelled. Migration recommendations cannot.
  since: `vSphere API 5.0`_


  Privilege:
               System.View



  Args:
    key (`str`_):
       The key field of the Recommendation.




  Returns:
    None
         

  Raises:

    `vmodl.fault.InvalidArgument`_: 
       If the specified key refers to a non-existent or an already executed recommendation.


RefreshStorageDrsRecommendation(pod):
   Make Storage DRS invoke again on the specified pod `StoragePod`_ and return a new list of recommendations. Concurrent "refresh" requests may be combined together and trigger only one Storage DRS invocation.
  since: `vSphere API 5.0`_


  Privilege:
               System.View



  Args:
    pod (`vim.StoragePod`_):
       The storage pod. The recommendations generated is stored at PodStorageDrsEntry#recommendation.




  Returns:
    None
         


ConfigureStorageDrsForPod(pod, spec, modify):
   Change the storage DRS configuration for a pod `StoragePod`_ .
  since: `vSphere API 5.0`_


  Privilege:



  Args:
    pod (`vim.StoragePod`_):
       The storage pod.


    spec (`vim.storageDrs.ConfigSpec`_):
       A set of storage Drs configuration changes to apply to the storage pod. The specification can be a complete set of changes or a partial set of changes, applied incrementally.


    modify (`bool`_):
       Flag to specify whether the specification ("spec") should be applied incrementally. If "modify" is false and the operation succeeds, then the configuration of the storage pod matches the specification exactly; in this case any unset portions of the specification will result in unset or default portions of the configuration.




  Returns:
     `vim.Task`_:
         


RecommendDatastores(storageSpec):
   This method returns a `StoragePlacementResult`_ object. This API is intended to replace the following existing APIs for SDRS-enabled pods: CreateVm: StoragePlacementSpec::type == create = `CreateVM_Task`_ AddDisk: StoragePlacementSpec::type == reconfigure = `ReconfigVM_Task`_ RelocateVm: StoragePlacementSpec::type == relocate = `RelocateVM_Task`_ CloneVm: StoragePlacementSpec::type == clone = `CloneVM_Task`_ The PodSelectionSpec parameter in StoragePlacementSpec is required for all workflows. It specifies which SDRS-enabled pod the user has selected for the VM and/or for each disk. For CreateVm, RelocateVm and CloneVm, PodSelectionSpec.storagePod is the user selected SDRS pod for the VM, i.e., its system files. For all workflows, PodSelectionSpec.disk.storagePod is the user selected SDRS pod for the given disk. Note that a DiskLocator must be specified for each disk that the user requests to create, migrate or clone into an SDRS pod, even if it's the same pod as the VM or the user has manually selected a datastore within the pod. If the user has manually selected a datastore, the datastore must be specified in the workflow specific fields as described below. For CreateVm and AddDisk, the manually selected datastore must be specified in ConfigSpec.files or ConfigSpec.deviceChange.device.backing.datastore, the fields should will be unset if the user wants SDRS to recommend the datastore. For RelocateVm, the manually selected datastore must be specified in RelocateSpec.datastore or RelocateSpec.disk.datastore; the fields should be unset iff the user wants SDRS recommendations. For CloneVm, the manually selected datastore must be specified in CloneSpec.location.datastore or CloneSpec.location.disk[].datastore; the fields should be unset iff the user wants SDRS recommendations. The remaining expected input parameters in StoragePlacementSpec will be the same as those for the existing API as determined by StoragePlacementSpec::type. If a parameter is optional in the existing API, it will also be optional in the new API.
    * For CreateVm, the Folder, ConfigSpec, ResourcePool and HostSystem parameters will be expected in StoragePlacementSpec. The disks to be created can be determined by ConfigSpec -
    * VirtualDeviceSpec[] (deviceChange) -
    * VirtualDevice (device) -
    * VirtualDisk (subclass).
    * For AddDisk, the VirtualMachine and ConfigSpec parameters will be expected. The use of the ConfigSpec for determining the disks to add will be the same as that in CreateVm.
    * For RelocateVm, the VirtualMachine, RelocateSpec and MovePriority parameters will be expected.
    * For CloneVm, the VirtualMachine, CloneSpec, Folder and cloneName parameters will be expected.
    * SDRS takes into account constraints such as space usages, (anti-) affinity rules, datastore maintenance mode, etc. when making placement recommendations. Given that the constraints are satisfied, SDRS tries to balance space usages and I/O loads in the placement.
    * 
  since: `vSphere API 5.0`_


  Privilege:
               System.View



  Args:
    storageSpec (`vim.storageDrs.StoragePlacementSpec`_):




  Returns:
    `vim.storageDrs.StoragePlacementResult`_: