mirror of https://github.com/tLDP/LDP
166 lines
6.0 KiB
XML
166 lines
6.0 KiB
XML
<chapter id="evmscreatecont"><title>Creating a Container </title>
|
|
|
|
<para>The following chapter discusses when and how to create a container. </para>
|
|
|
|
|
|
<sect1 id="whencont"><title>When to Create a Container</title>
|
|
<para>Segments and disks may 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>Working through an Example</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 (sdc, sdd, hdc), 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 the steps below:
|
|
<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 the
|
|
<guibutton>Create</guibutton>
|
|
button. A window that displays the
|
|
outcome appears.</para>
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<!--ncurses-->
|
|
|
|
<sect2 id="ncurcont"><title>Using Ncurses</title>
|
|
<para>To create a container using the Ncurses interface, follow the steps below:
|
|
<orderedlist>
|
|
<listitem><para>Press the
|
|
<keycap>4</keycap> key to switch
|
|
views.</para> </listitem>
|
|
|
|
<listitem><para>Scroll down the list
|
|
using the down arrow key to the
|
|
<guimenuitem>Storage
|
|
Containers</guimenuitem>. Press the
|
|
<keycap>Enter</keycap> key.</para> </listitem>
|
|
|
|
<listitem><para>Press the <keycap>Enter</keycap> key again to
|
|
display a sub menu.</para> </listitem>
|
|
|
|
<listitem><para>Scroll down until you highlight <guimenuitem>Create a New Container</guimenuitem>.
|
|
Press the <keycap>Enter</keycap> key. You should see a list of plug-ins that support container
|
|
creation.</para> </listitem>
|
|
|
|
<listitem><para>Select
|
|
<guimenuitem>LVM Region Manager</guimenuitem>. Press the
|
|
<keycap>Enter</keycap> key.</para>
|
|
|
|
<para>The next sub menu contains a
|
|
list of storage objects, such as
|
|
segments, disks, or regions the
|
|
LVM Region Manager finds acceptable to
|
|
use for the creation of a
|
|
container.</para> </listitem>
|
|
|
|
<listitem><para>Use the
|
|
<keycap>spacebar</keycap> to select <guilabel>sdc</guilabel>,
|
|
<guilabel>sdd</guilabel>, and <guilabel>hdc</guilabel> from
|
|
the list. Press the <keycap>Enter</keycap> key. Selected disks will be marked with
|
|
an <guilabel>x</guilabel>.</para> </listitem>
|
|
|
|
<listitem><para>Press the
|
|
<keycap>spacebar</keycap> key to
|
|
select the field for the container
|
|
name.</para> </listitem>
|
|
|
|
<listitem><para>Type <userinput>Sample Container</userinput> at the "::" prompt. Press the
|
|
<keycap>Enter</keycap> key.</para> </listitem>
|
|
|
|
|
|
<listitem><para>Scroll down until <guilabel>PE Size</guilabel> is highlighted. Press the <keycap>spacebar</keycap>.</para></listitem>
|
|
|
|
|
|
<listitem><para>Scroll down until <guilabel>32768</guilabel> is highlighted. Press the <keycap>spacebar</keycap>.
|
|
<note><title>NOTE</title>
|
|
<para>In Ncurses PE Size is listed in sectors, so 16MB = 32768 (512B) sectors.</para></note></para></listitem>
|
|
|
|
|
|
<listitem><para>Press the <keycap>Enter</keycap> key to complete
|
|
the operation.</para></listitem>
|
|
</orderedlist>
|
|
</para>
|
|
</sect2>
|
|
<!--CLI-->
|
|
<sect2 id="clicont"><title>Using the CLI</title>
|
|
|
|
<para>The <command>Create</command> command is
|
|
used to create 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 example
|
|
above is:</para>
|
|
|
|
<programlisting>
|
|
Create:Container,LvmRegMgr={name="Sample Container",pe_size=16KB},sdc,sdd,hdc
|
|
</programlisting>
|
|
|
|
<para>The example above 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>
|
|
<sect2><title>Using Linux LVM Emulation Tools </title>
|
|
<para>To create a container using the Linux LVM emulation tools, type the following at the command prompt: </para>
|
|
<programlisting>evms_vgcreate --verbose --physicalextentsize 16MB "Sample Container" sdc sdd hdc</programlisting>
|
|
|
|
|
|
<para>For a listing of other options used with the <command>evms_vgcreate</command> command type:</para>
|
|
|
|
<programlisting>evms_vgcreate -h</programlisting>
|
|
</sect2>
|
|
</sect1>
|
|
</chapter>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|