mirror of https://github.com/tLDP/LDP
193 lines
8.5 KiB
XML
193 lines
8.5 KiB
XML
<chapter id="evmscreatevol"><title>Creating volumes</title>
|
|
|
|
<para>This chapter discusses when and how to create volumes.</para>
|
|
|
|
|
|
<sect1><title>When to create a volume</title>
|
|
<para>EVMS treats volumes and storage objects separately.
|
|
A storage object does not automatically
|
|
become a volume; it must be made into a volume.</para>
|
|
<para>Volumes are created from storage objects.
|
|
Volumes are either EVMS native volumes or compatibility volumes. Compatibility volumes
|
|
are intended to be compatible with a volume manager other than EVMS, such as the Linux
|
|
LVM, MD, OS/2 or AIX. Compatibility volumes might have restrictions on what EVMS can do with
|
|
them. EVMS native volumes have no such restrictions, but they can be used only by an
|
|
EVMS equipped system. Volumes are mountable and can contain file systems.</para>
|
|
|
|
|
|
<para>EVMS native volumes contain EVMS-specific information to identify
|
|
the volume name. After this volume information is
|
|
applied, the volume is no longer fully backward compatible
|
|
with existing volume types.</para>
|
|
|
|
<para>Instead of
|
|
adding EVMS metadata to an existing object, you can tell EVMS to make an object directly available as a volume. This type of
|
|
volume is known as a compatibility volume. Using this method, the final product is fully
|
|
backward-compatible with the desired system. </para>
|
|
</sect1>
|
|
|
|
<sect1 id="crvolexcomp"><title>Example: create an EVMS native volume</title>
|
|
<para>This section provides a detailed explanation of how to create an EVMS native
|
|
volume with EVMS by providing instructions to help you complete the following task.</para>
|
|
|
|
|
|
|
|
<blockquote><example><title>Create an EVMS native volume </title>
|
|
<para>Create an EVMS native volume called "Sample Volume" from the region, <filename>/lvm/Sample Container/Region</filename>, you created in <xref linkend="evmscreatereg"></xref>.</para></example></blockquote>
|
|
|
|
|
|
<sect2 id="evmsguivol"><title>Using the EVMS GUI</title>
|
|
<para>Follow these instructions to create an EVMS volume:</para>
|
|
|
|
<orderedlist><listitem><para>Select <menuchoice><guimenu>Actions</guimenu>
|
|
<guimenuitem>Create</guimenuitem>
|
|
<guimenuitem>EVMS Volume</guimenuitem></menuchoice>.</para></listitem>
|
|
<listitem><para>Choose <filename>lvm/Sample Container/Sample Region</filename>.
|
|
</para></listitem>
|
|
<listitem><para>Type <userinput>Sample Volume</userinput> in the
|
|
<guilabel>name field</guilabel>.</para></listitem>
|
|
<listitem><para>Click <guibutton>Create</guibutton>.</para></listitem></orderedlist>
|
|
<para>Alternatively, you can perform some of the steps to create an EVMS
|
|
volume from the GUI context sensitive menu:</para>
|
|
|
|
<orderedlist><listitem><para>From the <guimenuitem>Available Options</guimenuitem> tab, right click
|
|
<filename>lvm/Sample Container/Sample Region</filename>.</para></listitem>
|
|
|
|
<listitem><para>Click <guimenuitem>Create EVMS Volume...</guimenuitem></para></listitem>
|
|
<listitem><para>Continue beginning with step 3 of the GUI instructions.</para></listitem>
|
|
|
|
</orderedlist></sect2>
|
|
|
|
<sect2 id="ncurevmsvol"><title>Using Ncurses</title>
|
|
<para>To create a volume, follow these steps:
|
|
<orderedlist>
|
|
<listitem><para>Select <menuchoice><guimenu>Actions</guimenu>
|
|
<guimenuitem>Create</guimenuitem><guimenuitem>EVMS Volume</guimenuitem></menuchoice>.</para></listitem>
|
|
|
|
<listitem><para>Enter <userinput>Sample Volume</userinput> at the "name" prompt.
|
|
Press <keycap>Enter</keycap>.</para> </listitem>
|
|
<listitem><para>Activate <guibutton>Create</guibutton>.</para></listitem></orderedlist>
|
|
</para>
|
|
|
|
<para>Alternatively, you can perform some of the steps to create an EVMS volume
|
|
from the context sensitive menu:</para>
|
|
|
|
<orderedlist>
|
|
<listitem><para>From the Available Objects view, press <keycap>Enter</keycap> on
|
|
<filename>lvm/Sample Container/Sample Region</filename>.</para>
|
|
</listitem>
|
|
<listitem><para>Activate the <guimenuitem>Create EVMS Volume</guimenuitem> menu item.</para>
|
|
</listitem>
|
|
<listitem><para>Continue beginning with step 3 of the Ncurses instructions.</para>
|
|
</listitem>
|
|
</orderedlist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
<sect2><title>Using the CLI</title>
|
|
<para>To create a volume, use the <command>Create</command> command. The arguments
|
|
the <command>Create</command> command accepts vary depending on what is being created. In
|
|
the case of the example, the first argument is the key word <option>volume</option> that
|
|
specifies what is being created. The second argument is the object being made into a volume,
|
|
in this case <option>lvm/Sample Container/Sample Region</option>.
|
|
The third argument is type specific for an EVMS
|
|
volume, <option>Name=</option>, followed by what
|
|
you want to call the volume, in this case <option>Sample Volume</option>. The following command
|
|
creates the volume from the example. </para>
|
|
<programlisting>Create: Volume, "lvm/Sample Container/Sample Region", Name="Sample Volume"</programlisting>
|
|
|
|
</sect2>
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
<sect1 id="crvolexevms"><title>Example: create a compatibility volume</title>
|
|
<para>This section provides a detailed explanation of how to create a compatibility
|
|
volume with EVMS by providing instructions to help you complete the following task.</para>
|
|
|
|
|
|
|
|
<blockquote><example><title>Create a compatibility volume</title>
|
|
<para>Create a compatibility volume called "Sample Volume" from
|
|
the region, <filename>/lvm/Sample Container/Region</filename>, you created in <xref linkend="evmscreatereg"></xref>.</para></example></blockquote>
|
|
|
|
<sect2 id="guicompvol"><title>Using the GUI</title>
|
|
<para>To create a compatibility volume, follow these steps:</para>
|
|
|
|
<orderedlist>
|
|
<listitem><para>Select
|
|
<menuchoice><guimenu>Actions</guimenu>
|
|
<guimenuitem>Create</guimenuitem>
|
|
<guimenuitem>Compatibility Volume</guimenuitem></menuchoice>.
|
|
</para></listitem>
|
|
|
|
<listitem><para>Choose the region <filename>lvm/Sample Container/Sample Region</filename>
|
|
from the list.</para></listitem>
|
|
|
|
<listitem><para>Click the <guibutton>Create</guibutton> button.</para></listitem>
|
|
<listitem><para>Click the <guilabel>Volume</guilabel> tab in the GUI to
|
|
see a volume named <filename>/dev/evms/lvm/Sample Container/Sample Region</filename>.
|
|
This volume is your compatibility volume.</para></listitem>
|
|
</orderedlist>
|
|
|
|
<para>Alternatively, you can perform some of the steps to create a compatibility volume from
|
|
the GUI context sensitive menu:</para>
|
|
|
|
<orderedlist><listitem><para>From the <guimenuitem>Available Objects</guimenuitem> tab, right click
|
|
<filename>lvm/Sample Container/Sample Region</filename>.</para></listitem>
|
|
|
|
<listitem><para>Click <guimenuitem>Create Compatibility Volume...</guimenuitem></para></listitem>
|
|
|
|
<listitem><para>Continue beginning with step 3 of the GUI instructions.</para></listitem></orderedlist>
|
|
</sect2>
|
|
|
|
<sect2 id="ncurcompatvol"><title>Using Ncurses</title>
|
|
|
|
<para>To create a compatibility volume, follow these steps:</para>
|
|
|
|
<orderedlist>
|
|
<listitem><para>Select <menuchoice><guimenu>Actions</guimenu>
|
|
<guimenuitem>Create</guimenuitem><guimenuitem>Compatibility Volume</guimenuitem></menuchoice>.</para></listitem>
|
|
|
|
<listitem><para>Choose the region <filename>lvm/Sample Container/Storage Region</filename> from the list..
|
|
</para></listitem>
|
|
|
|
|
|
<listitem><para>Activate <guibutton>Create</guibutton>.</para> </listitem>
|
|
</orderedlist>
|
|
|
|
<para>Alternatively, you can perform some of the steps to create a compatibility volume from
|
|
the context sensitive menu:</para>
|
|
|
|
<orderedlist>
|
|
<listitem><para>From the Available Objects view, press <keycap>Enter</keycap> on
|
|
<filename>lvm/Sample Container/Sample Region</filename>.</para>
|
|
</listitem>
|
|
<listitem><para>Activate the <guimenuitem>Create Compatibility Volume</guimenuitem> menu item.</para>
|
|
</listitem>
|
|
<listitem><para>Continue beginning with step 3 of the Ncurses instructions.</para>
|
|
</listitem>
|
|
</orderedlist>
|
|
</sect2>
|
|
|
|
<sect2><title>Using the CLI</title>
|
|
<para>To create a volume, use the <command>Create</command> command. The arguments
|
|
the <command>Create</command> command accepts vary depending on what is being created. In
|
|
the case of the example, the first argument is the key word <option>volume</option> that
|
|
specifies what is being created. The second argument is the object being made into a volume,
|
|
in this case <option>lvm/Sample Container/Sample Region</option>.
|
|
The third argument, <option>compatibility</option>, indicates that this is a compatibility
|
|
volume and should be named as such. </para>
|
|
<programlisting>Create:Volume,"lvm/Sample Container/Sample Region",compatibility</programlisting>
|
|
</sect2>
|
|
</sect1>
|
|
|
|
|
|
|
|
|
|
</chapter>
|
|
|