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:
Select
->->
to see a list of EVMS feature objects.
Select
.
Click Next.
Select .
Click Next.
Select from the list in the
"Volume to be Snapshotted" field.
Type snap in the "Snapshot Object Name" field.
Click Create.
Alternatively, you can perform some of the steps to create a snapshot with the GUI
context sensitive menu:
From the tab, right click
.
Click
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:
Select ->->
to see a list of EVMS feature objects.
Select .
Activate Next.
Select lvm/Sample Container/Sample Region.
Activate Next.
Press
spacebar to edit the "Volume to be Snapshotted" field.
Highlight /dev/evms/vol and press spacebar to select.
Activate OK.
Highlight "Snapshot Object Name" and press spacebar to edit.
Type snap at the "::" prompt.
Press Enter.
Activate Create.
Alternatively, you can perform some of the steps to create a snapshot with the
context sensitive menu:
From the Available Objects view, press Enter on lvm/Sample Container/Sample Region.
Activate the menu item.
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" |