CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" >

11.3. Example: create a snapshot

This section shows how to create a snapshot with EVMS:

Example 11-1. Create a snapshot of a volume

Create a new snapshot of /dev/evms/vol on lvm/Sample Container/Sample Region, and call it "snap."

11.3.1. Using the EVMS GUI

To create the snapshot using the GUI, follow these steps:

  1. Select Actions->Create->Feature Object to see a list of EVMS feature objects.

  2. Select Snapshot Feature.

  3. Click Next.

  4. Select lvm/Sample Container/Sample Region.

  5. Click Next.

  6. Select /dev/evms/vol from the list in the "Volume to be Snapshotted" field.

  7. Type snap in the "Snapshot Object Name" field.

  8. Click Create.

Alternatively, you can perform some of the steps to create a snapshot with the GUI context sensitive menu:

  1. From the Available Objects tab, right click lvm/Sample Container/Sample Region.

  2. Click Create Feature Object...

  3. Continue creating the snapshot beginning with step 2 of the GUI instructions. You can skip steps 4 and 5 of the GUI instructions.

11.3.2. Using Ncurses

To create the snapshot, follow these steps:

  1. Select Actions->Create->Feature Object to see a list of EVMS feature objects.

  2. Select Snapshot Feature.

  3. Activate Next.

  4. Select lvm/Sample Container/Sample Region.

  5. Activate Next.

  6. Press spacebar to edit the "Volume to be Snapshotted" field.

  7. Highlight /dev/evms/vol and press spacebar to select.

  8. Activate OK.

  9. Highlight "Snapshot Object Name" and press spacebar to edit.

  10. Type snap at the "::" prompt. Press Enter.

  11. Activate Create.

Alternatively, you can perform some of the steps to create a snapshot with the context sensitive menu:

  1. From the Available Objects view, press Enter on lvm/Sample Container/Sample Region.

  2. Activate the Create Feature Object menu item.

  3. Continue creating the snapshot beginning with step 6 of the Ncurses instructions.

11.3.3. Using the CLI

Use the create command to create a snapshot through the CLI. You pass the "Object" keyword to the create command, followed by the plug-in and its options, and finally the objects.

To determine the options for the plug-in you are going to use, issue the following command:

query: plugins, plugin=Snapshot, list options

Now construct the create command, as follows:

create: object, Snapshot={original=/dev/evms/vol, snapshot=snap}, 
"lvm/Sample Container/Sample Region"