ONTAP Discussions

SnapRestore in SAN environment --- Not work

tuandongoc
3,197 Views

Hello,

I see in the book : "Data ONTAPTM 6.4.2 System Administration Block Access Management Guide" the way to use SnapRestore to restore of a LUN

Restoring a snapshot of a LUN

To use SnapRestore to restore a snapshot of a LUN, complete the following steps.

Step Action

1 From the host, stop all host access to the LUN.

2 From the host, if the LUN contains a host file system mounted on a

host, unmount the LUN on that host.

3 From the filer, unmap the LUN by entering the following command:

lun unmap lun-path initiator-group

4 Enter the following command:

snap restore [-f] [-t vol] volume_name [-s snapshot_name]

Step 1, 2 and 3 is OK but in step 4 i have the error

> snap restore -t vol /vol/vol3 -s mysnap1
snap restore: Has extra arguments.
> snap restore -t vol vol3 -s mysnap1
snap restore: Has extra arguments.
>

first , how can i solve the issue ???

second; i think the steps above : "it is a reverting a Volume from Snapshot", What is your ideal ?

2 REPLIES 2

charterit
3,197 Views

if you are running OnTap 7.2.4 the command and options are...

snap restore [-A | -V] [-f] [-t vol | file] [-s <snapshot-name>] [-r <restore-as-path>] <vol-name> | <restore-from-path>

so to restore from your vol3 i think it should look like....

snap restore -t vol3 -s <snapshot-name> -r <restore-as-path> <vol-name> <restore-from-path>

Eric

adamfox
3,197 Views

Keep in mind, you only have to use -r if you want to restore it another place rather than just restoring it in-place. If you restore it to another place, you will need to have the available space to store it.

Public