NFS

From CLONWiki
Jump to navigation Jump to search

Configure NFS server (RHEL7)

yum install nfs-utils

To export for example /diskless directory, configure file /etc/exports:

/diskless 192.168.10.0/24(rw,no_root_squash,sync)

Start NFS server:

systemctl enable nfs-server
systemctl start nfs-server
systemctl status nfs-server

Check that NFS is exporting. Command

showmount -e

have to show following:

Export list for clondaq15.jlab.org:
/diskless 192.168.10.0/24



Solaris era

NFS is used a lot around clon cluster. Following describes some critical issues.

  • Solaris machine exports partitions listed in file /etc/dfs/dfstab, for example:
share -F nfs -o rw /data
share -F nfs -o rw /data1

To start service use following command:

svcadm enable network/nfs/server

File /etc/dfs/sharetab will be created, it contains actually exported partitions.

To display exported partitions type

share