#How to not immediately delete a LUN ?

1 messages · Page 1 of 1 (latest)

short patrol
#

I am interested in knowing, if I want to delete a LUN, Netapp takes in consideration this decision but only deletes the LUN after 3 days?

´- name: Delete luns
netapp.ontap.na_ontap_lun:
state: "{{ item.state }}"
name: "{{ item.name }}"
flexvol_name: "{{ item.volume }}"
vserver: "{{ item.vserver }}"
hostname: "{{ item.ntap_hostname }}"
username: "{{ item.ntap_username }}"
password: "{{ item.ntap_password }}"
https: "{{ https }}"
validate_certs: "{{ certs }}"
force_remove: yes ´

If I use this code, the LUN will be immediately deleted right? How can I make the deletion effective in 3 days? Is this where LUN fencing is used?

frigid girder
#

A LUN in ONTAP is just a file inside a volume. If you delete a LUN the file is deleted immediately. There are ways to recover the LUN if you have snapshots of the volume. But there isn't a "delayed delete".

What you could do is remove the LUN Mapping on the LUN and then 3 days later run the LUN delete.

There is a Volume Recovery Queue in ONTAP, however it's for the volume, not the LUN. The default is 12 hours for this queue but can be changed. https://kb.netapp.com/onprem/ontap/os/How_to_use_the_Volume_Recovery_Queue

short patrol