dellemc / dellemc.powermax / 1.6.1 / module / dellemc_powermax_volume Manage volumes on PowerMax Storage System | "added in version" 1.0.0 of dellemc.powermax" Authors: Vasudevu Lakhinana (@unknown) <ansible.team@dell.com>, Akash Shendge (@shenda1) <ansible.team@dell.com>, Ambuj Dubey (@AmbujDube) <ansible.team@dell.com> preview | supported by communitydellemc.powermax.dellemc_powermax_volume (1.6.1) — module
Install with ansible-galaxy collection install dellemc.powermax:==1.6.1
collections: - name: dellemc.powermax version: 1.6.1
Managing volumes on PowerMax storage system includes creating a volume, renaming a volume, expanding a volume, and deleting a volume.
- name: Create volume dellemc_powermax_volume: unispherehost: "{{unispherehost}}" universion: "{{universion}}" verifycert: "{{verifycert}}" user: "{{user}}" password: "{{password}}" serial_no: "{{serial_no}}" vol_name: "{{vol_name}}" sg_name: "{{sg_name}}" size: 1 cap_unit: "{{cap_unit}}" state: 'present'
- name: Expanding volume size dellemc_powermax_volume: unispherehost: "{{unispherehost}}" universion: "{{universion}}" verifycert: "{{verifycert}}" user: "{{user}}" password: "{{password}}" serial_no: "{{serial_no}}" size: 3 cap_unit: "{{cap_unit}}" vol_id: "0059B" state: 'present'
- name: Renaming volume dellemc_powermax_volume: unispherehost: "{{unispherehost}}" universion: "{{universion}}" verifycert: "{{verifycert}}" user: "{{user}}" password: "{{password}}" serial_no: "{{serial_no}}" new_name: "Test_GOLD_vol_Renamed" vol_id: "0059B" state: 'present'
- name: Delete volume using volume ID dellemc_powermax_volume: unispherehost: "{{unispherehost}}" universion: "{{universion}}" verifycert: "{{verifycert}}" user: "{{user}}" password: "{{password}}" serial_no: "{{serial_no}}" vol_id: "0059B" state: 'absent'
- name: Delete volume using volume WWN dellemc_powermax_volume: unispherehost: "{{unispherehost}}" universion: "{{universion}}" verifycert: "{{verifycert}}" user: "{{user}}" password: "{{password}}" serial_no: "{{serial_no}}" vol_wwn: "60000970000197900237533030303246" state: 'absent'
- name: Move volume between storage group dellemc_powermax_volume: unispherehost: "{{unispherehost}}" universion: "{{universion}}" verifycert: "{{verifycert}}" user: "{{user}}" password: "{{password}}" serial_no: "{{serial_no}}" vol_name: "{{vol_name}}" sg_name: "{{sg_name}}" new_sg_name: "{{new_sg_name}}" state: 'present'
size: description: - The new size of existing volume. - Required for create and expand volume operations. type: float user: description: - The username of the Unisphere host. required: true type: str state: choices: - absent - present description: - Defines whether the volume should exist or not. required: true type: str vol_id: description: - The native id of the volume. - Required for rename and delete volume operations. type: str sg_name: description: - The name of the storage group. type: str vol_wwn: description: - The WWN of the volume. type: str cap_unit: choices: - MB - GB - TB description: - volume capacity units - If not specified, default value is GB. type: str new_name: description: - The new volume identifier for the volume. type: str password: description: - The password of the Unisphere host. required: true type: str vol_name: description: - The name of the volume. type: str serial_no: description: - The serial number of the PowerMax/VMAX array. It is a required parameter for all array-specific operations except for getting a list of arrays in the Gatherfacts module. required: true type: str universion: choices: - 91 - 92 description: - Unisphere version, currently '91' and '92' versions are supported. required: false type: int verifycert: choices: - true - false description: - Boolean variable to specify whether to validate SSL certificate or not. - True - indicates that the SSL certificate should be verified. - False - indicates that the SSL certificate should not be verified. required: true type: bool new_sg_name: description: - The name of the target storage group. type: str unispherehost: description: - IP or FQDN of the Unisphere host required: true type: str
changed: description: Whether or not the resource has changed. returned: always type: bool volume_details: contains: allocated_percent: description: Allocated percentage the volume. type: int cap_cyl: description: Number of cylinders. type: int cap_gb: description: Volume capacity in GB. type: int cap_mb: description: Volume capacity in MB. type: int effective_wwn: description: Effective WWN of the volume. type: str emulation: description: Volume emulation type. type: str encapsulated: description: Flag for encapsulation. type: bool has_effective_wwn: description: Flag for effective WWN presence. type: str mobility_id_enabled: description: Flag for enabling mobility. type: bool num_of_front_end_paths: description: Number of front end paths in the volume. type: int num_of_storage_groups: description: Number of storage groups in which volume is present. type: int pinned: description: Pinned flag. type: bool rdfGroupId: description: RDFG number for volume. type: int reserved: description: Reserved flag. type: bool snapvx_source: description: Source SnapVX flag. type: bool snapvx_target: description: Target SnapVX flag. type: bool ssid: description: SSID of the volume. type: str status: description: Volume status. type: str storageGroupId: description: Storage group ID of the volume. type: str storage_groups: description: List of storage groups for the volume. type: list type: description: Type of the volume. type: str volumeId: description: Unique ID of the volume. type: str volume_identifier: description: Name identifier for the volume. type: str wwn: description: WWN of the volume. type: str description: Details of the volume. returned: When volume exists. type: complex