558 lines
8.7 KiB
HTML
558 lines
8.7 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
|
<HTML
|
||
|
><HEAD
|
||
|
><TITLE
|
||
|
>Example: perform a delete recursive operation</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="Deleting objects"
|
||
|
HREF="deleterecurs.html"><LINK
|
||
|
REL="PREVIOUS"
|
||
|
TITLE="How to delete objects: delete and delete recursive"
|
||
|
HREF="howtodel.html"><LINK
|
||
|
REL="NEXT"
|
||
|
TITLE="Replacing objects"
|
||
|
HREF="evmsreplaceobjects.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="howtodel.html"
|
||
|
ACCESSKEY="P"
|
||
|
>Prev</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="80%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="bottom"
|
||
|
>Chapter 21. Deleting objects</TD
|
||
|
><TD
|
||
|
WIDTH="10%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="bottom"
|
||
|
><A
|
||
|
HREF="evmsreplaceobjects.html"
|
||
|
ACCESSKEY="N"
|
||
|
>Next</A
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><HR
|
||
|
ALIGN="LEFT"
|
||
|
WIDTH="100%"></DIV
|
||
|
><DIV
|
||
|
CLASS="sect1"
|
||
|
><H1
|
||
|
CLASS="sect1"
|
||
|
><A
|
||
|
NAME="examdelrecur"
|
||
|
></A
|
||
|
>21.2. Example: perform a delete recursive operation</H1
|
||
|
><P
|
||
|
> The following example shows how to destroy a volume and the objects below it with the EVMS GUI, Ncurses, and CLI interfaces.</P
|
||
|
><A
|
||
|
NAME="AEN4142"
|
||
|
></A
|
||
|
><BLOCKQUOTE
|
||
|
CLASS="BLOCKQUOTE"
|
||
|
><DIV
|
||
|
CLASS="example"
|
||
|
><A
|
||
|
NAME="AEN4143"
|
||
|
></A
|
||
|
><P
|
||
|
><B
|
||
|
>Example 21-1. Destroy a volume and the region and container below it</B
|
||
|
></P
|
||
|
><P
|
||
|
>This example uses the delete recursive operation to destroy volume <TT
|
||
|
CLASS="filename"
|
||
|
>/dev/evms/Sample Volume</TT
|
||
|
> and the region and container below it. Volume <TT
|
||
|
CLASS="filename"
|
||
|
>/dev/evms/Sample Volume</TT
|
||
|
> is the volume that was created in earlier. Although we could also use the delete option on each of the objects, the delete recursive option takes fewer steps. Note that because we intend to delete the container as well as the volume, the operation needs to be performed in two steps: one to delete the volume and its contents, and one to delete the container and its contents.
|
||
|
</P
|
||
|
></DIV
|
||
|
></BLOCKQUOTE
|
||
|
><DIV
|
||
|
CLASS="sect2"
|
||
|
><H2
|
||
|
CLASS="sect2"
|
||
|
><A
|
||
|
NAME="mkfsgui"
|
||
|
></A
|
||
|
>21.2.1. Using the EVMS GUI</H2
|
||
|
><P
|
||
|
>Follow these steps to delete the volume and the container with the EVMS GUI:
|
||
|
|
||
|
<P
|
||
|
></P
|
||
|
><OL
|
||
|
TYPE="1"
|
||
|
><LI
|
||
|
><P
|
||
|
>Select <SPAN
|
||
|
CLASS="guimenu"
|
||
|
>Actions</SPAN
|
||
|
>-><SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Delete</SPAN
|
||
|
>-><SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Volume</SPAN
|
||
|
>.
|
||
|
</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Select volume <SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>/dev/evms/Sample Volume</SPAN
|
||
|
>
|
||
|
from the list.
|
||
|
</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Click <SPAN
|
||
|
CLASS="guibutton"
|
||
|
>Recursive Delete</SPAN
|
||
|
>. This step deletes the volume
|
||
|
and the region <TT
|
||
|
CLASS="filename"
|
||
|
>lvm/Sample Container/Sample Region</TT
|
||
|
>. If you want to
|
||
|
keep the
|
||
|
underlying pieces or want to delete each piece separately, you would click
|
||
|
<SPAN
|
||
|
CLASS="guibutton"
|
||
|
>Delete</SPAN
|
||
|
> instead of <SPAN
|
||
|
CLASS="guibutton"
|
||
|
>Delete Recursive</SPAN
|
||
|
>.
|
||
|
</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Assuming you chose Delete Recursive (if not, delete the region before
|
||
|
continuing with these steps), select <SPAN
|
||
|
CLASS="guimenu"
|
||
|
>Actions</SPAN
|
||
|
>-><SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Delete</SPAN
|
||
|
>-><SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Container</SPAN
|
||
|
>.
|
||
|
</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Select container <SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>lvm/Sample Container</SPAN
|
||
|
> from the list.
|
||
|
</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Click <SPAN
|
||
|
CLASS="guibutton"
|
||
|
>Recursive Delete</SPAN
|
||
|
> to destroy the container and anything
|
||
|
under it. Alternatively, click <SPAN
|
||
|
CLASS="guibutton"
|
||
|
>Delete</SPAN
|
||
|
> to destroy only the container (if you built the container on
|
||
|
disks as in the example, either command has the same effect).
|
||
|
</P
|
||
|
></LI
|
||
|
></OL
|
||
|
>
|
||
|
</P
|
||
|
><P
|
||
|
>Alternatively, you can perform some of the volume deletion steps with the GUI context
|
||
|
sensitive menu:</P
|
||
|
><P
|
||
|
></P
|
||
|
><OL
|
||
|
TYPE="1"
|
||
|
><LI
|
||
|
><P
|
||
|
>From the <SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Volumes</SPAN
|
||
|
> tab, right click
|
||
|
<TT
|
||
|
CLASS="filename"
|
||
|
>/dev/evms/Sample Volume</TT
|
||
|
>.</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Click <SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Delete...</SPAN
|
||
|
></P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Continue with the operation beginning with step 3 of the
|
||
|
GUI instructions.</P
|
||
|
></LI
|
||
|
></OL
|
||
|
></DIV
|
||
|
><DIV
|
||
|
CLASS="sect2"
|
||
|
><H2
|
||
|
CLASS="sect2"
|
||
|
><A
|
||
|
NAME="mkfsncurses"
|
||
|
></A
|
||
|
>21.2.2. Using Ncurses</H2
|
||
|
><P
|
||
|
>Follow these steps to delete the volume and the container with Ncurses:
|
||
|
|
||
|
<P
|
||
|
></P
|
||
|
><OL
|
||
|
TYPE="1"
|
||
|
><LI
|
||
|
><P
|
||
|
>Select <SPAN
|
||
|
CLASS="guimenu"
|
||
|
>Actions</SPAN
|
||
|
>-><SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Delete</SPAN
|
||
|
>-><SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Volume</SPAN
|
||
|
>.
|
||
|
</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Select volume
|
||
|
<SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>/dev/evms/Sample Volume</SPAN
|
||
|
> from the list.
|
||
|
</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Activate
|
||
|
<SPAN
|
||
|
CLASS="guibutton"
|
||
|
>Delete Volume Recursively</SPAN
|
||
|
>.
|
||
|
This step deletes the volume and the region
|
||
|
<TT
|
||
|
CLASS="filename"
|
||
|
>lvm/Sample Container/Sample Region</TT
|
||
|
>. If you want to keep the
|
||
|
underlying pieces or want to delete each piece separately, activate
|
||
|
<SPAN
|
||
|
CLASS="guibutton"
|
||
|
>Delete</SPAN
|
||
|
> instead of <SPAN
|
||
|
CLASS="guibutton"
|
||
|
>Delete Recursive</SPAN
|
||
|
>.
|
||
|
</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Assuming you chose <SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Delete Volume Recursively</SPAN
|
||
|
>
|
||
|
(if not, delete the region before continuing with
|
||
|
these steps), select <SPAN
|
||
|
CLASS="guimenu"
|
||
|
>Actions</SPAN
|
||
|
>-><SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Delete</SPAN
|
||
|
>-><SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Container</SPAN
|
||
|
>.
|
||
|
</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Select container
|
||
|
<SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>lvm/Sample Container</SPAN
|
||
|
> from the list.
|
||
|
</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Click
|
||
|
<SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Recursive Delete</SPAN
|
||
|
> to destroy the container and
|
||
|
everything under it. Alternatively, activate <SPAN
|
||
|
CLASS="guibutton"
|
||
|
>Delete</SPAN
|
||
|
> to delete
|
||
|
only the container (if you built the container on disks as in the
|
||
|
example, either command has the same effect).</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Press <B
|
||
|
CLASS="keycap"
|
||
|
>Enter</B
|
||
|
>.
|
||
|
</P
|
||
|
></LI
|
||
|
></OL
|
||
|
>
|
||
|
</P
|
||
|
><P
|
||
|
>Alternatively, you can perform some of the volume deletion steps with the
|
||
|
context sensitive menu:</P
|
||
|
><P
|
||
|
></P
|
||
|
><OL
|
||
|
TYPE="1"
|
||
|
><LI
|
||
|
><P
|
||
|
>From the Volumes view, press <B
|
||
|
CLASS="keycap"
|
||
|
>Enter</B
|
||
|
> on <SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>/dev/evms/Sample Volume</SPAN
|
||
|
>.</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Activate <SPAN
|
||
|
CLASS="guibutton"
|
||
|
>Delete</SPAN
|
||
|
>.</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Continue with the operation beginning with step 3 of the Ncurses instructions.</P
|
||
|
></LI
|
||
|
></OL
|
||
|
></DIV
|
||
|
><DIV
|
||
|
CLASS="sect2"
|
||
|
><H2
|
||
|
CLASS="sect2"
|
||
|
><A
|
||
|
NAME="deleterecurcli"
|
||
|
></A
|
||
|
>21.2.3. Using the CLI</H2
|
||
|
><P
|
||
|
>Use the
|
||
|
<B
|
||
|
CLASS="command"
|
||
|
>delete</B
|
||
|
> and <B
|
||
|
CLASS="command"
|
||
|
>delete recursive</B
|
||
|
>
|
||
|
commands to destroy EVMS objects.
|
||
|
Specify the command name followed by a colon, and then specify the
|
||
|
volume, object, or container name. For example:
|
||
|
|
||
|
<P
|
||
|
></P
|
||
|
><OL
|
||
|
TYPE="1"
|
||
|
><LI
|
||
|
><P
|
||
|
>Enter this command to perform the delete recursive
|
||
|
operation:</P
|
||
|
><TABLE
|
||
|
BORDER="0"
|
||
|
BGCOLOR="#E0E0E0"
|
||
|
WIDTH="100%"
|
||
|
><TR
|
||
|
><TD
|
||
|
><FONT
|
||
|
COLOR="#000000"
|
||
|
><PRE
|
||
|
CLASS="programlisting"
|
||
|
>delete recursive: "/dev/evms/Sample Volume"</PRE
|
||
|
></FONT
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><P
|
||
|
>This step deletes the volume and the region
|
||
|
<TT
|
||
|
CLASS="filename"
|
||
|
>/lvm/Sample Container/Sample Region</TT
|
||
|
>. If you wanted to keep the
|
||
|
underlying pieces or wanted to delete each piece separately, use the <B
|
||
|
CLASS="command"
|
||
|
>delete</B
|
||
|
> command, as follows:</P
|
||
|
><TABLE
|
||
|
BORDER="0"
|
||
|
BGCOLOR="#E0E0E0"
|
||
|
WIDTH="100%"
|
||
|
><TR
|
||
|
><TD
|
||
|
><FONT
|
||
|
COLOR="#000000"
|
||
|
><PRE
|
||
|
CLASS="programlisting"
|
||
|
>delete: "/dev/evms/Sample Volume"</PRE
|
||
|
></FONT
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>Assuming you chose <SPAN
|
||
|
CLASS="guimenuitem"
|
||
|
>Delete Volume Recursively</SPAN
|
||
|
> (if not, delete the region before
|
||
|
continuing with these steps) enter the following to destroy the container and everything under it:</P
|
||
|
><TABLE
|
||
|
BORDER="0"
|
||
|
BGCOLOR="#E0E0E0"
|
||
|
WIDTH="100%"
|
||
|
><TR
|
||
|
><TD
|
||
|
><FONT
|
||
|
COLOR="#000000"
|
||
|
><PRE
|
||
|
CLASS="programlisting"
|
||
|
>delete recursive: "lvm/Sample Container"</PRE
|
||
|
></FONT
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><P
|
||
|
>To destroy only the container, enter the following:</P
|
||
|
><TABLE
|
||
|
BORDER="0"
|
||
|
BGCOLOR="#E0E0E0"
|
||
|
WIDTH="100%"
|
||
|
><TR
|
||
|
><TD
|
||
|
><FONT
|
||
|
COLOR="#000000"
|
||
|
><PRE
|
||
|
CLASS="programlisting"
|
||
|
>delete: "lvm/Sample Container"</PRE
|
||
|
></FONT
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
></LI
|
||
|
></OL
|
||
|
>
|
||
|
</P
|
||
|
></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="howtodel.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="evmsreplaceobjects.html"
|
||
|
ACCESSKEY="N"
|
||
|
>Next</A
|
||
|
></TD
|
||
|
></TR
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="top"
|
||
|
>How to delete objects: delete and delete recursive</TD
|
||
|
><TD
|
||
|
WIDTH="34%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="deleterecurs.html"
|
||
|
ACCESSKEY="U"
|
||
|
>Up</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="top"
|
||
|
>Replacing objects</TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
></DIV
|
||
|
></BODY
|
||
|
></HTML
|
||
|
>
|