486 lines
6.6 KiB
HTML
486 lines
6.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Example: create a snapshot</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="EVMS User Guide"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Creating snapshots"
|
|
HREF="evmscreatesnap.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Creating snapshot objects"
|
|
HREF="createactivsnap.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Reinitializing a snapshot"
|
|
HREF="x1717.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>EVMS User Guide</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="createactivsnap.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 11. Creating snapshots</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x1717.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="snapshotex"
|
|
></A
|
|
>11.3. Example: create a snapshot</H1
|
|
><P
|
|
> This section shows how to create a snapshot with EVMS:</P
|
|
><A
|
|
NAME="AEN1606"
|
|
></A
|
|
><BLOCKQUOTE
|
|
CLASS="BLOCKQUOTE"
|
|
><DIV
|
|
CLASS="example"
|
|
><A
|
|
NAME="AEN1607"
|
|
></A
|
|
><P
|
|
><B
|
|
>Example 11-1. Create a snapshot of a volume</B
|
|
></P
|
|
><P
|
|
>Create a new snapshot of <TT
|
|
CLASS="filename"
|
|
>/dev/evms/vol</TT
|
|
> on
|
|
<TT
|
|
CLASS="filename"
|
|
>lvm/Sample Container/Sample Region</TT
|
|
>, and call
|
|
it "snap."</P
|
|
></DIV
|
|
></BLOCKQUOTE
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="guisnapshot"
|
|
></A
|
|
>11.3.1. Using the EVMS GUI</H2
|
|
><P
|
|
>To create the snapshot using the GUI, follow these steps:
|
|
<P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Select
|
|
<SPAN
|
|
CLASS="guimenu"
|
|
>Actions</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Create</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Feature Object</SPAN
|
|
>
|
|
to see a list of EVMS feature objects.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select
|
|
<SPAN
|
|
CLASS="guimenuitem"
|
|
>Snapshot Feature</SPAN
|
|
>.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guimenuitem"
|
|
>lvm/Sample Container/Sample Region</SPAN
|
|
>. </P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guimenuitem"
|
|
>/dev/evms/vol</SPAN
|
|
> from the list in the
|
|
"Volume to be Snapshotted" field.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Type <TT
|
|
CLASS="filename"
|
|
>snap</TT
|
|
> in the "Snapshot Object Name" field.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click <SPAN
|
|
CLASS="guibutton"
|
|
>Create</SPAN
|
|
>.
|
|
</P
|
|
></LI
|
|
></OL
|
|
></P
|
|
><P
|
|
>Alternatively, you can perform some of the steps to create a snapshot with the GUI
|
|
context sensitive menu:</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>From the <SPAN
|
|
CLASS="guimenuitem"
|
|
>Available Objects</SPAN
|
|
> tab, right click
|
|
<SPAN
|
|
CLASS="guimenuitem"
|
|
>lvm/Sample Container/Sample Region</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click <SPAN
|
|
CLASS="guimenuitem"
|
|
>Create Feature Object...</SPAN
|
|
></P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Continue creating the snapshot beginning with step 2 of the
|
|
GUI instructions. You can skip steps 4 and 5 of the GUI instructions.</P
|
|
></LI
|
|
></OL
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="ncursnapshot"
|
|
></A
|
|
>11.3.2. Using Ncurses</H2
|
|
><P
|
|
>To create the snapshot, follow these steps:</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guimenu"
|
|
>Actions</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Create</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Feature Object</SPAN
|
|
>
|
|
to see a list of EVMS feature objects.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guimenuitem"
|
|
>Snapshot Feature</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Activate <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select <TT
|
|
CLASS="filename"
|
|
>lvm/Sample Container/Sample Region.</TT
|
|
></P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Activate <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Press
|
|
<B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
> to edit the "Volume to be Snapshotted" field.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Highlight <TT
|
|
CLASS="filename"
|
|
>/dev/evms/vol</TT
|
|
> and press <B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
> to select.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Activate <SPAN
|
|
CLASS="guibutton"
|
|
>OK</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Highlight "Snapshot Object Name" and press <B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
> to edit.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Type <TT
|
|
CLASS="userinput"
|
|
><B
|
|
>snap</B
|
|
></TT
|
|
> at the "::" prompt.
|
|
Press <B
|
|
CLASS="keycap"
|
|
>Enter</B
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Activate <SPAN
|
|
CLASS="guibutton"
|
|
>Create</SPAN
|
|
>.</P
|
|
></LI
|
|
></OL
|
|
><P
|
|
>Alternatively, you can perform some of the steps to create a snapshot with the
|
|
context sensitive menu:</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>From the Available Objects view, press <B
|
|
CLASS="keycap"
|
|
>Enter</B
|
|
> on <TT
|
|
CLASS="filename"
|
|
>lvm/Sample Container/Sample Region</TT
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Activate the <SPAN
|
|
CLASS="guimenuitem"
|
|
>Create Feature Object</SPAN
|
|
> menu item.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Continue creating the snapshot beginning with step 6 of the Ncurses
|
|
instructions.</P
|
|
></LI
|
|
></OL
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="clisnapshot"
|
|
></A
|
|
>11.3.3. Using the CLI</H2
|
|
><P
|
|
>Use the
|
|
<B
|
|
CLASS="command"
|
|
>create</B
|
|
> command to create a snapshot through the CLI. You pass the "Object" keyword to the <B
|
|
CLASS="command"
|
|
>create</B
|
|
> command, followed by the plug-in and its options, and finally the objects. </P
|
|
><P
|
|
>To determine the options for the plug-in you are going to use, issue the following command:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
>query: plugins, plugin=Snapshot, list options</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>Now construct the <B
|
|
CLASS="command"
|
|
>create</B
|
|
> command, as follows:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
>create: object, Snapshot={original=/dev/evms/vol, snapshot=snap},
|
|
"lvm/Sample Container/Sample Region"</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="createactivsnap.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x1717.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Creating snapshot objects</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="evmscreatesnap.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Reinitializing a snapshot</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |