7.5. Example: assign a segment manager

This section shows how to assign 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 7-1. Assign the DOS Segment Manager

Assign 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.

7.5.1. Using the EVMS GUI

To assign 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, assign 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

7.5.2. Using Ncurses

To assign 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, assign 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.

7.5.3. Using the CLI

To assign 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, assign the DOS Segment Manager to sde by typing the following:

Assign:DosSegMgr={},sde