Subscribe

How to move a cifs-share to a new vfiler?

Hello,
we have to move a productive "CIFS"-volume (share) from controler (vfiler0) to a new, yet to be created, vfiler1 on the same controler.

In the past, we have also created vfilers, but only with inactive/new data.

Is there something special to consider (e.g. root-volume etc) ?

Thank you.

Re: How to move a cifs-share to a new vfiler?

There is no special way to do that, but there are some points to consider

- you need to have a root volume for the vfiler and then you can create it "empty" with only the root volume

- you have to do the CIFS setup of the new vfiler

- you can only assign the volume with the data to the vfiler but not the shares, they have to be recreated on the vfiler

- if you use local users or groups, you have to perform a front end migration using a tool like secure copy, because the the vfiler has its own SID, users and groups. This means as well, you need double the space to be able to copy the date from the vfiler0 to a new empty volume that belongs to the vfiler.

Thats about it, with those steps you should be fine for your migration.

Re: How to move a cifs-share to a new vfiler?

as for the shares, you can copy & paste lines from the /etc/cifsconfig_shares.cfg from the vfiler0 to the new vfiler so no need to manualy recreate them.