HP XC System Software Administration Guide Version 3.2

18.4.2 Mounting a Remote File System
Use the following procedure to mount a remote file system to one or more nodes in an HP XC
system:
1. Determine which file system to export.
In this example, the file system /extra is exported by the external server xeno.
2. Ensure that this file system can be NFS exported.
Note:
This information is system dependent and is not covered in this document. Consult the
documentation for the external server.
3. Log in as superuser on the head node.
4. Ensure that the mount point directory exists on all the nodes that will mount the remote file
system.
If the mount point directory does not exist, you need to create it on each node, as shown
here:
# cexec -w n[22-24] /bin/mkdir /workarea
Note:
This mount point will exist until the node is reimaged.
5. Edit the /hptc_cluster/etc/fstab.proto file, as follows:
a. Locate the node designator that specifies the node or nodes that will import the file
system.
Optionally insert a comment regarding why you are changing this file.
#Mount /extra (from xeno) onto /workarea on nodes n[22-24]
If the node designator does not exist, create it by adding a line similar to this one. For
this example, the node designator is as follows:
#% n[22-24]
b. Enter the fstab information for mounting the file system:
xeno:/extra /workarea nfs rw,_netdev
c. Save the file.
Example 18-3 shows the fstab.proto file after editing for remote mounting.
6. Restart the cluster_fstab service on each node that will mount the remote file system:
# cexec -w n22,n23,n24 service cluster_fstab restart
7. Verify that the remote file system is mounted by entering the following command:
# cexec -a mount | grep mountpoint
If the remote file mounting is successful, the output contains a line like the following line
for each node that mounts the remote file system:
nodename:exphost:expfs on mountpoint type nfs options
In the example used here, the output resembles the following:
n22: xeno:/extra on /workarea type nfs
(rw,_netdev,addr=192.168.9.22)
n23: xeno:/extra on /workarea type nfs
(rw,_netdev,addr=192.168.9.23)
n24: xeno:/extra on /workarea type nfs
(rw,_netdev,addr=192.168.9.24)
224 Mounting File Systems