I do something like this:
Terminate all file sharing protocols Perform the update/replication/whatever do a global search/replace in the cifsconfig_share.cfg renaming all old vols to new vols. If needed, perform the same function in exports Turn on the protocols.
works fine without having to delete and re-add (sometime 10s to a hundred) shares back in
--tmac
On 2/9/07, Stephen C. Losen scl@sasha.acc.virginia.edu wrote:
I've actually used the vol and aggr rename commands frequently, not in the process of migration. My current environment was\has been in disarray before my arrival and I'm trying to go back and standardize and clean up some things.
That said, in the pretext of migration, perhaps it should be an optional thing to rename the exports/shares?
Glenn
You can stop ONTAP from automatically editing /etc/exports with
options nfs.export.auto-update off
Then whenever you create, delete, or rename a volume you get a warning that /etc/exports needs to be edited, but ONTAP leaves it alone.
I would "exportfs -u" the old stuff before renaming anything. Then after renaming the volumes so that the new volume has the old name, I would "exportfs -a" to export the new stuff.
As for CIFS, I am pretty sure that you need to delete your old shares before renaming the volumes, rename, and then create the shares again.
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support