This section shows how to complete a plug-in operations task with the EVMS GUI, Ncurses, and CLI interfaces.
Example 20.1. Add a spare disk to a compatibility volume made from an MDRaid5 region
This example adds disk
sde
as a spare disk onto volume/dev/evms/md/md0
, which is a compatibility volume that was created from an MDRaid5 region.
Follow these steps to add sde
to /dev/evms/md/md0
with the EVMS GUI:
Select
→Select
.Click
.Select
.Click
.Select
.Click
.The operation is completed when you save.
Alternatively, you could use context-sensitive menus to complete the task, as follows:
View the region md/md0
. You can view the region either
by clicking on the small plus sign beside the volume name
(/dev/evms/md/md0
) on the ,
or by selecting the .
Right click the region (md/md0
). A list of acceptable
Actions and Navigational shortcuts displays. The last items on the
list are the tasks that are acceptable at this time.
Point to
and left click.Select
.Click
.Follow these steps to add sde
to /dev/evms/md/md0
with Ncurses:
Select
→Select
.Activate
.Select
.Activate
.Select
.Activate
.
Alternatively, you can use the context sensitive menu to complete the task:
From the Regions view, press Enter on .
Activate the
menu item.Select
.Activate
.With the EVMS CLI, all plug-in tasks must be
accomplished with the task command. Follow these steps
to add sde
to /dev/evms/md/md0
with the CLI:
The following query command with the list options filter to determines the acceptable tasks for a particular object and the name-value pairs it supports. The command returns information about which plug-in tasks are available at the current time and provides the information necessary for you to complete the command.
query: objects, object=md/md0, list options
The command takes the name of the task
(returned from the previous query), the object to operate on
(in this case, md/md0), any required options (none in this case)
and, if necessary, another object to be manipulated
(in our example, sde
, which is the spare disk
we want to add):
task: addspare, md/md0, sde
The command is completed upon saving.