7.2. Example: create a segment
This section provides a detailed explanation of how to create a
segment with EVMS by providing instructions to help you complete the following task:
Example 7-1. Create a 100MB segment
Create a 100MB segment from the freespace segment sde_freespace1. This
freespace segment lies on a drive controlled by the DOS Segment Manager.
7.2.1. Using the EVMS GUI
To create a segment using the GUI, follow the steps below:
Select
->->
to see a list of segment manager plug-ins.
Select
.
Click Next.
The next dialog window lists
the free space storage objects suitable for creating
a new segment.
Select sde_freespace1. Click
Next.
The last dialog window
presents the free space object you
selected as well as the available
configuration options for that
object.
Enter 100 MB. Required fields are denoted by the
"*" in front of the field description. The DOS Segment
Manager provides default values, but you might want to change
some of these values.
After you have filled in
information for all the required
fields, the Create
button becomes available.
Click
Create.
A window opens to display the
outcome.
Alternatively, you can perform some of the steps to create a segment from the GUI context sensitive menu:
From the tab, right click
on sde_freespace1.
Click Create Segment...
Continue beginning with step 4 of the GUI instructions.
7.2.2. Using Ncurses
To create a segment using Ncurses, follow these steps:
Select ->-> to see a list of segment manager plug-ins.
Select .
Activate Next.
The next dialog window
lists free space
storage objects suitable for creating
a new segment.
Select sde_freespace1. Activate Next.
Highlight the size field and press spacebar.
At the "::" prompt enter 100MB.
Press Enter.
After all required values have been completed, the Create
button becomes available.
Activate Create.
Alternatively, you can perform some of the steps to create a segment from the
context sensitive menu:
From the Segments view, press Enter on sde_freespace1.
Activate .
Continue beginning with step 4 of the Ncurses instructions.
7.2.3. Using the CLI
To create a data segment from a
freespace segment, use the
Create command. The arguments the
Create command accepts vary
depending on what is being created. The first
argument to the Create
command indicates what is to be created, which
in the above example is a segment. The
remaining arguments are the freespace segment
to allocate from and a list of options to pass
to the segment manager. The command to
accomplish this is:
Create: Segment,sde_freespace1, size=100MB |
 | NOTE |
|---|
| | The Allocate command also works to create a segment. |
The previous example accepts the default values for all options you don't specify. To see the options for this command type:
query:plugins,plugin=DosSegMgr,list options |