How to make share folder
Contents
[hide]Introduction
We all knows, /share/apps can store the apps we want to use on every node, and ~/ (home) directory can sync among all the nodes, have you ever thought about why they have this ability to keep this file accessible to all separate nodes? The answer is NFS, it is not Need for Speed, it is Network File System, it can ... Let's skip the introduction, let me tell you how to set up a extra folder in Front end and let it accessible to all nodes.
Procedure
Check
First check it is a folder, if it is a external device such as external hard disk drive or ... USB... you need to mount it first.
Add entry
in file /etc/exports , add a line according to previous lines' format to specify the location of the share folder
Reload Config
exportfs -r
Add Entry 2
in file /etc/auto.share , add a line according to previous lines' format to specify both the location of the share folder and entry folder
Make it work
make -C /var/411
Open your eyes
first time you want to access /share/xxx, you may find when you
ls /share
you can not fint xxx displayed, don't worry, just cd xxx and you will success.
Notice
All the process should be done by admin!
Reference
Mounting and Sharing an External Volume using NFS on a ROCKS Cluster (autofs)
Rocks Base Users Guide: Appendix A. Frequently Asked Questions
/etc/init.d/autofs restart