Server: 192.168.52.130 Client: 192.168.52.133 #server sudo su - apt-get install nfs-kernel-server rpcbind #server - create a NFS directory mkdir /var/nfs/ #server - change owner chown nobody:nogroup /var/nfs #server vim /etc/exports /var/nfs 192.168.52.133(rw,sync,no_subtree_check) #server exportfs -a #server service nfs-kernel-server start #client apt-get install nfs-common rpcbind #client - local directory for NFS mkdir -p /var/nfs #mount NFS from Server to local NFS directory mount 192.168.52.130:/var/nfs /var/nfs #check out df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/A--vg-root 18G 1.5G 15G 9% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 989M 4.0K 989M 1% /dev tmpfs 200M 332K 200M 1% /run none 5.0M 0 5.0M 0% /run/lock none 999M 0 999M 0% /run/shm none 100M 0 100M 0% /run/user /dev/sda1 228M 30M 187M 14% /boot 192.168.52.133:/var/nfs 18G 969M 16G 6% /var/nfs #client vim /etc/fstab 92.168.52.130:/var/nfs /var/nfs nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
Tuesday, May 28, 2013
Setting up NFS
Subscribe to:
Posts (Atom)