Move Volume to another Aggregate on NetAPP OnTAP 8

Overview

In this tutorial we will be using NetAPP FAS3210 to demonstrate How to Move Volume to another Aggregate on NetAPP OnTAP 8.

Stop NFS Exports

Log-in to NetAPP with SSH / Console (We used PUTTY)

First you need to stop NFS Shares on the needed volume.
I used rdfile to copy the settings from the contents of /etc/exports :

[code lang=”bash” inline=”yes”]
rdfile /etc/exports
[/code]

Now paste it into a text editor and copy everything besides the lines about your volume and then paste it back to the file :

[code lang=”bash” inline=”yes”]
wrfile /etc/exports
[/code]

Exit wrfile with Ctrl-C and export the file :

[code lang=”bash” inline=”yes”]
exportfs -r
[/code]

Stop CIFS Service

[code lang=”bash” inline=”yes”]
cifs terminate
[/code]

Move Volume to another Aggregate

After we have stopped all sharing services on this volume we can move Volume to another Aggregate:
[code lang=”bash” inline=”yes”]
vol move start volume-name destination-aggregate
[/code]

you can monitor the process using :

[code lang=”bash” inline=”yes”]
snapmirror status
[/code]

Wait until you see:

“Successfully completed move of volume volname to aggr aggrname.”

Restore Exports

Now we need to put the NFS exports back so copy the content from the text editor and paste it into the file :

[code lang=”bash” inline=”yes”]
wrfile /etc/exports
[/code]

Exit wrfile with Ctrl-C and export the file :

[code lang=”bash” inline=”yes”]
exportfs -r
[/code]

Start CIFS Service

[code lang=”bash” inline=”yes”]
cifs restart
[/code]

 

All Done!

Leave a Reply

Your email address will not be published.

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.