mirror of https://github.com/tLDP/LDP
163 lines
4.1 KiB
XML
163 lines
4.1 KiB
XML
<chapter id="segstorobjs"><title>Moving segment storage objects</title>
|
|
|
|
<para>This chapter discusses how and why to move segments.
|
|
</para>
|
|
|
|
|
|
<sect1 id="whatissegmove"><title>What is segment moving?</title>
|
|
<para>A segment move is when a data segment is relocated to another
|
|
location on the underlying storage object. The new location of
|
|
the segment cannot overlap with the current segment location.
|
|
</para>
|
|
</sect1>
|
|
|
|
<sect1 id="whymove"><title>Why move a segment?</title>
|
|
<para>
|
|
Segments are moved for a variety of reasons. The most compelling among
|
|
them is to make better use of disk freespace. Disk freespace is an unused
|
|
contiguous extent of sectors on a disk that has been identified by EVMS
|
|
as a freespace segment. A data segment can only be expanded by adding
|
|
sectors to the end of the segment, moving the end of the data segment
|
|
up into the freespace that immediately follows the data segment. However,
|
|
what if there is no freespace following the data segment? A segment or
|
|
segments could
|
|
be moved around to put freespace after the segment that is to be
|
|
expanded. For example:
|
|
</para>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<para>The segment following the segment to be expanded can be moved
|
|
elsewhere on the disk, thus freeing up space after the segment that
|
|
is to be expanded.</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>The segment to be expanded can be moved into freespace where
|
|
there is more room for the segment to be expanded.
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>The segment can be moved into freespace that precedes the
|
|
segment so that after the move the data segment can be expanded into the freespace
|
|
created by the move.</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
</sect1>
|
|
|
|
<sect1><title>Which segment manager plug-ins implement the move function?</title>
|
|
|
|
<para>The following segment manager plug-ins support the move function:
|
|
</para>
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
<para>
|
|
DOS
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
s390
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
GPT
|
|
</para>
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</sect1>
|
|
|
|
<sect1 id="movesegex"><title>Example: move a DOS segment</title>
|
|
<para> This section shows how to move a DOS segment:</para>
|
|
|
|
<note><title>Note</title>
|
|
<para>
|
|
In the following example, the DOS segment manager has a single
|
|
primary partition on disk sda that is located at the very end of the disk.
|
|
We want to move it to the front of the drive because we want to expand
|
|
the segment but there is currently no freespace following the segment.
|
|
</para>
|
|
</note>
|
|
|
|
<sect2 id="guimoveseg"><title>Using the EVMS GUI context sensitive menu</title>
|
|
<para>To move the DOS segment through the GUI context sensitive menu,
|
|
follow these steps:</para>
|
|
<orderedlist>
|
|
<listitem><para>From the <guimenuitem>Segments</guimenuitem>
|
|
tab, right click
|
|
<filename>sda1</filename>.
|
|
</para></listitem>
|
|
|
|
<listitem>
|
|
<para>Click <guibutton>Move</guibutton>.</para>
|
|
</listitem>
|
|
|
|
<listitem><para>Select <filename>sda_freespace1</filename>.
|
|
</para>
|
|
</listitem>
|
|
|
|
<listitem><para>Click <guibutton>Move</guibutton>.</para>
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
</sect2>
|
|
|
|
<!-- Ncurses-->
|
|
<sect2 id="ncursmoveseg"><title>Using Ncurses</title>
|
|
<para>To move the DOS segment, follow these steps:</para>
|
|
|
|
<orderedlist>
|
|
|
|
<listitem><para>Use <keycap>Tab</keycap>
|
|
to select the Disk Segments view.
|
|
</para>
|
|
</listitem>
|
|
|
|
<listitem><para>Scroll down with the down arrow and
|
|
select <filename>sda1</filename>.</para>
|
|
</listitem>
|
|
|
|
<listitem><para>Press
|
|
<keycap>Enter</keycap>.</para>
|
|
</listitem>
|
|
|
|
<listitem><para>Scroll down with the down arrow and
|
|
select <guibutton>Move</guibutton> by pressing
|
|
<keycap>Enter</keycap>.</para>
|
|
</listitem>
|
|
|
|
<listitem><para>Use the spacebar to select
|
|
<filename>sda_freespace1</filename>.</para>
|
|
</listitem>
|
|
|
|
<listitem><para>Use <keycap>Tab</keycap>
|
|
to select <guibutton>Move</guibutton> and press
|
|
<keycap>Enter</keycap>.
|
|
</para>
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
</sect2>
|
|
|
|
<!-- CLI-->
|
|
<sect2 id="clisegmove"><title>Using the CLI</title>
|
|
|
|
|
|
<para>Use the
|
|
<command>task</command> command to move a DOS segment with the CLI.
|
|
</para>
|
|
|
|
<programlisting>task:Move,sda1,sda_freespace1</programlisting>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|
|
</chapter>
|
|
|