Add a mount point to compute nodes

Adding a mount point during provisioning in IBM® Platform Cluster Manager Community Edition enables the management node to act as an NFS server and exports /home and /shared to the compute nodes. Mount points are defined in an image profile that is used to provision the compute nodes.

Before you begin

If /home was not exported during installation, it needs to be added. On the management node, to export directories to the compute nodes, add direction to export file.
# cat /etc/exports 
/home *(rw,async,no_root_squash) 
/shared *(rw,async,no_root_squash) 
/install *(rw,no_root_squash,sync,no_subtree_check) 
/tftpboot *(rw,no_root_squash,sync,no_subtree_check) 

About this task

To add a mount point, the mount point must be added to the fstab.append file for the image profile being used. This file is in the /install/osimages/image-profile-name/cfmdir/etc directory, where image-profile-name is the name of your image profile. For example, rhels6.3-x86_64-stateful-compute or rhels6.3-x86_64-stateless-compute. To get a list of all the image profiles, issue the following command:
# imageprofile -l
Platform Cluster Manager Community Edition uses the updatenode command to append the information you configured to the /etc/fstab file on each compute node when the node is booted. If automounter is used, the file system is mounted automatically by the automount daemon. To check if automounter is used, issue one of the following commands:
# service autofs status

The following procedure creates a mount point to a location on an additional NFS server. However, you can also configure mount points to local directories.

Procedure

  1. From a command line, navigate to the /install/osimages/image_profile_name/cfmdir/etc directory for a specific image profile:
    # cd /install/osimages/image_profile_name/cfmdir/etc/
    where image_profile_name is the name of your image profile.
  2. Add an fstab.append file. Make sure that the file indicates the location of the directory that is shared by the NFS server and the location of the node directory where you want to mount it.
    1. Create the directory that you want to mount to.
    2. Create an fstab.append file.
      nfs_server:/directory_shared_by_nfs_server /directory_to_mount_on_node 
      fstab_default_info
      For example:
      cat /etc/fstab.append
      192.168.41.1:/home /home nfs defaults 0 0

    Refer to the fstab man page for more information about how to create this file.

  3. Run the updatenode command:
    updatenode noderange -F
    where noderange is a list of nodes or node groups that use the image profile.

Results

Mount points on the compute nodes are added.

What to do next

You must complete these steps for each image profile to make your changes take effect for all nodes.