The following example shows how to destroy a volume and the objects below it with the EVMS GUI, Ncurses, and CLI interfaces.
Example 21-1. Destroy a volume and the region and container below it
This example uses the delete recursive operation to destroy volume /dev/evms/Sample Volume and the region and container below it. Volume /dev/evms/Sample Volume 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.
Follow these steps to delete the volume and the container with the EVMS GUI:
Select
-> -> .Select volume
from the list.Click
. This step deletes the volume and the region lvm/Sample Container/Sample Region. If you want to keep the underlying pieces or want to delete each piece separately, you would click instead of .Assuming you chose Delete Recursive (if not, delete the region before continuing with these steps), select
-> -> .Select container
from the list.Click
to destroy the container and anything under it. Alternatively, click to destroy only the container (if you built the container on disks as in the example, either command has the same effect).Alternatively, you can perform some of the volume deletion steps with the GUI context sensitive menu:
From the
tab, right click /dev/evms/Sample Volume.Click
Continue with the operation beginning with step 3 of the GUI instructions.
Follow these steps to delete the volume and the container with Ncurses:
Select
-> -> .Select volume
from the list.Activate
. This step deletes the volume and the region lvm/Sample Container/Sample Region. If you want to keep the underlying pieces or want to delete each piece separately, activate instead of .Assuming you chose
(if not, delete the region before continuing with these steps), select -> -> .Select container
from the list.Click
to destroy the container and everything under it. Alternatively, activate to delete only the container (if you built the container on disks as in the example, either command has the same effect).Press Enter.
Alternatively, you can perform some of the volume deletion steps with the context sensitive menu:
From the Volumes view, press Enter on
.Activate
.Continue with the operation beginning with step 3 of the Ncurses instructions.
Use the delete and delete recursive commands to destroy EVMS objects. Specify the command name followed by a colon, and then specify the volume, object, or container name. For example:
Enter this command to perform the delete recursive operation:
delete recursive: "/dev/evms/Sample Volume" |
This step deletes the volume and the region /lvm/Sample Container/Sample Region. If you wanted to keep the underlying pieces or wanted to delete each piece separately, use the delete command, as follows:
delete: "/dev/evms/Sample Volume" |
Assuming you chose
(if not, delete the region before continuing with these steps) enter the following to destroy the container and everything under it:delete recursive: "lvm/Sample Container" |
To destroy only the container, enter the following:
delete: "lvm/Sample Container" |