I need a little help with an upcoming migration. The storage team has implemented a new netapp stack. Once I have a tested script, I have around 400 servers across two environments that I'll need to migrate.
Each server has a current nfs mount pointed to the old storage stack. All these current mounts have different names.
I need to mount a new NFS share, rsync the contents, and leave the share with the same original name.
Here's the process I was thinking:
- Stop writes on
/mnt/existing_mount(This can be done through the netapp admin by disabling writes)
/mnt/existing_mountname into variable
- mount the new nfs volume to
- rsync all files to
/mnt/new_mount(preserving local permissions)
/mnt/new_mountbased on variable
Am I approaching this efficiently? Does anyone know of an ansible playbook or script that will already do this?