I usually ndmpcopy the data
Edit /etc/cifsconfig_shares.cfg with the new path
Restart cifs
As I usually take a week or two to migrate a whole volume (I'm rearranging the filesystem while I migrate) I usually wait until I've migrated the whole thing and then rename old volume to something else (or destroy it if I havn't had a user pointing to it for a week) and rename the new vol and check the updates happened correctly in cifsconfig - if I've got doubts after the vol rename I restart cifs to find out how much trouble I'm in (if any)
-----Original Message-----
From: owner-toasters(a)mathworks.com [mailto:owner-toasters@mathworks.com] On Behalf Of tmac
Sent: Saturday, 10 February 2007 4:22 AM
To: Stephen C. Losen
Cc: Glenn Walker; Glenn Dekhayser; René Bormann; toasters(a)mathworks.com; Fox, Adam
Subject: Re: moving data from trad -> flex vols
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(a)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(a)virginia.edu phone: 434-924-0640
>
> University of Virginia ITC Unix Support
>
>
>
"This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication."