old-www/LDP/EVMSUG/html/replacedlchildobj.html

351 lines
5.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Replacing a drive-link child object</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="Replacing objects"
HREF="evmsreplaceobjects.html"><LINK
REL="PREVIOUS"
TITLE="What is object-replace?"
HREF="whatisobjectreplace.html"><LINK
REL="NEXT"
TITLE="Moving segment storage objects"
HREF="segstorobjs.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="whatisobjectreplace.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 22. Replacing objects</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="segstorobjs.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="replacedlchildobj"
></A
>22.2. Replacing a drive-link child object</H1
><P
>For this example, we will start with a drive-link object named <TT
CLASS="filename"
>link1</TT
>,
which is composed of two disk segments named sda1 and sdb1. The goal is to replace
sdb1 with another segment named sdc1.</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Note</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>The drive-linking plug-in allows the target object (sdc1 in this
example) to be the same size or larger than the source object.
If the target is larger, the extra space will be unused. Other plug-ins
have different restrictions and might require that both objects be the
same size.
</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="guiobjectreplace"
></A
>22.2.1. Using the EVMS GUI or Ncurses</H2
><P
>Follow these steps to replace sdb1 with sdc1:
<P
></P
><OL
TYPE="1"
><LI
><P
>Select
<SPAN
CLASS="guimenu"
>Actions</SPAN
>-&gt;<SPAN
CLASS="guimenuitem"
>Replace.</SPAN
>
</P
></LI
><LI
><P
>In the "Replace Source Object" panel select
<SPAN
CLASS="guimenuitem"
>sdb1</SPAN
>.
</P
></LI
><LI
><P
>Activate <SPAN
CLASS="guibutton"
>Next</SPAN
>.</P
></LI
><LI
><P
>In the "Select Replace Target Object" panel, select
<SPAN
CLASS="guimenuitem"
>sdc1</SPAN
>. </P
></LI
><LI
><P
>Activate <SPAN
CLASS="guibutton"
>Replace</SPAN
>.</P
></LI
></OL
></P
><P
>Alternatively, you can perform these same steps with the
context sensitive menus:</P
><P
></P
><OL
TYPE="1"
><LI
><P
>From the "Disk Segments" panel, right click (or Press
<B
CLASS="keycap"
>Enter</B
> on) the object
<SPAN
CLASS="guimenuitem"
>sdb1</SPAN
>.</P
></LI
><LI
><P
>Choose <SPAN
CLASS="guimenuitem"
>Replace</SPAN
> on the popup menu.</P
></LI
><LI
><P
>In the "Select Replace Target Object" panel, select
<SPAN
CLASS="guimenuitem"
>sdc1.</SPAN
></P
></LI
><LI
><P
>Activate <SPAN
CLASS="guibutton"
>Replace</SPAN
>.</P
></LI
></OL
><P
>When you save changes, EVMS begins to copy the data from sdb1 to sdc1.
The status bar at the bottom of the UI will reflect the percent-complete of the
copy operation. The UI must remain open until the copy is finished. At that time,
the object sdb1 will be moved to the "Available Objects" panel.</P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="clireplace"
></A
>22.2.2. Using the CLI</H2
><P
>Use the <B
CLASS="command"
>Replace</B
> to replace objects with
the CLI:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;Replace:source_object_name, target_object_name
</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;"source_object_name" is the name of the object you wish to replace with
"target_object_name." In the following example, sdb1 is replaced with
sdc1.
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;Replace:sdb1,sdc1
</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="whatisobjectreplace.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="segstorobjs.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>What is object-replace?</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="evmsreplaceobjects.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Moving segment storage objects</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>