October 26th, 2021 02:00

In order to remove VV from CG, we have two parameters, those are virtual_volumes and virtual_volume_state.

 

- name: Remove virtual volumes from Consistency group
  dellemc_vplex_consistency_group:
      vplexhost: "{ { vplexhost }}"
      vplexuser: "{ { vplexuser }}"
      vplexpassword: "{ { vplexpassword }}"
      verifycert: "{ { verifycert }}"
      cluster_name: "{ { cluster_name }}"
      cg_name: "{ { new_cg_name }}"
      virtual_volumes: [ 'virtual_volumes-1','virtual_volumes-2']
      virtual_volume_state: "absent-in-cg"
      state: "present"

October 26th, 2021 15:00

Thank you for posting, did that code work for you ? I've tried on mine and could not make it work, I simplified my original post because I could not make the vv removal work, but that was my original intent: to remove VV from a CG.

My vplex is 6.2 and I think they changed the structure of the API. I was able to make it work by working directly with the vplex API and it uses a different structure.

No Events found!

Top