old-www/LDP/EVMSUG/html/crregex.html

534 lines
7.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Example: create a region</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 regions"
HREF="evmscreatereg.html"><LINK
REL="PREVIOUS"
TITLE="When to create regions"
HREF="x1320.html"><LINK
REL="NEXT"
TITLE="Creating drive links"
HREF="evmscreatedrivelinking.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="x1320.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 9. Creating regions</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="evmscreatedrivelinking.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="crregex"
></A
>9.2. Example: create a region</H1
><P
>This section tells how to create a region with EVMS by
providing instructions to help you complete the following task.</P
><A
NAME="AEN1326"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><DIV
CLASS="example"
><A
NAME="AEN1327"
></A
><P
><B
>Example 9-1. Create "Sample Region"</B
></P
><P
>Given the container "Sample Container," which has a freespace region of
8799 MB, create a data region 1000 MB in size named "Sample Region."</P
></DIV
></BLOCKQUOTE
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="guireg"
></A
>9.2.1. Using the EVMS GUI</H2
><P
>To create a region, follow these steps:
<P
></P
><OL
TYPE="1"
><LI
><P
>Select
<SPAN
CLASS="guimenu"
>Actions</SPAN
>-&gt;<SPAN
CLASS="guimenuitem"
>Create</SPAN
>-&gt;<SPAN
CLASS="guimenuitem"
>Region</SPAN
>
</P
></LI
><LI
><P
>Select
the <SPAN
CLASS="guisubmenu"
>LVM Region
Manager</SPAN
>. Click <SPAN
CLASS="guibutton"
>Next</SPAN
>.</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>NOTE</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>You might
see additional region managers that were
not in the selection list when you were creating the storage container
because not all region
managers are required to support containers.</P
></TD
></TR
></TABLE
></DIV
></LI
><LI
><P
>Select the freespace region from
the container you created in
<A
HREF="evmscreatecont.html"
>Chapter 8</A
>.
Verify that the region is named
<TT
CLASS="filename"
>lvm/Sample Container/Freespace</TT
>.
Click <SPAN
CLASS="guibutton"
>Next</SPAN
>.</P
><P
>The fields in the next window are the options for the
LVM Region Manager plug-in, the options marked with an "*" are required. </P
></LI
><LI
><P
>Fill in the name, <TT
CLASS="userinput"
><B
>Sample Region</B
></TT
>.</P
></LI
><LI
><P
>Enter <TT
CLASS="userinput"
><B
>1000MB</B
></TT
> in the <SPAN
CLASS="guilabel"
>size</SPAN
> field.</P
></LI
><LI
><P
>Click the
<SPAN
CLASS="guibutton"
>Create</SPAN
> button to complete the
operation. A window opens to display the outcome.</P
></LI
></OL
>
</P
><P
>Alternatively, you can perform some of the steps for creating a region with the GUI context sensitive menu:</P
><P
></P
><OL
TYPE="1"
><LI
><P
>From the <SPAN
CLASS="guimenuitem"
>Regions</SPAN
> tab, right click
<TT
CLASS="filename"
>lvm/Sample Container/Freespace</TT
>.</P
></LI
><LI
><P
>Click <SPAN
CLASS="guibutton"
>Create Region</SPAN
>.</P
></LI
><LI
><P
>Continue beginning with step 4 of the GUI instructions.</P
></LI
></OL
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="ncurreg"
></A
>9.2.2. Using Ncurses</H2
><P
>To create a region, follow these steps:
<P
></P
><OL
TYPE="1"
><LI
><P
>Select
<SPAN
CLASS="guimenu"
>Actions</SPAN
>-&gt;<SPAN
CLASS="guimenuitem"
>Create</SPAN
>-&gt;<SPAN
CLASS="guimenuitem"
>Region</SPAN
>.</P
></LI
><LI
><P
>Select the
<SPAN
CLASS="guimenuitem"
>LVM Region
Manager</SPAN
>. Activate <B
CLASS="keycap"
>Next</B
>.</P
></LI
><LI
><P
>Select the freespace
region from the container you created
earlier in <A
HREF="evmscreatecont.html"
>Chapter 8</A
>. Verify that
the region is named
<TT
CLASS="filename"
>lvm/Sample Container/Freespace</TT
>.</P
></LI
><LI
><P
>Scroll to the <SPAN
CLASS="guilabel"
>Name</SPAN
> field, and press
<B
CLASS="keycap"
>spacebar</B
>.</P
></LI
><LI
><P
>Type <TT
CLASS="userinput"
><B
>Sample Region</B
></TT
> at the "::" prompt.
Press <B
CLASS="keycap"
>Enter</B
>.</P
></LI
><LI
><P
>Scroll to the <SPAN
CLASS="guilabel"
>size</SPAN
> field,
and press <B
CLASS="keycap"
>spacebar</B
>.</P
></LI
><LI
><P
>Type <TT
CLASS="userinput"
><B
>1000MB</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
><P
>Alternatively, you can perform some of the steps for creating a region with the
context sensitive menu:</P
><P
></P
><OL
TYPE="1"
><LI
><P
>From the Storage Regions view, press <B
CLASS="keycap"
>Enter</B
> on
<TT
CLASS="filename"
>lvm/Sample Container/Freespace</TT
>.</P
></LI
><LI
><P
>Activate the <SPAN
CLASS="guimenuitem"
>Create Region</SPAN
> menu item.</P
></LI
><LI
><P
>Continue beginning with step 4 of the Ncurses instructions.</P
></LI
></OL
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="clireg"
></A
>9.2.3. Using the CLI</H2
><P
>Create regions with the <B
CLASS="command"
>Create</B
>
command. Arguments to the <B
CLASS="command"
>Create </B
>command are
the following: keyword Region, the name of the
region manager to use, the region managers
options, and the objects to consume. The form of this command is:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>Create:region, LvmRegMgr={name="Sample Region", size=1000MB},
"lvm/Sample Container/Freespace"</PRE
></FONT
></TD
></TR
></TABLE
><P
>The LVM Region Manager supports many
options for creating regions. To see the
available options for creating regions and
containers, use the following <B
CLASS="command"
>Query</B
>:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>query:plugins,plugin=LvmRegMgr,list options</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="x1320.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="evmscreatedrivelinking.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>When to create regions</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="evmscreatereg.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Creating drive links</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>