459 lines
6.3 KiB
HTML
459 lines
6.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Example: create a container</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 a container "
|
|
HREF="evmscreatecont.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="When to create a container"
|
|
HREF="whencont.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Creating regions"
|
|
HREF="evmscreatereg.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="whencont.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 8. Creating a container</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="evmscreatereg.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="contex"
|
|
></A
|
|
>8.2. Example: create a container</H1
|
|
><P
|
|
>This section provides a detailed explanation of how to create a container with EVMS by providing instructions
|
|
to help you complete the following task.</P
|
|
><A
|
|
NAME="AEN1230"
|
|
></A
|
|
><BLOCKQUOTE
|
|
CLASS="BLOCKQUOTE"
|
|
><DIV
|
|
CLASS="example"
|
|
><A
|
|
NAME="AEN1231"
|
|
></A
|
|
><P
|
|
><B
|
|
>Example 8-1. Create "Sample Container"</B
|
|
></P
|
|
><P
|
|
>Given a system with three available disk drives
|
|
(<TT
|
|
CLASS="filename"
|
|
>sdc</TT
|
|
>, <TT
|
|
CLASS="filename"
|
|
>sdd</TT
|
|
>, <TT
|
|
CLASS="filename"
|
|
>hdc</TT
|
|
>),
|
|
use the EVMS LVM Region Manager to combine these disk drives into a
|
|
container called "Sample Container" with a PE size of 16 MB. </P
|
|
></DIV
|
|
></BLOCKQUOTE
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="guicont"
|
|
></A
|
|
>8.2.1. Using the EVMS GUI</H2
|
|
><P
|
|
>To create a container using the EVMS 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"
|
|
>Container</SPAN
|
|
>
|
|
to see a list plug-ins that support container creation.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select the
|
|
<SPAN
|
|
CLASS="guimenu"
|
|
>LVM Region Manager</SPAN
|
|
>. Click
|
|
<SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
><P
|
|
>The next dialog window contains a list of storage objects
|
|
that the LVM Region Manager can use to create a container. </P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guilabel"
|
|
>sdc</SPAN
|
|
>, <SPAN
|
|
CLASS="guilabel"
|
|
>sdd</SPAN
|
|
>, and
|
|
<SPAN
|
|
CLASS="guilabel"
|
|
>hdc</SPAN
|
|
> from the list. Click
|
|
<SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Enter the name <TT
|
|
CLASS="userinput"
|
|
><B
|
|
>Sample Container</B
|
|
></TT
|
|
>
|
|
for the container and <TT
|
|
CLASS="userinput"
|
|
><B
|
|
>16MB</B
|
|
></TT
|
|
> in the
|
|
<SPAN
|
|
CLASS="guilabel"
|
|
>PE size</SPAN
|
|
> field.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click
|
|
<SPAN
|
|
CLASS="guibutton"
|
|
>Create</SPAN
|
|
>.
|
|
A window opens to display the
|
|
outcome.</P
|
|
></LI
|
|
></OL
|
|
>
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="ncurcont"
|
|
></A
|
|
>8.2.2. Using Ncurses</H2
|
|
><P
|
|
>To create a container using the Ncurses interface, follow these
|
|
steps:
|
|
<P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guimenu"
|
|
>Actions</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Create</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Container</SPAN
|
|
>
|
|
to see a list of plug-ins that support container creation.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select the
|
|
<SPAN
|
|
CLASS="guimenuitem"
|
|
>LVM Region Manager</SPAN
|
|
>. Activate
|
|
<B
|
|
CLASS="keycap"
|
|
>Next</B
|
|
>. </P
|
|
><P
|
|
>The next dialog window contains a list
|
|
of storage objects that the LVM Region Manager can use to
|
|
create the container.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guilabel"
|
|
>sdc</SPAN
|
|
>, <SPAN
|
|
CLASS="guilabel"
|
|
>sdd</SPAN
|
|
>, and
|
|
<SPAN
|
|
CLASS="guilabel"
|
|
>hdc</SPAN
|
|
> from the list. Activate
|
|
<SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Press <B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
> to select the field for
|
|
the container name. </P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Type <TT
|
|
CLASS="userinput"
|
|
><B
|
|
>Sample Container</B
|
|
></TT
|
|
> at the "::" prompt. Press
|
|
<B
|
|
CLASS="keycap"
|
|
>Enter</B
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Scroll down until <SPAN
|
|
CLASS="guilabel"
|
|
>PE Size</SPAN
|
|
> is highlighted.
|
|
Press <B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Scroll down until <SPAN
|
|
CLASS="guilabel"
|
|
>16MB</SPAN
|
|
> is highlighted.
|
|
Press <B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Activate <SPAN
|
|
CLASS="guibutton"
|
|
>OK</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Activate <SPAN
|
|
CLASS="guibutton"
|
|
>Create</SPAN
|
|
>.</P
|
|
></LI
|
|
></OL
|
|
>
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="clicont"
|
|
></A
|
|
>8.2.3. Using the CLI</H2
|
|
><P
|
|
>The <B
|
|
CLASS="command"
|
|
>Create</B
|
|
> command
|
|
creates containers. The first argument
|
|
in the <B
|
|
CLASS="command"
|
|
>Create</B
|
|
> command is the type of object to
|
|
produce, in this case a container. The
|
|
<B
|
|
CLASS="command"
|
|
>Create</B
|
|
> command then accepts
|
|
the following arguments: the region manager to
|
|
use along with any parameters it might need, and
|
|
the segments or disks to create the container
|
|
from. The command to complete the previous example is:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
>Create:Container,LvmRegMgr={name="Sample Container",pe_size=16MB},sdc,sdd,hdc
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>The previous example accepts the default values for all options
|
|
you don't specify. To see the options for this command type:
|
|
<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
|
|
></P
|
|
></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="whencont.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="evmscreatereg.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>When to create a container</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="evmscreatecont.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Creating regions</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |