Skip to main content
Network Files Server for impatient

Al-Quran, Al-asr: Berpesan-pesanlah dengan kebenaran dan berpesan-pesanlah dengan kesabaran

Tutorial kali ini pula bukanlah untuk menggalakan anda untuk tidak bersabar, hanya untuk memberikan panduan ringkas berkaitan penyelenggaraan NFS secara ringkas.

The abbreviation for Network File System, NFS is a protocol suite developed and licensed by Sun Microsystems that allows different makes of computers running different operating systems to share files and disk storage.

ok,cukup pasal definisi. Mulakan tutorial:

Andaikan NFS Server ialah 192.168.1.53
1-pastikan anda ada install kemudahan NFS Server di dalam machine anda
2- Buat direktori mana yang anda inginkan untuk dikongsi bersama machine *nix lain:


$su -
#mkdir /testing


3- Edit /etc/exports
vi /etc/exports



# cat /etc/exports
# See the exports(5) manpage for a description of the syntax of this file.
# This file contains a list of all directories that are to be exported to
# other computers via NFS (Network File System).
# This file used by rpc.nfsd and rpc.mountd. See their manpages for details
# on how make changes in this file effective.
/testing *(ro,root_squash,sync)


savekan

run


#exportfs
atau
/etc/init.d/nfsserver start



pada client,setting boleh diedit pada /etc/fstab



192.168.1.53:/testing /test nfs defaults 0 0


saya melekapkan /testing daripada NFS kepada /test pada NFS Client.

atau guna arahan mount


mount -t nfs 192.168.1.53:/testing /test/


anda boleh periksa samada ia sudah dilekapkan dengan menggunakan arahan mount
kacang kan?

Persoalan tambahan:

salam,

saya ada setup satu NFS server.

macam mana cara kita nak set UID/GID utk NFS user bagi anonymous users.
kalau dalam nfs server tu kita boleh tau sbb penulis adalah local
user.tapi mcm mana dengan machine yang mount ke server?

almuqaddis# ls -l
total 8
-rw-r--r-- 1 nobody nobody 0 Jun 2 11:00 coba
-rw-r--r-- 1 4294967294 4294967294 179 Jun 2 12:29 uji --->client
-rw-r--r-- 1 nobody nobody 969 Jun 2 12:25 test


saya setup uid n gid untuk NFS direktori sebagai:

# ls -ldh /public/
drwxrwxrwx 2 nfsnobody nfsnobody 4.0K Jun 2 12:29 /public/


antara rujukan :
http://nfs.sourceforge.net/nfs-howto/server.html


Lee Shawn jawab:

untuk options dalam /etc/export, try guna options:
(all_squash,squash_uids=555,squash_gid=555)

555 = uid/gif untuk user nfsnobody

berbincanglah di sini:
http://groups.yahoo.com/group/mypenguin99/message/13447

Comments

Popular posts from this blog

Gue dengan S2 gue. Sronok banget!
Beijing and image manipulation addict Salam, Image manipulation with command line is fun and time consuming too. Given my Digikam plugins unable to work, I start to figure out many wonderful features of other tool which offer almost the same quality. However I was stucked with ImageMagick,with many tutorial on the net: Here and Here for i in *jpg ;do convert -font helvetica -fill white -pointsize 18 -draw 'text 10,50 "ACM-ICPC Beijing 2005"' $i $i;done The pix above shows a heater to heat up guest room during ACM-ICPC competition. (outside building's temperature is almost 4 celcious).