13.8 Renaming the Mount Point Path for a Clustered LVM Volume

For a clustered LVM volume, you can rename the mount point path by modifying the mount point variable in the cluster load, unload, and monitor scripts.

  1. Open iManager in a web browser, then log in as an administrator user.

  2. In Roles and Tasks, select Clusters > My Clusters.

  3. Select the cluster where you created the volume group cluster resource.

  4. On the Cluster Manager page, select the check box next to the resource, then click Offline.

    Wait for the status to report that it is offline, then continue.

  5. Modify the mount point path value in the load, unload, and monitor scripts for the LVM volume group cluster resource:

    1. On the Cluster Manager page, select the resource’s name link to open its Cluster Properties page, then click the Scripts tab.

      The Scripts tab automatically displays the load script.

    2. Modify the load script:

      1. In the load script, type the new value for the mount point in the MOUNT_POINT variable:

        MOUNT_POINT=/usr/novell/ext3/vol44
        
      2. Ensure that a mkdir command is added above the Linux mount command line in the load script to create the path on nodes if it does not exist.

        # create the mount point if it does not exist on the node 
        ignore_error mkdir -p $MOUNT_POINT
        

        You can alternatively make the new path by using the mkdir command in a terminal console on each node. If the master node is not the most preferred node, ensure that you make the path before you bring the resource online.

      3. Click Apply.

    3. Click the Unload Script link, type the new value for the mount point in the MOUNT_POINT variable, then click Apply.

      MOUNT_POINT=/usr/novell/ext3/vol44
      
    4. Click the Monitor Script link, type the new value for the mount point in the MOUNT_POINT variable, then click Apply.

      MOUNT_POINT=/usr/novell/ext3/vol44
      
    5. At the bottom of the page, click OK to close the Properties page and save your changes.

      The changes do not take effect until the resource is brought online.

  6. Bring the resource online to allow the script changes to take effect.

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

    2. On the Cluster Manager page, select the check box next to the resource, then click Online.

    3. Verify that the resource comes online and reports a Running state.

      If the resource goes into a Comatose state, it is probably because you made a mistake in the lines you added or modified in the scripts. Take the resource offline, then go back to correct the scripts, and try to bring it online again.

  7. In NSSMU, verify that the new mount point is used when the clustered LVM volume resource is brought online:

    1. Log in as the root user to the node that is hosting the resource, then start NSSMU by entering:

      nssmu
      
    2. From the NSSMU main menu, select Linux Volumes, then press Enter.

    3. In the Linux Volumes list, select the clustered LVM volume.

    4. View the volume details to verify that the mount point has changed.

      For example, the mount point is /usr/novell/ext3/vol44.

    5. Click Escape twice to exit NSSMU.