...
Code Block | ||||
---|---|---|---|---|
| ||||
sudo apt update
sudo apt install nfs-kernel-server
sudo mkdir /export
sudo mkdir /export/dockerdata-nfs
sudo chmod 777 /export
sudo chmod 777 /export/dockerdata-nfs
sudo vi /etc/exports
# append "/dockerdata-nfs *(rw,no_root_squash,no_subtree_check)"
sudo vi /etc/fstab
# append "/home/ubuntu/dockerdata-nfs /dockerdata-nfs none bind 0 0"
sudo service nfs-kernel-server restart |
...
Code Block | ||||
---|---|---|---|---|
| ||||
sudo apt update sudo apt install nfs-common sudo mkdir /dockerdata-nfs sudo chmod 777 /dockerdata-nfs #Option 1: sudo mount -t nfs -o proto=tcp,port=2049 <host|IP of k8s master node vm>:/dockerdata-nfs /dockerdata-nfs nfs auto 0 0:/dockerdata-nfs /dockerdata-nfs sudo vi /etc/fstab # append "<host|IP of k8s master node vm>:/dockerdata-nfs /dockerdata-nfs nfs auto 0 0" #Option 2: (verified on Ubuntu 16.04 AWS EC2 EBS volume) sudo vi /etc/fstab # cdrancher.onap.info:/dockerdata-nfs /dockerdata-nfs nfs auto 0 0 sudo mount -a |
Tips
unmount
Use the lazy (-l) option to force unmount the mount point.
...