aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/heat/onap-oom
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-06-28 16:13:41 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-06-28 16:13:41 -0700
commitbc76450dfae26da5364b4ef79535314598e04a1c (patch)
tree2b40edf32e55358209eb211af43b96067eb61185 /deployment/heat/onap-oom
parentf7b6110039b9fa98cc6369f63649d5d0c9f91a49 (diff)
Bug fix on RAM disk NFS share
Change-Id: I26eed563e67db2d542f7ec9c78fd51ba931c700c Issue-ID: INT-532 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-oom')
-rw-r--r--deployment/heat/onap-oom/rancher_vm_entrypoint.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/deployment/heat/onap-oom/rancher_vm_entrypoint.sh b/deployment/heat/onap-oom/rancher_vm_entrypoint.sh
index 2f09f69a0..89f942739 100644
--- a/deployment/heat/onap-oom/rancher_vm_entrypoint.sh
+++ b/deployment/heat/onap-oom/rancher_vm_entrypoint.sh
@@ -44,11 +44,11 @@ Acquire::https::Proxy "DIRECT";
EOF
fi
apt-get -y update
-apt-get -y install linux-image-extra-$(uname -r) jq make nfs-kernel-server
+apt-get -y install linux-image-extra-$(uname -r) jq make nfs-kernel-server moreutils
# use RAM disk for /dockerdata-nfs for testing
-echo "tmpfs /dockerdata-nfs tmpfs noatime,fsid=1 1 2" >> /etc/fstab
+echo "tmpfs /dockerdata-nfs tmpfs noatime 1 2" >> /etc/fstab
mkdir -pv /dockerdata-nfs
mount /dockerdata-nfs
@@ -65,7 +65,7 @@ git commit -m "initial commit"
# export NFS mount
NFS_EXP=""
for K8S_VM_IP in $(tr -d ',[]' < /opt/config/k8s_vm_ips.txt); do
- NFS_EXP+="$K8S_VM_IP(rw,sync,no_root_squash,no_subtree_check) "
+ NFS_EXP+="$K8S_VM_IP(rw,fsid=1,sync,no_root_squash,no_subtree_check) "
done
echo "/dockerdata-nfs $NFS_EXP" | tee /etc/exports