Skip to content

Instantly share code, notes, and snippets.

@wuhanstudio
Last active Jan 26, 2020
Embed
What would you like to do?
NFS
# Mount NFS Disk
sudo apt install nfs-common
sudo mkdir /mnt/data
sudo mount SERVER_IP:/mnt/data /mnt/data
# Mount Cloud Disk
sudo fdisk /dev/vdb
sudo mkfs -t ext4 /dev/vdb
sudio mkdir /mnt/data
sudo mount /dev/vdb /mnt/data/
sudo chown nobody:nogroup /mnt/data
# Start NFS Server
sudo apt install nfs-kernel-server
sudo vim /etc/exports
/mnt/data CLIENT_IP_ADDR(rw,sync,no_subtree_check,no_root_squash)
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment