8.2. Example: create a container

This section provides a detailed explanation of how to create a container with EVMS by providing instructions to help you complete the following task.

Example 8-1. Create "Sample Container"

Given a system with three available disk drives (sdc, sdd, hdc), use the EVMS LVM Region Manager to combine these disk drives into a container called "Sample Container" with a PE size of 16 MB.

8.2.1. Using the EVMS GUI

To create a container using the EVMS GUI, follow these steps:

  1. Select Actions->Create->Container to see a list plug-ins that support container creation.

  2. Select the LVM Region Manager. Click Next.

    The next dialog window contains a list of storage objects that the LVM Region Manager can use to create a container.

  3. Select sdc, sdd, and hdc from the list. Click Next.

  4. Enter the name Sample Container for the container and 16MB in the PE size field.

  5. Click Create. A window opens to display the outcome.

8.2.2. Using Ncurses

To create a container using the Ncurses interface, follow these steps:

  1. Select Actions->Create->Container to see a list of plug-ins that support container creation.

  2. Select the LVM Region Manager. Activate Next.

    The next dialog window contains a list of storage objects that the LVM Region Manager can use to create the container.

  3. Select sdc, sdd, and hdc from the list. Activate Next.

  4. Press spacebar to select the field for the container name.

  5. Type Sample Container at the "::" prompt. Press Enter.

  6. Scroll down until PE Size is highlighted. Press spacebar.

  7. Scroll down until 16MB is highlighted. Press spacebar.

  8. Activate OK.

  9. Activate Create.

8.2.3. Using the CLI

The Create command creates containers. The first argument in the Create command is the type of object to produce, in this case a container. The Create command then accepts the following arguments: the region manager to use along with any parameters it might need, and the segments or disks to create the container from. The command to complete the previous example is:

Create:Container,LvmRegMgr={name="Sample Container",pe_size=16MB},sdc,sdd,hdc 

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=LvmRegMgr,list options