dellemc / dellemc.openmanage / 2.1.5 / module / dellemc_idrac_storage_volume Configures the RAID configuration attributes. | "added in version" 2.9.0 of dellemc.openmanage" Authors: Felix Stephen (@felixs88) preview | supported by communitydellemc.openmanage.dellemc_idrac_storage_volume (2.1.5) — module
Install with ansible-galaxy collection install dellemc.openmanage:==2.1.5
collections: - name: dellemc.openmanage version: 2.1.5
This module is responsible for configuring the RAID attributes.
--- - name: Create single volume. dellemc.openmanage.dellemc_idrac_storage_volume: idrac_ip: "192.168.0.1" idrac_user: "username" idrac_password: "password" state: "create" controller_id: "RAID.Slot.1-1" volumes: - drives: location: [5]
- name: Create multiple volume. dellemc.openmanage.dellemc_idrac_storage_volume: idrac_ip: "192.168.0.1" idrac_user: "username" idrac_password: "password" raid_reset_config: "True" state: "create" controller_id: "RAID.Slot.1-1" volume_type: "RAID 1" span_depth: 1 span_length: 2 number_dedicated_hot_spare: 1 disk_cache_policy: "Enabled" write_cache_policy: "WriteBackForce" read_cache_policy: "ReadAhead" stripe_size: 65536 capacity: 100 raid_init_operation: "Fast" volumes: - name: "volume_1" drives: id: ["Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1", "Disk.Bay.2:Enclosure.Internal.0-1:RAID.Slot.1-1"] - name: "volume_2" volume_type: "RAID 5" span_length: 3 span_depth: 1 drives: location: [7,3,5] disk_cache_policy: "Disabled" write_cache_policy: "WriteBack" read_cache_policy: "NoReadAhead" stripe_size: 131072 capacity: "200" raid_init_operation: "None"
- name: View all volume details. dellemc.openmanage.dellemc_idrac_storage_volume: idrac_ip: "192.168.0.1" idrac_user: "username" idrac_password: "password" state: "view"
- name: View specific volume details. dellemc.openmanage.dellemc_idrac_storage_volume: idrac_ip: "192.168.0.1" idrac_user: "username" idrac_password: "password" state: "view" controller_id: "RAID.Slot.1-1" volume_id: "Disk.Virtual.0:RAID.Slot.1-1"
- name: Delete single volume. dellemc.openmanage.dellemc_idrac_storage_volume: idrac_ip: "192.168.0.1" idrac_user: "username" idrac_password: "password" state: "delete" volumes: - name: "volume_1"
- name: Delete multiple volume. dellemc.openmanage.dellemc_idrac_storage_volume: idrac_ip: "192.168.0.1" idrac_user: "username" idrac_password: "password" state: "delete" volumes: - name: "volume_1" - name: "volume_2"
state: choices: - create - delete - view default: view description: - C(create), performs create volume operation. - C(delete), performs remove volume operation. - C(view), returns storage view. required: false type: str volumes: description: - A list of virtual disk specific iDRAC attributes. This is applicable for C(create) and C(delete) operations. - For C(create) operation, name and drives are applicable options, other volume options can also be specified. - The drives is a required option for C(create) operation and accepts either location (list of drive slot) or id (list of drive fqdd). - For C(delete) operation, only name option is applicable. - See the examples for more details. elements: str required: false type: list capacity: description: Virtual disk size in GB. required: false type: float idrac_ip: description: iDRAC IP Address. required: true type: str protocol: choices: - SAS - SATA description: Bus protocol. required: false type: str volume_id: description: - Fully Qualified Device Descriptor (FQDD) of the virtual disk, for e.g. 'Disk.virtual.0:RAID.Slot.1-1'. This option is used to get the virtual disk information. required: false type: str idrac_port: default: 443 description: iDRAC port. required: false type: int idrac_user: description: iDRAC username. required: true type: str media_type: choices: - HDD - SSD description: Media type. required: false type: str span_depth: default: 1 description: Span Depth. required: false type: int span_length: default: 1 description: Span Length. required: false type: int stripe_size: default: 65536 description: Stripe size value to be provided in multiples of 64 * 1024. required: false type: int volume_type: choices: - RAID 0 - RAID 1 - RAID 5 - RAID 6 - RAID 10 - RAID 50 - RAID 60 default: RAID 0 description: Provide the the required RAID level. required: false type: str controller_id: description: - Fully Qualified Device Descriptor (FQDD) of the storage controller, for e.g. 'RAID.Integrated.1-1'. Controller FQDD is required for C(create) RAID configuration. required: false type: str idrac_password: aliases: - idrac_pwd description: iDRAC user password. required: true type: str disk_cache_policy: choices: - Default - Enabled - Disabled default: Default description: Disk Cache Policy. required: false type: str raid_reset_config: choices: - true - false default: false description: - 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. required: false type: str read_cache_policy: choices: - NoReadAhead - ReadAhead - AdaptiveReadAhead default: NoReadAhead description: Read cache policy. required: false type: str write_cache_policy: choices: - WriteThrough - WriteBack - WriteBackForce default: WriteThrough description: Write cache policy. required: false type: str raid_init_operation: choices: - None - Fast description: This option represents initialization configuration operation to be performed on the virtual disk. required: false type: str number_dedicated_hot_spare: default: 0 description: Number of Dedicated Hot Spare. required: false type: int