NFS server (HPA) for config files: Difference between revisions

From Lsdf
Jump to navigationJump to search
mNo edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The directory on the HPSS servers for the configuration files is: <b>/hpssconfig/config</b>
The directory on the HPSS servers where configuration files are kept is: <b>/opt/hpa</b>
Changing the to this directory will trigger the automounter to mount the respective share from the central admin host (<b>hpa.lsdf.kit.edu</b>. If no process uses the mountpoint, the share is unmounted after 3 minutes.
With changing to this directory the automount will be active.
The mount will be unmounted after 3 minutes without access.


==Configuration on the HPA server (172.18.95.59)==
==Configuration on the HPA server (172.18.95.59)==


* the directory for the config files was created: <b>/export/HPSS</b>
* the directory for the config files was created: <b>/export/hpa</b>


* The file /etc/exports was modified:
* The file /etc/exports was modified:


/export/HPSS 172.18.95.0/22(rw,no_subtree_check,sync,wdelay)
/export/hpa 172.18.95.0/22(rw,no_subtree_check,no_acl,no_root_squash)


* nfs-utils was updated with yum
* nfs-utils was updated with yum


* nfs was startetd with <b>systemctl start nfs.service</b>
* nfs was started with <b>systemctl start nfs.service</b>


==Configuration on the HPSS nodes==
==Configuration on the HPSS nodes (NFS clients)==


* <b>autofs</b> was installed
* <b>autofs</b> was installed
Line 29: Line 28:


for the configuration the following files was changed:
following files are adapted:


<b>/etc/auto.master</b>
<b>/etc/auto.master</b>


/hppsconfig /etc/auto.hpssconfig
/opt /etc/auto.hpa


<b>/etc/auto.hpssconfig</b>
<b>/etc/auto.hpa</b>


config -fstype=nfs 172.18.95.59:/export/HPSS
hpa -fstype=nfs4 hpa.lsdf.kit.edu:/export/hpa

Starting autofs - <b>/etc/init.d/autofs start</b>

nfs clients can now automount /opt/hpa (uses the nfs v4 protocol)

cd /opt/hpa

Latest revision as of 19:08, 12 October 2016

The directory on the HPSS servers where configuration files are kept is: /opt/hpa Changing the to this directory will trigger the automounter to mount the respective share from the central admin host (hpa.lsdf.kit.edu. If no process uses the mountpoint, the share is unmounted after 3 minutes.

Configuration on the HPA server (172.18.95.59)

  • the directory for the config files was created: /export/hpa
  • The file /etc/exports was modified:
      /export/hpa 172.18.95.0/22(rw,no_subtree_check,no_acl,no_root_squash)
  • nfs-utils was updated with yum
  • nfs was started with systemctl start nfs.service

Configuration on the HPSS nodes (NFS clients)

  • autofs was installed
   yum install autofs

alternative

   cd /tmp 
wget ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6.7/x86_64/os/Packages/hesiod-3.1.0-19.el6.x86_64.rpm wget ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6.4/x86_64/os/Packages/autofs-5.0.5-73.el6.x86_64.rpm
rpm -ivh hesiod-3.1.0-19.el6.x86_64.rpm rpm -ivh autofs-5.0.5-73.el6.x86_64.rpm

following files are adapted:

/etc/auto.master

 /opt   /etc/auto.hpa

/etc/auto.hpa

 hpa     -fstype=nfs4     hpa.lsdf.kit.edu:/export/hpa

Starting autofs - /etc/init.d/autofs start

nfs clients can now automount /opt/hpa (uses the nfs v4 protocol)

 cd /opt/hpa