NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

copy 120 volumes from one filer to another

CCOLEMAN_
5,345 Views

Is there a way to copy 120 volume names, sizes etc, from one filer to another?

I don't want to copy the data, I'm doing that with snapmirror.

I just want to recreate all the volumes with the same structure on a new filer i'm migrating to.

What's the best way to do this?

1 ACCEPTED SOLUTION

aborzenkov
5,345 Views

But he's going to use SnapMirror anyway, so if it is possible to resume it later for each volume from existing snapshots, it could be interesting option. Otherwise the biggest downside is need to copy all the data just to create volumes.

I think this is where power shell toolkit could be quite useful. Not being PS expert, I assume it is something like

$source = connect-NaController -Name source

$target = connect-NaController -Name target

get-NaVol -controller $source | New-NaVol -controller $target -Name $_.Name $targetaggr -Size $_.TotalSize ...

Thanks to http://communities.netapp.com/docs/DOC-6293 for explaining how to work with multiple controllers.

Message was edited by: Andrey Borzenkov

View solution in original post

3 REPLIES 3

CCOLEMAN_
5,345 Views

what file is all of this information stored in?

radek_kubka
5,345 Views

Hi,

I think you can consider using aggr copy:

http://now.netapp.com/NOW/knowledge/docs/ontap/rel80/html/ontap/cmdref/man1/na_aggr.1.htm

The biggest downside: unlike with SnapMirror, there is no incremental update.

Regards,

Radek

aborzenkov
5,346 Views

But he's going to use SnapMirror anyway, so if it is possible to resume it later for each volume from existing snapshots, it could be interesting option. Otherwise the biggest downside is need to copy all the data just to create volumes.

I think this is where power shell toolkit could be quite useful. Not being PS expert, I assume it is something like

$source = connect-NaController -Name source

$target = connect-NaController -Name target

get-NaVol -controller $source | New-NaVol -controller $target -Name $_.Name $targetaggr -Size $_.TotalSize ...

Thanks to http://communities.netapp.com/docs/DOC-6293 for explaining how to work with multiple controllers.

Message was edited by: Andrey Borzenkov

Public