484 lines
6.9 KiB
HTML
484 lines
6.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Example: create a private cluster container</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="EVMS User Guide"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Clustering operations"
|
|
HREF="clusterops.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Rules and restrictions for creating cluster containers"
|
|
HREF="x2372.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Example: create a shared cluster container"
|
|
HREF="x2496.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>EVMS User Guide</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x2372.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 14. Clustering operations</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x2496.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="AEN2382"
|
|
></A
|
|
>14.2. Example: create a private cluster container</H1
|
|
><P
|
|
>This section tells how to create a sample private
|
|
container and provides instructions for completing the following task:</P
|
|
><A
|
|
NAME="AEN2385"
|
|
></A
|
|
><BLOCKQUOTE
|
|
CLASS="BLOCKQUOTE"
|
|
><DIV
|
|
CLASS="example"
|
|
><A
|
|
NAME="AEN2386"
|
|
></A
|
|
><P
|
|
><B
|
|
>Example 14-1. Create a private cluster container</B
|
|
></P
|
|
><P
|
|
>Given a system with three available shared disks
|
|
(<TT
|
|
CLASS="filename"
|
|
>sdd</TT
|
|
>, <TT
|
|
CLASS="filename"
|
|
>sde</TT
|
|
>, and
|
|
<TT
|
|
CLASS="filename"
|
|
>sdf</TT
|
|
>),
|
|
use the EVMS Cluster Segment Manager to combine these disk drives into a
|
|
container called <TT
|
|
CLASS="filename"
|
|
>Priv1</TT
|
|
> owned by <TT
|
|
CLASS="filename"
|
|
>node1</TT
|
|
>.
|
|
</P
|
|
></DIV
|
|
></BLOCKQUOTE
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="AEN2394"
|
|
></A
|
|
>14.2.1. Using the EVMS GUI</H2
|
|
><P
|
|
>To create a container with the EVMS GUI, follow these steps:</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Select
|
|
<SPAN
|
|
CLASS="guimenu"
|
|
>Actions</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Create</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Container</SPAN
|
|
> to see a list of plug-ins that support container creation.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select the <SPAN
|
|
CLASS="guimenuitem"
|
|
>Cluster Segment Manager</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
><P
|
|
>The next dialog window contains a list of storage objects that
|
|
the CSM can use to create a container.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Select <TT
|
|
CLASS="filename"
|
|
>sdd</TT
|
|
>, <TT
|
|
CLASS="filename"
|
|
>sde</TT
|
|
>, and <TT
|
|
CLASS="filename"
|
|
>sdf</TT
|
|
> from the list.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click <SPAN
|
|
CLASS="guibutton"
|
|
>Next</SPAN
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>In the first pull-down menu, select the "Node Id" of the cluster node that
|
|
owns this container (<SPAN
|
|
CLASS="guimenuitem"
|
|
>node1</SPAN
|
|
>). Select "Storage Type" as
|
|
<SPAN
|
|
CLASS="guimenuitem"
|
|
>private</SPAN
|
|
> from the second pull-down menu.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Enter the name <TT
|
|
CLASS="userinput"
|
|
><B
|
|
>Priv1</B
|
|
></TT
|
|
> for the Container Name.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Click <SPAN
|
|
CLASS="guibutton"
|
|
>Create</SPAN
|
|
>.</P
|
|
><P
|
|
>A window opens that displays the outcome.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Commit the changes.</P
|
|
></LI
|
|
></OL
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="AEN2432"
|
|
></A
|
|
>14.2.2. Using Ncurses</H2
|
|
><P
|
|
>To create the private container with the Ncurses interface, follow these steps:
|
|
</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Select <SPAN
|
|
CLASS="guimenu"
|
|
>Actions</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Create</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Container</SPAN
|
|
> to see a list
|
|
of plug-ins that support container creation.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Scroll down with the <B
|
|
CLASS="keycap"
|
|
>down</B
|
|
> arrow and select Cluster Segment Manager by
|
|
pressing <B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
>. The plug-in you selected is marked with an "x." </P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Press <B
|
|
CLASS="keycap"
|
|
>Enter</B
|
|
>.</P
|
|
><P
|
|
>The next submenu contains a list of disks that the Cluster Segment Manager finds
|
|
acceptable to use for the creation of a container.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Use <B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
> to select <TT
|
|
CLASS="filename"
|
|
>sdd</TT
|
|
>, <TT
|
|
CLASS="filename"
|
|
>sde</TT
|
|
>,
|
|
and <TT
|
|
CLASS="filename"
|
|
>sdf</TT
|
|
> from the list. The disks you select are marked with an "x."</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Press <B
|
|
CLASS="keycap"
|
|
>Enter</B
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>On the Create Storage Container - Configuration Options menu, press
|
|
<B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
> on the Node Id, which will provide a list of nodes from
|
|
which to select.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Press <B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
> on the node <TT
|
|
CLASS="filename"
|
|
>node1</TT
|
|
> and
|
|
then press <B
|
|
CLASS="keycap"
|
|
>Enter</B
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Scroll down with the <B
|
|
CLASS="keycap"
|
|
>down</B
|
|
> arrow and press <B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
> on the
|
|
Storage Type. A list of storage types opens.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Scroll down with the <B
|
|
CLASS="keycap"
|
|
>down</B
|
|
> arrow to
|
|
<SPAN
|
|
CLASS="guimenuitem"
|
|
>private entry</SPAN
|
|
> and press <B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Press <B
|
|
CLASS="keycap"
|
|
>Enter</B
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Scroll down with the <B
|
|
CLASS="keycap"
|
|
>down</B
|
|
> arrow to
|
|
<SPAN
|
|
CLASS="guimenuitem"
|
|
>Container Name</SPAN
|
|
> and press <B
|
|
CLASS="keycap"
|
|
>spacebar</B
|
|
>.</P
|
|
><P
|
|
>The Change Option Value menu opens and asks for the Container Name. Type
|
|
in the name of the container as <TT
|
|
CLASS="userinput"
|
|
><B
|
|
>Priv1</B
|
|
></TT
|
|
>, and press <B
|
|
CLASS="keycap"
|
|
>Enter</B
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Press <B
|
|
CLASS="keycap"
|
|
>Enter</B
|
|
> to complete the operation.</P
|
|
></LI
|
|
></OL
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="AEN2490"
|
|
></A
|
|
>14.2.3. Using the CLI</H2
|
|
><P
|
|
>An operation to create a private cluster container with the CLI takes three parameters: the name
|
|
of the container, the type of the container, and the nodeid to which the container belongs.
|
|
</P
|
|
><P
|
|
>On the CLI, type the following command to create the private container
|
|
<TT
|
|
CLASS="filename"
|
|
>Priv1</TT
|
|
>:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
>create: container,CSM={name="Priv1",type="private",nodeid="node1"},sdd,sde,sdf</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x2372.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x2496.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Rules and restrictions for creating cluster containers</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="clusterops.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Example: create a shared cluster container</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |