Creating Regions
Regions can be created from containers, but they can also be created from other
regions, segments, or disks. Most region managers that support containers will create one or more
freespace regions to represent the freespace within the container. This function is
analogous to the way a segment manager creates a freespace segment to represent unused disk
space.
When to Create Regions
You can create regions because you want the features provided by a certain region manager.
or because you want the features provided by that region manager.You can also create regions to be compatible with other volume management technologies, such as MD or
LVM. For example,
if you wanted to make a volume that is compatible with Linux LVM, you would create a
region out of a Linux LVM container and then a comptibility volume from that region.
Working through an Example
This section provides a detailed explanation of how to create a region with EVMS by
providing instructions to help you complete the following task.
Create "Sample Region"
Given the container "Sample Container," which has a freespace region of 8799 MB
create a data region 1000 MB in size named "Sample Region."
Using the EVMS GUI
To create a region, follow the steps below:
Select
Actions
Create
Region
to see a list of region
manager plug-ins.
Select
the LVM Region
Manager. Click Next.
NOTE
You may
see additional region managers that were
not in the selection list when you were creating the storage container
because not all region
managers are required to support containers.
Select the freespace region from
the container you created in .
The region should be named
lvm/Sample Container/Freespace.
Click Next.
The fields in the next window are the options for the
LVM Region Manager plug-in,the options marked with an "*" are required.
Fill in the name,Sample Region.
Enter 1000MB in the size field.
Click the
Create button to complete the
operation. A window that displays the
outcome appears.
Using Ncurses
To create a region, follow the steps below:
Press the
4 key to switch
views.
Scroll down the
list using the down arrow key until
Storage
Regions is
highlighted. Press the
Enter key.
Press the
Enter key again to
display a submenu.
Press the
Enter key when
Create a New
Region is
highlighted. You will be presented
with a list of region manager
plug-ins.
Select the
LVM Region
Manager. Press the Enter key.
NOTE
You might see additional region
managers that were not in the
selection list when you created
the storage container. This absence of
region managers occurs
because not all region managers are
required to support
containers.
Select the freespace
region from the container you created
earlier in . The region should be
named
lvm/Sample Container/Freespace.
Use the spacebar
key to select it. Press the
Enter key to
continue. The configuration options
submenu should
appear.
Scroll to the Name field, and press
spacebar
Type Sample Region at the "::" prompt.
Press Enter.
Scroll to the size field, and press
the spacebar
Type 1000 at the "::" prompt.
Press Enter.
Check all fields to make sure they were entered appropriately.
If the units are displayed as KB and you desired MB, return to the previous step,
and enter the value of KB that is equal to the MB value you desired.
Using the CLI
Regions are created using the Create
command. Arguments to the Create command are
the following: keyword Region, the name of the
region manager to use, the region managers
options, and the objects to consume. The form of this command is:
Create:region, LvmRegMgr={name="Sample Region"; size=1000MB},"lvm/Sample Container/freespace"
The LVM Region Manager supports many
options for creating regions. To see the
available options for creating regions and
containers, use the Query command as follows:
query:plugins,plugin=LvmRegMgr,list options
Using Linux LVM Emulation Tools
The command that creates a region in LVM also creates an EVMS compatibility volume. Details on creating regions with the Linux LVM emulation tools can be found in the .