6.5. Example: add a segment manager

This section shows how to add a segment manager with EVMS.

EVMS initially displays the physical disks it sees as volumes. Assume that you have added a new disk to the system that EVMS sees as sde. This disk contains no data and has not been subdivided (no partitions). EVMS assumes that this disk is a compatibility volume known as /dev/evms/sde.

Example 6-1. Add the DOS Segment Manager

Add the DOS Segment Manager to disk sde.

NoteNOTE
 

In the following example, the DOS Segment Manager creates two segments on the disk: a metadata segment known as sde_mbr, and a segment to represent the available space on the drive, sde_freespace1. This freespace segment (sde_freespace1) can be divided into other segments because it represents space on the drive that is not in use.

6.5.1. Using the EVMS GUI

To add the DOS Segment Manager to sde, first remove the volume, /dev/evms/sde:

  1. Select Actions->Delete->Volume.

  2. Select /dev/evms/sde.

  3. Click Delete.

Alternatively, you can remove the volume through the GUI context sensitive menu:

  1. From the Volumes tab, right click /dev/evms/sde.

  2. Click Delete.

After the volume is removed, add the DOS Segment Manager:

  1. Select Actions->Add->Segment Manager to Storage Object.

  2. Select DOS Segment Manager.

  3. Click Next.

  4. Select sde

  5. Click Add

6.5.2. Using Ncurses

To add the DOS Segment Manager to sde, first remove the volume /dev/evms/sde:

  1. Select Actions->Delete->Segment Manager to Storage Object.

  2. Select /dev/evms/sde.

  3. Activate Delete.

Alternatively, you can remove the volume through the context sensitive menu:

  1. From the Logical Volumes view, press Enter on /dev/evms/sde.

  2. Activate Delete.

After the volume is removed, add the DOS Segment Manager:

  1. Select Actions->Add->Segment Manager to Storage Object

  2. Select DOS Segment Manager.

  3. Activate Next.

  4. Select sde.

  5. Activate Add.

6.5.3. Using the CLI

To add the DOS Segment Manager to sde, first tell EVMS that this disk is not a volume and is available for use:

Delete:/dev/evms/sde

Next, add the DOS Segment Manager to sde by typing the following:

Add:DosSegMgr={},sde