XDP restore

1. Create some files in the XDP volume

root:~# cd /mnt/210/src_xdp
root:/mnt/210/src_xdp# touch a b c d

2. Create a snapshot with the correct snapmirror-label for the xdp volume
cl1::*> snap create -vserver v_src -volume src_xdp -snapshot snap1 -snapmirror-label xdp_label

3. Run a snapmirror update
cl2::*> snapmirror update -destination-path v_dst:dst_xdp

4. Remove the files from linux
root:/mnt/210/src_xdp# rm *
root:/mnt/210/src_xdp# ls

5. Restore a single file
cl1::*> snapmirror restore -destination-path v_src:src_xdp -source-path v_dst:dst_xdp snap1 -file-list /a

6. Restore a file under a different name
cl1::*> snapmirror restore -destination-path v_src:src_xdp -source-path v_dst:dst_xdp snap1 -file-list /b,@/b_restored

8. List restored files
root:/mnt/210/src_xdp# ls
a b_restored

7. Restore the entire volume.
cl1::*> snapmirror restore -destination-path v_src:src_xdp -source-path v_dst:dst_xdp snap1
8. Check on linux
root:/mnt/210/src_xdp# cd /
root:/# ls /mnt/210/src_xdp
a b c d
(NOTE: if you see no files, remount the volume)

- back -