GuidePedia

0

Configure NFS Server to share any directories in local network.
[1] Configure NFS Server
root@dlp:~#
aptitude -y install nfs-kernel-server
root@dlp:~#
vi /etc/idmapd.conf
# line 6: uncomment and change to your domain name

Domain =
server.world
root@dlp:~#
vi /etc/exports
# write like below *note

/home 10.0.0.0/24(rw,sync,fsid=0,no_root_squash,no_subtree_check)
# *note
/home
⇒ shared directory

10.0.0.0/24
⇒ range of networks NFS permits accesses

rw
⇒ possible to read and write

sync
⇒ synchronize

no_root_squash
⇒ enable root privilege

no_subtree_check
⇒ disable subtree check
root@dlp:~#
/etc/init.d/nfs-kernel-server restart

 * Stopping NFS kernel daemon                                    [ OK ]
 * Unexporting directories for NFS kernel daemon...              [ OK ]
 * Exporting directories for NFS kernel daemon...                [ OK ]
 * Starting NFS kernel daemon                                    [ OK ]
--------------------------------------------------------------------------------
Configure NFS Client:---
 
Configure NFS Client to be able to mount shared directory from NFS server.
[1] Configure NFS Client
root@pc01:~#
aptitude -y install nfs-common
root@pc01:~#
vi /etc/idmapd.conf
# line 6: uncomment and change to your domain name

Domain =
server.world
root@pc01:~#
initctl restart idmapd

idmapd start/running, process 3896
root@pc01:~#
mount -t nfs dlp.server.world:/home /home

root@pc01:~#
df -h

Filesystem Size Used Avail Use% Mounted on /dev/mapper/dlp--vg-root 181G 8.4G 164G 5% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 3.9G 4.0K 3.9G 1% /dev tmpfs 798M 1.4M 797M 1% /run none 5.0M 0 5.0M 0% /run/lock none 3.9G 144K 3.9G 1% /run/shm none 100M 32K 100M 1% /run/user /dev/sda1 236M 45M 179M 20% /boot dlp.server.world:/home 181G 15G 157G 9% /home
# home directory on NFS is mounted
root@pc01:~#
vi /etc/fstab
# add at the last line: change home directory this server mounts to the one on NFS

dlp.server.world:/home   /home  nfs     defaults        0       0
 

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks

Visitors

Cloud Power For You

Website Hosting At Low Price

Contatc

Empire Views
 
Top