Module 5: Protecting Data Using Snapshot Technology

Snapshot technology is the virtual copy of a set of files, directories or volumes as they appeared at a particular point in time. A snapshot acts like a detailed table of contents, providing the user with accessible copies of data that they can roll back to.

Snapshots are mostly used to enhance data protection and efficiency storage systems. It was mainly come to solve the several data backup problems such as backing up large amounts of data, recovering corrupted data, and also increasing application performance while a process is running in the back.

NetApp Snapshot technology enables you to create point-in-time copies of file systems, that can use to protect data from a single file to a complete disaster recovery solution. NetApp snapshot technology can use while the application is running mode and it allow you to create Snapshot copies in a second, It doesn’t matter what is the size of the volume or how much activities or workload on your NetApp system. You can make up to 255 copies of snapshot per volume instantly to create the online backup for user-driven recovery.

The tasks for the module 5:

  • Use NetApp OnCommand System Manager to Create a Snapshot copy
  • Restore a Windows File from a Snapshot copy
  • Restore a Linux File From a Snapshot copy
  • Use NetAppp OnCommand system manager to Manage Snapshot copies
  • Restore a file by using the Windows Previous Version tool

Steps for the task: Use NetApp OnCommand System Manager to Create a Snapshot copy

In this task, I will demonstrate how to create Snapshot copy.
Step1: Go to your NetApp System Manager, click Storage > Volumes. Now you need to select a volume on which you want to create a Snapshot copy.  In my case, I chose my NFSvol Volume.1

Step 2: Click Snapshot Copies > Create2.jpg

Step 3: Click the Snapshot Copies tab in the lower pane, You can see a new snapshot copy in the snapshot copies list.

Steps for the task: Restore a Windows File from a Snapshot copy

In this task, I will delete a Windows file from the storage system /etc directory and restore it from a Snapshot copy.
Step1: Before deleting the windows file, You need to enable two options for volume that contain LUNs.  Those two options help you to navigate to the Snapshot directory without error message such as “Permission denied” or “Access not allowed”

vol options vol0 create_ucode on

vol options vol0 convert_ucode on


and before deleting a file from /etc, you need to be sure that you have at least one snapshot copy of vol0.


snap create vol0 snapA


Step 2: In this step, you need to delete a file  “exports.bak file” from /etc directory and try to copy that file from the snapshot. Go to the start ->Run and open the following location:  \\ip_address_of_storage_system\C$6.jpg

Delete etc\exports.bak


Step 3: In this step, you need to restore experts.bak file from the snapshot folder to the original location \etc.

You should see your ~snapshot directory automatically at the \\ip_address_of_storage_system\C$ location if you don’t see it to display. Then execute the following command at the storage system.

options cifs.show_snapshot on

snapshot on.jpg

If you did not see the directory of ~snapshot after executing the above command that means storage system is not configured to display the hidden file and folders. Then follow the below these steps”

a. Open a folder and click Organize > Folder and search options.
b. Click the View tab.
c. Select the Show hidden files and folders option.

If you did not get the solution from the above solution, then disconnect your mapped drive and connect it again \\ip_address_of_storage_system\C$. The ~snapshot folder will appear.10.jpg11.jpg

Now copy the file back to its original location at /etc/exports.bak.12.jpg13.jpg14.jpg

Step for the task: Restore a Linux File From a Snapshot copy

In this task, I will delete a Linux file from the storage system /etc directory and restore it from the Snapshot.

Step 1: Login CLI prompt to navigate to  /vol/NFSvol/nfs_tree1/ and delete the file that you created the previous demo.

# cd /mnt/storage_name/nfs_tree1
# rm file1
# y         [navigate to /vol/NFSvol/nfs_tree1/ and delete file1]

# cd /mnt/storage_name/nfs_tree1/.snapshot/snapA [Change directory  to the .snapshot directory at the root of the mountpoint]

# cp file1 /mnt/storage_name/nfs_tree1 [copy the file from snapshot to orginal location]

# cd /mnt/storage_name/nfs_tree1 [ This command help you to change the directory to the orginal location of the file]

# ls –l file1 [Verify the file that restore or not!]


Steps for the task: Use NetAppp OnCommand system manager to Manage Snapshot copies

In this section, I will discuss how to manage Snapshot copies and Snapshot backup schedules. If you are a system admin and your job is backup and restore. This section is very important because in the production environment, we mainly have to handle and managing system more often.

In this task, I will show how to make snapshot schedule so that the backup snapshot file will be created automatically at that time regularly. You don’t need to process each time manually. This task gives you relax and worry free job done.
Step1 : Go to in NetApp System Manager, click Storage > Volumes. and Select the NASvol volume16.jpg

Step2: Now you need to Click Snapshot Copies > Configure. You will see “The Configure Volume Snapshots” dialogue box appears. In this dialogue box, we will fix a scheduled time to take backup regularly at that time.  17.jpg18.jpg

You can view the snapshot file from snapshot copies tap at the bottom.


Steps for the task: Restore a file by using the Windows Previous Version tool

In this task, I will create a file “test.txt” in the volume vol0 and take a snapshot copy file from that file. After that, I will modify the “test1.txt” file. I will demonstrate here how to restore the original version from the Snapshot after modifing that file by using Windows previous tool.

Step1: You need to create a file named “test.txt”  in vol0 that contains the text “This is line 1″ by the following command in the CLI Storage system console.

wrfile /vol/vol0/test1.txt

This is line1: hello world

[ then press Crt+C for break out the line] you will get error: “read: error reading standard input: Interrupted system call” but don’t worry about it. Your file is alredy written.


Step2: Now you need to view the snapshot copies list of vol0 by the following command line.

snap list vol0


Step3: Now You need to create a snapshot copy for the vol0 by the following code

snap create vol0 snap1


Step 4: In this step, You need to view the test.txt file. You will modify it and after that view it again.

rdfile /vol/vol0/test1.txt


Now I will modify the file with the following command.

wrfile -a /vol/vol0/test1.txt “See you again”


Now you need to view the contents that you wrote for modifying the test.txt file after snapshot.

rdfile /vol/vol0/test1.txt


Step 5: In this step, you will restore the previous version of the file from the windows system environment. Click Start->Run and go the the location of test.txt  \\ip_address_of_storage_system\C$ .26.jpg27.jpg

View your test.txt file and it’s content. 28.jpg

Select the test1.txt file, right-click and select Properties. Then click the “Previous Versions tab“.29.jpg

Click Restore. You will able to see the original file: hello world content.30.jpg



So we are successfully able to restore our original file after modification. This is very important exercise, because, in the real environment, we often restore the original data after file corruption, wrongly updated data or retrieve previous information.

In this exercise, I did not find any errors to do my demonstrate. If you get any error, please write it in the comment box. I will try to give you feedback.

Important Note:

Enabling the create_ucode volume option: 

Data ONTAP requires that the path of a volume or qtree containing an LUN is in the Unicode format. This option is off by default when you create a volume. It is important to enable this option for volumes that contain LUNs.

The module-6, I will discuss ” Creating an LUN“.

Thank you 🙂




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s