22.2. Replacing a drive-link child object

For this example, we will start with a drive-link object named link1, which is composed of two disk segments named sda1 and sdb1. The goal is to replace sdb1 with another segment named sdc1.

NoteNote
 

The drive-linking plug-in allows the target object (sdc1 in this example) to be the same size or larger than the source object. If the target is larger, the extra space will be unused. Other plug-ins have different restrictions and might require that both objects be the same size.

22.2.1. Using the EVMS GUI or Ncurses

Follow these steps to replace sdb1 with sdc1:

  1. Select Actions->Replace.

  2. In the "Replace Source Object" panel select sdb1.

  3. Activate Next.

  4. In the "Select Replace Target Object" panel, select sdc1.

  5. Activate Replace.

Alternatively, you can perform these same steps with the context sensitive menus:

  1. From the "Disk Segments" panel, right click (or Press Enter on) the object sdb1.

  2. Choose Replace on the popup menu.

  3. In the "Select Replace Target Object" panel, select sdc1.

  4. Activate Replace.

When you save changes, EVMS begins to copy the data from sdb1 to sdc1. The status bar at the bottom of the UI will reflect the percent-complete of the copy operation. The UI must remain open until the copy is finished. At that time, the object sdb1 will be moved to the "Available Objects" panel.

22.2.2. Using the CLI

Use the Replace to replace objects with the CLI:


Replace:source_object_name, target_object_name

"source_object_name" is the name of the object you wish to replace with "target_object_name." In the following example, sdb1 is replaced with sdc1.


Replace:sdb1,sdc1