Tuesday, June 26, 2012

NetApp Aggregate Snapshot - Complete reference

In general you no need to create aggregate snapshot, a schedule is automatically set up to generate new aggregate Snapshot copies periodically. But if you wish to stop taking snapshot automatically
Disable automatic snapshot schedule

aggr options <aggr_name> nosnap on

Delete Aggr snapshot

snap delete -A aggr_name <aggr_snapshot>

To change the snap reservation

snap reserve -A <aggr_name> 0

How to restore data from aggregate snapshot

As per my knowledge and tested in my lab environment snap restore –A option will restore entire volume to the aggregate, if you don’t want to do this, if you would like to restore a single volume/file you can use “aggr copy start command”

Pre-checks:
  • The volume you lost data from is a flexible volume 
  • Identify an aggregate which is empty so it can be used for destination (could be on another controller also) 
  • Make sure the destination aggregate is either equal or larger than source aggregate 
  • /etc/hosts.equiv has entry for the filer you want to copy data to and /etc/hosts has its IP address added, in case of copying on same controller loopback address (127.0.0.1) should be added in /etc/hosts file and local filername should be in hosts.equiv file 
  • Name of aggregate’s snapshot which you want to copy 

Example:

Let’s say the volume we lost data was ‘vol1’, the aggregate which has this volume is ‘aggr_source’, the aggregate’s snapshot which has lost data is ‘hourly.1’ and empty aggregate where we will be storing data to is ‘aggr_destination’


Execution:
  • Restrict the destination aggregate using  ‘aggr restrict aggr_destination’ 
  • Start the aggregate data copy using ‘aggr copy start –s hourly.1 aggr_source aggr_dest’ 
  • Once the copy is completed online the aggregate using ‘aggr online aggr_dest’ 
  • If you have done copy on same controller, system will rename the volume ‘vol1’ of ‘aggr_destination’ to ‘vol1(1)’ 
  • Now export the volume or lun and you have your all lost data available or you can vol copy command to original aggregate. Delete the old one.

No comments:

Post a Comment

Hello

Hello