Installing NFS on new cluster

From ImageWiki

(Difference between revisions)
Jump to: navigation, search
(Setting up NFS server)
(NFS File server installation)
Line 5: Line 5:
-
Create mount points for NFS directories:
+
Create mount points for NFS directories on all servers:
  sudo mkdir /image
  sudo mkdir /image
  sudo mkdir /image/data1
  sudo mkdir /image/data1
Line 12: Line 12:
STATUS: Has been done on all except nfs1
STATUS: Has been done on all except nfs1
 +
 +
On nfs2 do the following:
 +
sudo mkdir /image/users
 +
sudo mount --bind /home/SCIENCE /image/users
===Mounting disks locally===
===Mounting disks locally===
Line 20: Line 24:
====nfs2====
====nfs2====
In /etc/fstab add
In /etc/fstab add
-
  /dev/vg0/user_1            /home/SCIENCE    xfs  defaults        1 2
+
  /dev/vg0/user_1            /image/users    xfs  defaults        1 2
  /dev/vg1/user_2            /image/data1    xfs  defaults        1 2
  /dev/vg1/user_2            /image/data1    xfs  defaults        1 2
 +
/home/SCIENCE              /image/users    none    bind  0  0
===Setting up NFS server===
===Setting up NFS server===
Line 33: Line 38:
On nfs2-diku-image.science.ku.dk:
On nfs2-diku-image.science.ku.dk:
  /image  *(fsid=0,crossmnt,rw,no_root_squash,sync,no_subtree_check)
  /image  *(fsid=0,crossmnt,rw,no_root_squash,sync,no_subtree_check)
 +
/image/users    *(rw,no_root_squash,sync,no_subtree_check)
  /image/data1    *(rw,no_root_squash,sync,no_subtree_check)
  /image/data1    *(rw,no_root_squash,sync,no_subtree_check)

Revision as of 17:28, 24 March 2014

Contents

NFS File server installation

The storage servers nfs1 and nfs2 acts as NFS file servers. The NFS server software has been installed on these machines.

Here is how the storage and compute servers has been configured.


Create mount points for NFS directories on all servers:

sudo mkdir /image
sudo mkdir /image/data1
sudo mkdir /image/data2
sudo mkdir /image/data3

STATUS: Has been done on all except nfs1

On nfs2 do the following:

sudo mkdir /image/users
sudo mount --bind /home/SCIENCE /image/users

Mounting disks locally

nfs1

In /etc/fstab add

nfs2

In /etc/fstab add

/dev/vg0/user_1             /image/users     xfs   defaults        1 2
/dev/vg1/user_2             /image/data1     xfs   defaults        1 2
/home/SCIENCE               /image/users    none    bind  0  0

Setting up NFS server

Using YaST2 gui tool for the installation:

sudo /sbin/yast2

Select NFSv4 and open the firewall.

Select Network services->NFS server and configure it with (configured in /etc/exports):

On nfs2-diku-image.science.ku.dk:

/image   *(fsid=0,crossmnt,rw,no_root_squash,sync,no_subtree_check)
/image/users    *(rw,no_root_squash,sync,no_subtree_check)
/image/data1    *(rw,no_root_squash,sync,no_subtree_check)

NFS client installation on compute servers

Using YaST2 gui tool for the installation:

sudo /sbin/yast2

Select Network services->NFS client and configure it with (configured in /etc/fstab): nfs2-diku-image.science.ku.dk:/image/data1 /image/data1 nfs4 defaults 0 0

Personal tools