diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-06-26 14:27:41 -0700 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-06-26 16:54:46 -0700 |
commit | c4749702f342ccba051fa081e4efa0b9c46286d1 (patch) | |
tree | 0c91e4142f9b5a3ecab16a36dfd772a5eacafe7f /deployment/heat/onap-oom/rancher_vm_entrypoint.sh | |
parent | b529fa1824be51fac31f6d3d3bd1b82a21161f2e (diff) |
Test using RAM disk for /dockerdata-nfs
Change-Id: I82d461caa7d9be77af366f8186f1b7851a914ac9
Issue-ID: INT-532
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-oom/rancher_vm_entrypoint.sh')
-rw-r--r-- | deployment/heat/onap-oom/rancher_vm_entrypoint.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deployment/heat/onap-oom/rancher_vm_entrypoint.sh b/deployment/heat/onap-oom/rancher_vm_entrypoint.sh index 578cb5129..2f09f69a0 100644 --- a/deployment/heat/onap-oom/rancher_vm_entrypoint.sh +++ b/deployment/heat/onap-oom/rancher_vm_entrypoint.sh @@ -47,8 +47,12 @@ apt-get -y update apt-get -y install linux-image-extra-$(uname -r) jq make nfs-kernel-server +# use RAM disk for /dockerdata-nfs for testing +echo "tmpfs /dockerdata-nfs tmpfs noatime,fsid=1 1 2" >> /etc/fstab +mkdir -pv /dockerdata-nfs +mount /dockerdata-nfs + # version control the persistence volume to see what's happening -mkdir -p /dockerdata-nfs/ chmod 777 /dockerdata-nfs/ chown nobody:nogroup /dockerdata-nfs/ cd /dockerdata-nfs/ |