Debian Codegraph @

ansible_collections/dellemc/openmanage/docs/modules/idrac_storage_volume.rst

raw
1 .. _idrac_storage_volume_module:
2
3
4 idrac_storage_volume -- Configures the RAID configuration attributes
5 ====================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module is responsible for configuring the RAID attributes.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - python \>= 3.9.6
24
25
26
27 Parameters
28 ----------
29
30 state (optional, str, view)
31 :literal:`create`\ , performs create volume operation.
32
33 :literal:`delete`\ , performs remove volume operation.
34
35 :literal:`view`\ , returns storage view.
36
37
38 span_depth (optional, int, 1)
39 Number of spans in the RAID configuration.
40
41 :emphasis:`span\_depth` is required for :literal:`create` and its value depends on :emphasis:`volume\_type`.
42
43
44 span_length (optional, int, 1)
45 Number of disks in a span.
46
47 :emphasis:`span\_length` is required for :literal:`create` and its value depends on :emphasis:`volume\_type`.
48
49
50 number_dedicated_hot_spare (optional, int, 0)
51 Number of Dedicated Hot Spare.
52
53
54 volume_type (optional, str, RAID 0)
55 Provide the the required RAID level.
56
57
58 disk_cache_policy (optional, str, Default)
59 Disk Cache Policy.
60
61
62 write_cache_policy (optional, str, WriteThrough)
63 Write cache policy.
64
65
66 read_cache_policy (optional, str, NoReadAhead)
67 Read cache policy.
68
69
70 stripe_size (optional, int, 65536)
71 Stripe size value to be provided in multiples of 64 \* 1024.
72
73
74 controller_id (optional, str, None)
75 Fully Qualified Device Descriptor (FQDD) of the storage controller, for example 'RAID.Integrated.1-1'. Controller FQDD is required for :literal:`create` RAID configuration.
76
77
78 media_type (optional, str, None)
79 Media type.
80
81
82 protocol (optional, str, None)
83 Bus protocol.
84
85
86 volume_id (optional, str, None)
87 Fully Qualified Device Descriptor (FQDD) of the virtual disk, for example 'Disk.virtual.0:RAID.Slot.1-1'. This option is used to get the virtual disk information.
88
89
90 volumes (optional, list, None)
91 A list of virtual disk specific iDRAC attributes. This is applicable for :literal:`create` and :literal:`delete` operations.
92
93 For :literal:`create` operation, name and drives are applicable options, other volume options can also be specified.
94
95 The drives is a required option for :literal:`create` operation and accepts either location (list of drive slot) or id (list of drive fqdd).
96
97 In iDRAC8, there is no pre-validation for the state of drives. The disk ID or slot number of the drive provided may or may not be in Ready state. Enter the disk ID or slot number of the drive that is already in Ready state.
98
99 For :literal:`delete` operation, only name option is applicable.
100
101 See the examples for more details.
102
103
104 capacity (optional, float, None)
105 Virtual disk size in GB.
106
107
108 raid_reset_config (optional, str, false)
109 This option represents whether a reset config operation needs to be performed on the RAID controller. Reset Config operation deletes all the virtual disks present on the RAID controller.
110
111
112 raid_init_operation (optional, str, None)
113 This option represents initialization configuration operation to be performed on the virtual disk.
114
115
116 job_wait (optional, bool, True)
117 This parameter provides the option to wait for the job completion.
118
119 This is applicable when :emphasis:`state` is :literal:`create` or :literal:`delete`.
120
121
122 job_wait_timeout (optional, int, 900)
123 This parameter is the maximum wait time of :emphasis:`job\_wait` in seconds.
124
125 This option is applicable when :emphasis:`job\_wait` is :literal:`true`.
126
127
128 time_to_wait (optional, int, 300)
129 The maximum wait time before shutdown in seconds for the Server Configuration Profile (SCP) import operation.
130
131 This option is applicable when :emphasis:`state` is :literal:`create` or :literal:`delete`.
132
133
134 idrac_ip (True, str, None)
135 iDRAC IP Address.
136
137
138 idrac_user (False, str, None)
139 iDRAC username.
140
141 If the username is not provided, then the environment variable :envvar:`IDRAC\_USERNAME` is used.
142
143 Example: export IDRAC\_USERNAME=username
144
145
146 idrac_password (False, str, None)
147 iDRAC user password.
148
149 If the password is not provided, then the environment variable :envvar:`IDRAC\_PASSWORD` is used.
150
151 Example: export IDRAC\_PASSWORD=password
152
153
154 x_auth_token (False, str, None)
155 Authentication token.
156
157 If the x\_auth\_token is not provided, then the environment variable :envvar:`IDRAC\_X\_AUTH\_TOKEN` is used.
158
159 Example: export IDRAC\_X\_AUTH\_TOKEN=x\_auth\_token
160
161
162 idrac_port (optional, int, 443)
163 iDRAC port.
164
165
166 validate_certs (optional, bool, True)
167 If :literal:`false`\ , the SSL certificates will not be validated.
168
169 Configure :literal:`false` only on personally controlled sites where self-signed certificates are used.
170
171 Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default.
172
173
174 ca_path (optional, path, None)
175 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
176
177
178 timeout (optional, int, 30)
179 The socket level timeout in seconds.
180
181
182
183
184
185 Notes
186 -----
187
188 .. note::
189 - Run this module from a system that has direct access to Integrated Dell Remote Access Controller.
190 - This module supports both IPv4 and IPv6 address for :emphasis:`idrac\_ip`.
191 - This module supports :literal:`check\_mode`.
192 - This module does not display the controller battery details for the :literal:`view` operation of the storage in iDRAC8.
193
194
195
196
197 Examples
198 --------
199
200 .. code-block:: yaml+jinja
201
202
203 ---
204 - name: Create single volume
205 dellemc.openmanage.idrac_storage_volume:
206 idrac_ip: "192.168.0.1"
207 idrac_user: "username"
208 idrac_password: "password"
209 ca_path: "/path/to/ca_cert.pem"
210 state: "create"
211 controller_id: "RAID.Slot.1-1"
212 volumes:
213 - drives:
214 location: [5]
215
216 - name: Create multiple volume
217 dellemc.openmanage.idrac_storage_volume:
218 idrac_ip: "192.168.0.1"
219 idrac_user: "username"
220 idrac_password: "password"
221 ca_path: "/path/to/ca_cert.pem"
222 raid_reset_config: "True"
223 state: "create"
224 controller_id: "RAID.Slot.1-1"
225 volume_type: "RAID 1"
226 span_depth: 1
227 span_length: 2
228 number_dedicated_hot_spare: 1
229 disk_cache_policy: "Enabled"
230 write_cache_policy: "WriteBackForce"
231 read_cache_policy: "ReadAhead"
232 stripe_size: 65536
233 capacity: 100
234 raid_init_operation: "Fast"
235 volumes:
236 - name: "volume_1"
237 drives:
238 id: ["Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1", "Disk.Bay.2:Enclosure.Internal.0-1:RAID.Slot.1-1"]
239 - name: "volume_2"
240 volume_type: "RAID 5"
241 span_length: 3
242 span_depth: 1
243 drives:
244 location: [7, 3, 5]
245 disk_cache_policy: "Disabled"
246 write_cache_policy: "WriteBack"
247 read_cache_policy: "NoReadAhead"
248 stripe_size: 131072
249 capacity: "200"
250 raid_init_operation: "None"
251
252 - name: View all volume details
253 dellemc.openmanage.idrac_storage_volume:
254 idrac_ip: "192.168.0.1"
255 idrac_user: "username"
256 idrac_password: "password"
257 ca_path: "/path/to/ca_cert.pem"
258 state: "view"
259
260 - name: View specific volume details
261 dellemc.openmanage.idrac_storage_volume:
262 idrac_ip: "192.168.0.1"
263 idrac_user: "username"
264 idrac_password: "password"
265 ca_path: "/path/to/ca_cert.pem"
266 state: "view"
267 controller_id: "RAID.Slot.1-1"
268 volume_id: "Disk.Virtual.0:RAID.Slot.1-1"
269
270 - name: Delete single volume
271 dellemc.openmanage.idrac_storage_volume:
272 idrac_ip: "192.168.0.1"
273 idrac_user: "username"
274 idrac_password: "password"
275 ca_path: "/path/to/ca_cert.pem"
276 state: "delete"
277 volumes:
278 - name: "volume_1"
279
280 - name: Delete multiple volume
281 dellemc.openmanage.idrac_storage_volume:
282 idrac_ip: "192.168.0.1"
283 idrac_user: "username"
284 idrac_password: "password"
285 ca_path: "/path/to/ca_cert.pem"
286 state: "delete"
287 volumes:
288 - name: "volume_1"
289 - name: "volume_2"
290
291
292
293 Return Values
294 -------------
295
296 msg (always, str, Successfully completed the view storage volume operation)
297 Overall status of the storage configuration operation.
298
299
300 storage_status (success, dict, {'Id': 'JID_XXXXXXXXX', 'JobState': 'Completed', 'JobType': 'ImportConfiguration', 'Message': 'Successfully imported and applied Server Configuration Profile.', 'MessageId': 'XXX123', 'Name': 'Import Configuration', 'PercentComplete': 100, 'StartTime': 'TIME_NOW', 'TargetSettingsURI': None})
301 Storage configuration job and progress details from the iDRAC.
302
303
304 error_info (on HTTP error, dict, {'error': {'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.', '@Message.ExtendedInfo': [{'MessageId': 'GEN1234', 'RelatedProperties': [], 'Message': 'Unable to process the request because an error occurred.', 'MessageArgs': [], 'Severity': 'Critical', 'Resolution': 'Retry the operation. If the issue persists, contact your system administrator.'}]}})
305 Details of the HTTP Error.
306
307
308
309
310
311 Status
312 ------
313
314
315
316
317
318 Authors
319 ~~~~~~~
320
321 - Felix Stephen (@felixs88)
322 - Kritika Bhateja (@Kritika-Bhateja-03)
323 - Abhishek Sinha(@ABHISHEK-SINHA10)
324 - Akash Shendge(@shenda1)
325