Mounting and Sharing an External Volume using NFS on a ROCKS Cluster -- Method 1 (/etc/fstab)
Mounting the Volume on the Head Node
- Create the directory on the head node on which the volume will be mounted:
$ mkdir /work1
- Add an entry to '/etc/fstab' that mounts the volume:
/dev/sdc1 /work1 ext3 defaults 1 2
Serve the Mounted Volume using NFS
- Add an entry to '/etc/exports' to allow NFS sharing of the volume:
/work1 10.1.1.1(rw,async,no_root_squash) 10.1.0.0/255.255.0.0(rw,async)
- Re-read the new NFS configuration:
$ exportfs -r
Set Up Compute Nodes to Mount the Shared Volume
- Navigate to the ROCKS site-profile directory:
$ cd /export/rocks/install/site-profiles/5.1/nodes
- Create a new configuration file based on the skeleton XML:
$ cp skeleton.xml extend-compute.xml - Edit the post-installation script section ('
<post>...</post>') of the new file:<post> mkdir /work1 <file name="/etc/fstab" mode="append"> kwyjibo.local:/work1 /work1 nfs defaults 1 2 </file> </post> - Check for errors:
$ xmllint -noout extend-compute.xm - Recreate the distribution:
$ cd /export/rocks/install $ rocks create distro
- Reinstall the compute nodes:
$ cluster-fork /boot/kickstart/cluster-kickstart
feed
Comments
0 comments postedPost new comment