LDP/LDP/guide/docbook/EVMSUG/create-seg.xml

152 lines
5.7 KiB
XML

<chapter id="evmscreateseg"><title>Creating segments</title>
<para>This chapter discusses when to use segments and how to create them using
different EVMS interfaces.</para>
<sect1 id="whyseg"><title>When to create a segment</title>
<para>A disk can be subdivided into smaller storage objects called disk segments. A segment manager plug-in provides this capability. Another reason for creating disk segments is to maintain compatibility on a dual boot system where the other operating system requires disk partitions. Before creating a disk segment, you must choose a segment manager plug-in to manage the disk and assign
the segment manager to the disk. An explanation of when and how to assign segment managers can be found in <xref linkend="evmsassignseg"></xref>.</para>
</sect1>
<sect1 id="crsegex"><title>Example: create a segment</title>
<para> This section provides a detailed explanation of how to create a
segment with EVMS by providing instructions to help you complete the following task:</para>
<blockquote><example><title>Create a 100MB segment</title>
<para>Create a 100MB segment from the freespace segment sde_freespace1. This
freespace segment lies on a drive controlled by the DOS Segment Manager. </para></example></blockquote>
<sect2 id="guiseg"><title>Using the EVMS GUI</title>
<para>To create a segment using the GUI, follow the steps below:
<orderedlist>
<listitem><para>Select
<menuchoice>
<guimenu>Actions</guimenu>
<guimenuitem>Create</guimenuitem>
<guimenuitem>Segment</guimenuitem>
</menuchoice>
to see a list of segment manager plug-ins.
</para></listitem>
<listitem><para>Select
<guimenuitem>DOS Segment Manager</guimenuitem>.
Click <guibutton>Next</guibutton>.</para>
<para>The next dialog window lists
the free space storage objects suitable for creating
a new segment.</para></listitem>
<listitem><para>Select <filename>sde_freespace1</filename>. Click
<guibutton>Next</guibutton>. </para>
<para>The last dialog window
presents the free space object you
selected as well as the available
configuration options for that
object.</para></listitem>
<listitem><para>Enter 100 MB. Required fields are denoted by the
"*" in front of the field description. The DOS Segment
Manager provides default values, but you might want to change
some of these values.</para>
<para>After you have filled in
information for all the required
fields, the <guibutton>Create</guibutton>
button becomes available.</para></listitem>
<listitem><para>Click
<guibutton>Create</guibutton>.
A window opens to display the
outcome.</para>
</listitem>
</orderedlist></para>
<para>Alternatively, you can perform some of the steps to create a segment from the GUI context sensitive menu:</para>
<orderedlist><listitem><para>From the <guimenuitem>Segments</guimenuitem> tab, right click
on <filename>sde_freespace1</filename>.</para></listitem>
<listitem><para>Click <guibutton>Create Segment...</guibutton></para></listitem>
<listitem><para>Continue beginning with step 4 of the GUI instructions.</para></listitem>
</orderedlist>
</sect2>
<!-- Ncurses-->
<sect2 id="ncurseg"><title>Using Ncurses</title>
<para>To create a segment using Ncurses, follow these steps:</para>
<orderedlist>
<listitem><para>Select <menuchoice><guimenu>Actions</guimenu><guimenuitem>Create</guimenuitem><guimenuitem>Segment</guimenuitem></menuchoice> to see a list of segment manager plug-ins.</para></listitem>
<listitem><para>Select <guimenuitem>DOS Segment Manager</guimenuitem>.
Activate <guibutton>Next</guibutton>.</para>
<para>The next dialog window
lists free space
storage objects suitable for creating
a new segment. </para></listitem>
<listitem><para>Select <filename>sde_freespace1</filename>. Activate <keycap>Next</keycap>.</para>
</listitem>
<listitem><para>Highlight the <guilabel>size field</guilabel> and press <keycap>spacebar</keycap>.</para></listitem>
<listitem><para>At the &quot;::&quot; prompt enter <userinput>100MB</userinput>.
Press <keycap>Enter</keycap>. </para> </listitem>
<listitem><para>After all required values have been completed, the <guibutton>Create</guibutton>
button becomes available.</para> </listitem>
<listitem><para>Activate <guibutton>Create</guibutton>.</para></listitem>
</orderedlist>
<para>Alternatively, you can perform some of the steps to create a segment from the
context sensitive menu:</para>
<orderedlist>
<listitem><para>From the Segments view, press <keycap>Enter</keycap> on <filename>sde_freespace1</filename>.</para>
</listitem>
<listitem><para>Activate <guimenuitem>Create Segment</guimenuitem>.</para>
</listitem>
<listitem><para>Continue beginning with step 4 of the Ncurses instructions.</para>
</listitem>
</orderedlist>
</sect2>
<!-- CLI-->
<sect2 id="cliseg"><title>Using the CLI</title>
<para>To create a data segment from a
freespace segment, use the
<command>Create</command> command. The arguments the
<command>Create</command> command accepts vary
depending on what is being created. The first
argument to the <command>Create</command>
command indicates what is to be created, which
in the above example is a segment. The
remaining arguments are the freespace segment
to allocate from and a list of options to pass
to the segment manager. The command to
accomplish this is:</para>
<programlisting>Create: Segment,sde_freespace1, size=100MB</programlisting>
<note><title>NOTE</title>
<para>The <command>Allocate</command> command also works to create a segment. </para></note>
<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=DosSegMgr,list options</programlisting></para>
</sect2>
</sect1>
</chapter>