NSF SERVER


 

[root@localhost yum.repos.d]# rpm -aq | grep nfs
nfs-utils-lib-1.0.8-7.6.el5
system-config-nfs-1.3.23-1.el5
nfs-utils-1.0.9-44.el5

Kalau tidak ada install
[root@localhost yum.repos.d]# yum install nfs*
[root@localhost yum.repos.d]# rpm -aq | grep portmap
portmap-4.0-65.2.2.1

Kalau tidak ada install portmap
[root@localhost yum.repos.d]# yum install portmap
Pastikan semua service jalan (rpcidmapd,nfs,nfslock,portmap)

[root@localhost yum.repos.d]# /etc/init.d/rpcidmapd status
rpc.idmapd (pid 1857) is running…

[root@localhost yum.repos.d]# /etc/init.d/nfs status
rpc.mountd (pid 2594) is running…
nfsd (pid 2591 2590 2589 2588 2587 2586 2585 2584) is running…
rpc.rquotad (pid 2566) is running…

[root@localhost yum.repos.d]# /etc/init.d/nfslock start
Starting NFS statd:
Chkconfig service agar jalan di runlevel 3,5

[root@localhost yum.repos.d]# chkconfig portmap on
[root@localhost yum.repos.d]# chkconfig nfslock on
[root@localhost yum.repos.d]# chkconfig nfs on
[root@localhost yum.repos.d]# chkconfig rpcidmapd on

[root@localhost yum.repos.d]# rpcinfo -p 192.168.0.136
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 623 rquotad
100011 2 udp 623 rquotad
100011 1 tcp 626 rquotad
100011 2 tcp 626 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 36418 nlockmgr
100021 3 udp 36418 nlockmgr
100021 4 udp 36418 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 tcp 49184 nlockmgr
100021 3 tcp 49184 nlockmgr
100021 4 tcp 49184 nlockmgr
100005 1 udp 650 mountd
100005 1 tcp 653 mountd
100005 2 udp 650 mountd
100005 2 tcp 653 mountd
100005 3 udp 650 mountd
100005 3 tcp 653 mountd
100024 1 udp 790 status
100024 1 tcp 793 status

Server SUMBER yang menghsare

[root@localhost uploads]#vim /etc/export
/var/www/html/new_tms 192.168.0.*(rw,sync)

[root@localhost uploads]# exportfs -va
exporting 192.168.0.*:/var/www/html/new_tms
Mounting manual dari destination
mount -t nfs 192.168.0.136:/var/www/html/new_tms /var/www/html/new_tms

Agar di Mounting otomatis pada saat reboot, tambahkan di server tujuan

[root@server11 ~]# vim /etc/fstab
192.168.0.136:/var/www/html/new_tms /var/www/html/new_tms nfs defaults 1 1

[root@server11 ~]# mount
192.168.0.136:/var/www/html/new_tms on /var/www/html/new_tms type nfs (rw,addr=192.168.0.136)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: