HP SAN Virtualization Services Platform User Manual

Page 72

Advertising
background image

3.

Find all PiTs of the whole SAN.

Run the ListSnapshots command, and select all objects that have their master flag set to
TRUE.

The output is an unordered list of “PiT1 . . . PiT12.”

4.

Find all snapshots of the whole SAN.

Run the ListSnapshots command, and select all objects that have their master flag set to
FALSE.

The output is an unordered list of “snapshot1 . . . snapshot6.”

5.

Find the branch of PiTs for VirtualDisk1.

Run the ListPiTsChain command with the input “VirtualDisk1.”

The output is an ordered list of “PiT1, PiT2, PiT3” (by time of the PiT, from oldest to newest).

6.

Find branch of PiTs of snapshot “PiT1.”

Run the ListPiTsChain command with the input “snapshot1.”

The output is an ordered list “PiT4, PiT5, PiT11.”

7.

Find branch of PiTs of “PiT4.”

Run the ListPiTsChain command with the input “PiT4.”

The output is an ordered list “PiT5, PiT11.”

8.

Find branch of PiTs of “PiT12.”

Run the ListPiTsChain command with the input “PiT12.”

The output is an empty list.

9.

Find all direct snapshots of “PiT1.”

Run the ListSnapshotsChain command with the input “PiT1.”

The output is an unordered list of “snapshot1, snapshot5.”

10.

Find the source of an object (snapshot or PiT).

Run the GetSnapshotData command for the required snapshot or PiT object.

The returned source name holds the name of the source.
• For PiT: PiT, snapshot, or virtual disk
• For snapshot: PiT

The returned name also returns a flag (iSourceIsVirtualDisk) that is set (!=1) if the source is a
virtual disk. For example:
• GetSnapshotData for “PiT4” returns “snapshot1” in the source virtual disk name field.
• GetSnapshotData for “snapshot1,” “snapshot5” returns “PiT1” in the source virtual disk

name field.

• GetSnapshotData for “PiT1” returns “VirtualDisk1” in the source virtual disk name field.

Using the VSM API to traverse the snapshot tree

72

Advertising