From 1660a8c5518c45b8a424b15b8c63b71ae0b39c69 Mon Sep 17 00:00:00 2001 From: efiacor Date: Tue, 3 May 2022 16:24:13 +0100 Subject: [DOCS] Clean up docs etc Clean up docs dir Add some stuff for J release Signed-off-by: efiacor Change-Id: Ie34bfe9c70129e3ffc34800481e4052faaebe067 Issue-ID: OOM-2953 --- docs/shell/slave_nfs_node.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/shell/slave_nfs_node.sh (limited to 'docs/shell/slave_nfs_node.sh') diff --git a/docs/shell/slave_nfs_node.sh b/docs/shell/slave_nfs_node.sh new file mode 100644 index 0000000000..1035ff5ad6 --- /dev/null +++ b/docs/shell/slave_nfs_node.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +usage () { + echo "Usage:" + echo " ./$(basename $0) nfs_master_ip" + exit 1 +} + +if [ "$#" -ne 1 ]; then + echo "Missing NFS mater node" + usage +fi + +MASTER_IP=$1 + +#Install NFS common +sudo apt-get update +sudo apt-get install -y nfs-common + +#Create NFS directory +sudo mkdir -p /dockerdata-nfs + +#Mount the remote NFS directory to the local one +sudo mount $MASTER_IP:/dockerdata-nfs /dockerdata-nfs/ +echo "$MASTER_IP:/dockerdata-nfs /dockerdata-nfs nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0" | sudo tee -a /etc/fstab -- cgit 1.2.3-korg