mirror of https://github.com/tLDP/LDP
135 lines
4.9 KiB
XML
135 lines
4.9 KiB
XML
|
|
|
|
|
|
|
|
<chapter id="evmscreatecont"><title>Creating a container </title>
|
|
|
|
<para>This chapter discusses when and how to create a container. </para>
|
|
|
|
|
|
<sect1 id="whencont"><title>When to create a container</title>
|
|
<para>Segments and disks can be combined to form a container. Containers allow
|
|
you to combine
|
|
storage objects and then subdivide those combined storage objects
|
|
into new storage objects. You can
|
|
combine storage objects to implement the volume group concept
|
|
as found in the AIX and Linux logical volume managers.</para>
|
|
<para>Containers are the beginning of more flexible
|
|
volume management. You might want to create a container in order to account for flexibility in your future storage needs. For example, you might
|
|
need to add additional disks when your applications or users need more storage. </para>
|
|
</sect1>
|
|
|
|
<sect1 id="contex"><title>Example: create a container</title>
|
|
<para>This section provides a detailed explanation of how to create a container with EVMS by providing instructions
|
|
to help you complete the following task.</para>
|
|
|
|
|
|
|
|
<blockquote><example><title>Create "Sample Container"</title>
|
|
<para>Given a system with three available disk drives
|
|
(<filename>sdc</filename>, <filename>sdd</filename>, <filename>hdc</filename>),
|
|
use the EVMS LVM Region Manager to combine these disk drives into a
|
|
container called "Sample Container" with a PE size of 16 MB. </para></example></blockquote>
|
|
|
|
|
|
<sect2 id="guicont"><title>Using the EVMS GUI</title>
|
|
<para>To create a container using the EVMS GUI, follow these steps:
|
|
<orderedlist>
|
|
<listitem><para>Select
|
|
<menuchoice>
|
|
<guimenu>Actions</guimenu>
|
|
<guimenuitem>Create</guimenuitem>
|
|
<guimenuitem>Container</guimenuitem></menuchoice>
|
|
to see a list plug-ins that support container creation.</para></listitem>
|
|
|
|
<listitem><para>Select the
|
|
<guimenu>LVM Region Manager</guimenu>. Click
|
|
<guibutton>Next</guibutton>.</para>
|
|
|
|
<para>The next dialog window contains a list of storage objects
|
|
that the LVM Region Manager can use to create a container. </para></listitem>
|
|
|
|
<listitem><para>Select <guilabel>sdc</guilabel>, <guilabel>sdd</guilabel>, and
|
|
<guilabel>hdc</guilabel> from the list. Click
|
|
<guibutton>Next</guibutton>.</para></listitem>
|
|
|
|
<listitem><para>Enter the name <userinput>Sample Container</userinput>
|
|
for the container and <userinput>16MB</userinput> in the
|
|
<guilabel>PE size</guilabel> field.</para></listitem>
|
|
|
|
<listitem><para>Click
|
|
<guibutton>Create</guibutton>.
|
|
A window opens to display the
|
|
outcome.</para>
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<!--ncurses-->
|
|
|
|
<sect2 id="ncurcont"><title>Using Ncurses</title>
|
|
<para>To create a container using the Ncurses interface, follow these
|
|
steps:
|
|
<orderedlist>
|
|
<listitem><para>Select <menuchoice><guimenu>Actions</guimenu>
|
|
<guimenuitem>Create</guimenuitem><guimenuitem>Container</guimenuitem></menuchoice>
|
|
to see a list of plug-ins that support container creation.</para> </listitem>
|
|
|
|
<listitem><para>Select the
|
|
<guimenuitem>LVM Region Manager</guimenuitem>. Activate
|
|
<keycap>Next</keycap>. </para>
|
|
<para>The next dialog window contains a list
|
|
of storage objects that the LVM Region Manager can use to
|
|
create the container.</para></listitem>
|
|
|
|
<listitem><para>Select <guilabel>sdc</guilabel>, <guilabel>sdd</guilabel>, and
|
|
<guilabel>hdc</guilabel> from the list. Activate
|
|
<guibutton>Next</guibutton>.</para> </listitem>
|
|
|
|
<listitem><para>Press <keycap>spacebar</keycap> to select the field for
|
|
the container name. </para> </listitem>
|
|
|
|
<listitem><para>Type <userinput>Sample Container</userinput> at the "::" prompt. Press
|
|
<keycap>Enter</keycap>.</para> </listitem>
|
|
|
|
|
|
<listitem><para>Scroll down until <guilabel>PE Size</guilabel> is highlighted.
|
|
Press <keycap>spacebar</keycap>.</para></listitem>
|
|
|
|
|
|
<listitem><para>Scroll down until <guilabel>16MB</guilabel> is highlighted.
|
|
Press <keycap>spacebar</keycap>.</para></listitem>
|
|
|
|
|
|
<listitem><para>Activate <guibutton>OK</guibutton>.</para></listitem>
|
|
|
|
<listitem><para>Activate <guibutton>Create</guibutton>.</para></listitem>
|
|
</orderedlist>
|
|
</para>
|
|
</sect2>
|
|
<!--CLI-->
|
|
<sect2 id="clicont"><title>Using the CLI</title>
|
|
|
|
<para>The <command>Create</command> command
|
|
creates containers. The first argument
|
|
in the <command>Create</command> command is the type of object to
|
|
produce, in this case a container. The
|
|
<command>Create</command> 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:</para>
|
|
|
|
<programlisting>Create:Container,LvmRegMgr={name="Sample Container",pe_size=16MB},sdc,sdd,hdc
|
|
</programlisting>
|
|
|
|
<para>The previous example accepts the default values for all options
|
|
you don't specify. To see the options for this command type:
|
|
<programlisting>query:plugins,plugin=LvmRegMgr,list options</programlisting></para>
|
|
</sect2>
|
|
|
|
</sect1>
|
|
</chapter> |