Displaying a Snapshot copy
The command snapdrive snap show
or list
displays the name of the storage system where the Snapshot copy is created, the host name, date and time, and so on.
-
Enter the following command syntax to display a Snapshot copy:
snapdrive snap show [-snapname] long_snap_name [snap_name…] [-verbose]
This operation displays, at a minimum, the following information about the Snapshot copy:
-
The name of the storage system where the Snapshot copy is created
-
The name of the host that took the Snapshot copy
-
The path to the LUNs on the storage system
-
The date and time the Snapshot copy was created
-
The name of the Snapshot copy
-
The names of the disk groups included in the Snapshot copy
Example: The following are examples of snapdrive snap show
commands:
# snapdrive snap show -snapname toaster:/vol/vol2:snapA snapX snapY # snapdrive snap show -verbose toaster:/vol/vol2:snapA /vol/vol3:snapB snapC # snapdrive snap show toaster:/vol/vol2:snapA # snapdrive snap list -dg dg1 dg2
Example: This example uses a wildcard to display information about the available Snapshot copies on a particular volume:
# snapdrive snap show toaster:/vol/vol1:* snap name host date snapped ------------------------------------------------------------------ ------------- toaster:/vol/vol1:sss1 DBserver Mar 12 16:19 dg1 toaster:/vol/vol1:testdg DBserver Mar 12 15:35 dg1 toaster:/vol/vol1:t1 DBserver Mar 10 18:06 dg1 toaster:/vol/vol1:hp_1 HPserver Mar 8 19:01 vg01 toaster:/vol/vol1:r3 DBserver Mar 8 13:39 rdg1 toaster:/vol/vol1:r1 DBserver Mar 8 13:20 rdg1 toaster:/vol/vol1:snap2 DBserver Mar 8 11:51 rdg1toaster:/vol/vol1:snap_p1 DBserver Mar 8 10:18 rdg1
Example: The following examples use wildcard:
# snapdrive snap show toaster:/vol/volX:* # snapdrive snap show -v toaster:/vol/volX:DB1* filer1:/vol/volY:DB2* # snapdrive snap show toaster:/vol/vol2:mysnap* /vol/vol2:yoursnap* hersnap* # snapdrive snap show toaster:/vol/volX:*
Example: In this example use of a wildcard is invalid because the wildcard is in the middle of the name instead of being placed at the end:
# snap show toaster:/vol/vol1:my*snap