#Is it possible to rename offline volume?

1 messages · Page 1 of 1 (latest)

arctic escarp
young flume
#

just take it online, rename, and set it offline again?

#

it should also work when the volume is restricted, if you want to make sure that there's no user-access during the brief window it is being renamend

arctic escarp
#

Thanks, so it's not officially supported? 🙂

neon merlin
#

Let me look in to this. Can you send me the playbook that have that error

arctic escarp
#

Hey Chris, thanks 🙂 Here is the example:

- name: Rename volumes exluding
  na_ontap_volume:
    hostname: "{{ netapp_host }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"
    from_name: "{{ item }}"
    vserver: "{{ netapp_vserver }}"
    name: test_"{{ item }}"
    state: present
    is_online: false
  with_items: "{{ offline_volumes }}"
turbid sierra
#

it should also work when the volume is restricted, if you want to make sure that there's no user-access during the brief window it is being renamend
My preferred method is to disable the junction-path if it's an NFS volume. That makes it impossible to mount from even storage root nodes.

young flume
#

in this specific case it wouldn't matter I guess, but for migrations it can be deadly...

turbid sierra
#

You're absolutely right if the volume is already mounted - disabling the junction path is not enough. Since the volume in this case was offline already, I assumed that it was unmounted. Disable the junction path and bring it back online and you're safe.
Our standard practice on volume retirement is to disable the junction path, unmount it from all of the clients, and then finally take it offline. Since we have root clients that mount /, disabling the junction path is the quickest way to prevent it from being remounted.

arctic escarp
#

@neon merlin have you had time to check that? 🙂