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: In this example, the -verbose
option is used in the command line in an AIX host:
# snapdrive snap list betty:/vol/vol1:testsnap -v snap name host date snapped ------------------------------------------------------------------ ------------- betty:/vol/vol1:testsnap aix198-75 Jul 31 10:43 test1_SdDg host OS: AIX 3 5 snapshot name: testsnap Volume Manager: aixlvm 5.3 disk group: test1_SdDg host volume: test1_SdHv file system: test1_SdHv file system type: jfs2 mountpoint: /mnt/test1 lun path dev paths ------------------------------------------------------- betty:/vol/vol1/aix198-75_luntest1_SdLun /dev/hdisk32
Example: This example includes messages about Snapshot copies on an AIX host that are not created with SnapDrive for UNIX:
# snapdrive snap show -filer toaster snap name host date snapped ------------------------------------------------------------------ ------------- toaster:/vol/vol1:hourly.0 non-snapdrive snapshot toaster:/vol/vol1:hourly.0 non-snapdrive snapshot toaster:/vol/vol1:snap1 DBserver1 Oct 01 13:42 dg1 dg2 toaster:/vol/vol1:snap2 DBserver2 Oct 10 13:40 DBdg/hvol1 toaster:/vol/vol1:snap3 DBserver3 Oct 31 13:45 DBdg
This example displays a Snapshot copy of an LVM-based file system on an AIX host using the snapdrive snap show
command and the - verbose
option:
# snapdrive snap show -v -fs /mnt/check_submit/csdg2/hv3_0 snapname host date snapped ------------------------------------------------------------------ ------------- toaster:/vol/vol1:mysnapshot sales-aix Aug 24 10:55 csdg2 host OS: AIX 1 5 snapshot name: mysnapshot Volume Manager: aixlvm 5.1 disk group: csdg2 host volume: csdg2_log host volume: csdg2_hv3_0 file system: csdg2_hv3_0 file system type: jfs2 mountpoint: /mnt/check_submit/csdg2/hv3_0 lun path dev paths ------------------------------------------------------- spinel:/vol/vol1/check_submit_aix-4 /dev/hdisk4
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