It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
apt-get update
apt-get install nfs-kernel-server
service nfs-kernel-server start
service nfs-kernel-server status
nano /etc/rc.local
/etc/init.d/nfs-kernel-server restart
mkdir /home/test
nano /etc/exports
/home/test NFS_client_IP_or_hostname(rw,sync,no_root_squash,no_subtree_check)
rw - the filesystem is writable;
ro - the filesystem is exported read-only; this is the default;root_squash -
maproot
UID/GID to anonymous UID/GID (nobody
/nogroup
); this is the default;all_squash -
map all UIDs/GIDs to anonymous UID/GID (nobody
/nogroup
);no_root_squash -
do not maproot
(nor any other) UID/GID to anonymous UID/GID (nobody
/nogroup
);
sync - reply clients after data have been stored to stable storage; this is the default;
async - reply clients before data have been stored to stable storage; improves performance, but should only be used onro
filesystems
exportfs -a
apt-get update
apt-get install nfs-common
mkdir -p /nfs/home
mount NFS_server_IP_or_hostname:/home/test /nfs/home
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 160G 754M 160G 1% /
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 9.2M 2.0G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
none 2.0G 0 2.0G 0% /run/shm
NFS_server_IP_or_hostname:/home/test 160G 738M 160G 1% /nfs/home/