13.11 Deleting a Clustered LVM Volume Group and Logical Volume

Before you delete a clustered LVM volume group, you must take the volume group cluster resource offline, and delete the cluster resource object and related objects in eDirectory.

All resource configuration must happen from the master node. On the Cluster Options page for iManager, you are automatically connected to the Cluster object, which is associated with the master node.

  1. Log in to iManager as a cluster administrator.

  2. In Roles and Tasks, select Clusters > My Clusters, then select the cluster.

  3. Take the volume group cluster resource offline:

    1. On the Cluster Manager page, select the check box next to the volume group cluster resource, then click Offline. Wait until the resource is offline to continue.

      The unload script unbinds the NCP virtual server from the resource IP address, dismounts the NCP volume, dismounts the Linux LVM logical volume, and deactivates the Linux LVM volume group.

  4. Delete the volume group cluster resource:

    1. Click the Cluster Options tab.

    2. Select the check box next to the volume group cluster resource, then click Delete.

    3. When you are prompted to confirm the deletion, click OK to continue, or click Cancel to abort the deletion.

  5. If the Linux volume was enabled for NCP file access, delete the NCP volume object.

    1. In iManager, select Directory Administration > Delete Object.

    2. On the Delete Object page, browse to locate and select the resource’s NCP Volume object (such as clus1_VOL44.novell), then click OK.

    3. Click OK to delete the NCP volume object, then click OK again to close the success message.

  6. If the Linux volume was NCP enabled, or if you manually created an NCP virtual server for the resource, delete the NCP virtual server object.

    1. In iManager, select Directory Administration > Delete Object.

    2. On the Delete Object page, browse to locate and select the resource’s NCS:NCP Server object (such as clus1-vg44-SERVER.ncs.novell), then click OK.

    3. Click OK to delete the NCP virtual server, then click OK again to close the success message.

  7. Delete the LVM volume group and logical volume:

    1. Log in as the root user to the cluster node where the resource was online, then open a terminal console.

    2. At a command prompt, launch NSSMU:

      nssmu
      
    3. In the NSSMU main menu, select Linux Volumes, then press Enter.

    4. In the Linux Volumes list, select the clustered linux volume, then press Delete.

    5. When you are prompted to confirm the delete action, press y (Yes) to continue, or press n (No) to cancel the delete action.

      Deleting the volume and volume group puts the device in an uninitialized state.

    6. Press Esc to return to the main menu.

  8. Re-initialize the device:

    1. In the NSSMU main menu, select Devices, then press Enter.

    2. In the Devices list, select the device.

    3. Press F3 to initialize the device.

    4. When you are prompted to confirm the initialization action, read the warning message, then press y (Yes) to continue, or press n (No) to cancel the action.

    5. Select DOS or GPT as the partitioning type, then press Enter.

    6. Visually verify that the device was initialized and the specified partition type is displayed.

    7. Press Esc twice to exit NSSMU.

  9. Verify that the LVM volume group is deleted by entering the following the native LVM command:

    vgdisplay