View Full Version : how to use nfs, please help
redhat_ali
2007-10-30, 05:17 AM CDT
hello all! :)
i just set up my nfs server and also configured my nfs clients, what now? how to use nfs? in Windows I just browse the computers in the network and their shared resources. I do the same in my Fedora6 and it's always giving me a "dav//...." error.
please reply people :)
thanks! :)
Zotter
2007-10-30, 10:44 PM CDT
/etc/fstab
or
mount
So, if my nfs server is 'bob' and I've setup /etc/exports to includ /share, I'd mount that on my workstation 'fred' by:
mount bob:/share /mnt/bob
of course, I'd have to first create /mnt/bob.
You can add these lines to /etc/fstab so the mounting occurs at bootup. Also, be sure you have rpcbind running. /etc/rc.d/init.d/rpcbind start or whatever you way is.
redhat_ali
2007-10-31, 01:57 AM CDT
/etc/fstab
or
mount
So, if my nfs server is 'bob' and I've setup /etc/exports to includ /share, I'd mount that on my workstation 'fred' by:
mount bob:/share /mnt/bob
of course, I'd have to first create /mnt/bob.
You can add these lines to /etc/fstab so the mounting occurs at bootup. Also, be sure you have rpcbind running. /etc/rc.d/init.d/rpcbind start or whatever you way is.
hi there Zotter! :)
thanks for the reply:)
you gave me a very clear instruction and Im gonna try them. those are clearer than those that Ive read from books, so far... and you just mentioned rpcbind that I havent read yet. hopefully i'll get my PCs running. Il post the result later and I hope to see you again. thanks again Zotter! God bless! :)
redhat_ali
2007-11-04, 04:19 AM CST
/etc/fstab
or
mount
So, if my nfs server is 'bob' and I've setup /etc/exports to includ /share, I'd mount that on my workstation 'fred' by:
mount bob:/share /mnt/bob
of course, I'd have to first create /mnt/bob.
You can add these lines to /etc/fstab so the mounting occurs at bootup. Also, be sure you have rpcbind running. /etc/rc.d/init.d/rpcbind start or whatever you way is.
hi there bro! thanks again for your reply last time. i hope this thread will cross your way again and you'll be generous enough (again) to send me some help. I performed the task of setting up my nfs server and client and as you told me I may either use /etc/fstab configuration or use manual mounting using the mount command following the format you adviced me. however, i receive an error : "mount: mount to NFS server '192.168.1.144' failed. RPC Error: Unable to receive." your suggestion and the book I am reading is saying the same thing. maybe I had an error somewhere. can you check my configuration? this is how I set up everything:
my /etc/exports file goes like this: /home *(ro,sync)
this is how I set my NFS server:
# chkconfig --level 35 nfs on
# chkconfig --level 35 nfslock on
# chkconfig --level 35 portmap on
# service nfs start
# service nfslock start
# service portmap start
this is how I set my NFS client:
# chkconfig --level 35 netfs on
# chkconfig --level 35 nfslock on
# chkconfig --level 35 portmap on
# service netfs start
# service nfslock start
# service portmap start
and this is how I mount
# mkdir /mnt/test_nfs
# mount -t nfs 192.168.1.144:/home /mnt/test_nfs
im not sure of the rpcbind you mentioned earlier, i havent had any readings about that yet.
if there's anything that I may seem to forget or done wrong please give me advice. thanks again bro! :)
Thetargos
2007-11-04, 09:52 AM CST
Check the firewall, since your computers are not facing the Internet (last I knew), you may want to try disabling the firewall (edit it in the system-config-securitylevel & restart service iptables) and now try to mount your NFS shares. It might be a firewall problem. Check the man page for the necessary ports and protocol type (UDP/TCP)
redhat_ali
2007-11-04, 09:16 PM CST
Check the firewall, since your computers are not facing the Internet (last I knew), you may want to try disabling the firewall (edit it in the system-config-securitylevel & restart service iptables) and now try to mount your NFS shares. It might be a firewall problem. Check the man page for the necessary ports and protocol type (UDP/TCP)
Hello there Maestro! :)
It's good to learn from you again. I was not able to catch this reply yesterday, I may be out already. Yes, I am not yet in the internet and I forgot to think of the Firewall last time. I browsed my books last night and it is telling me the same thing you say (the Firewall). So, I will try it out later and I will give you feedback. I am confident, that will solve the problem because the books says and most of all... YOU said:) Thanks man, you're the best! :)
After this, I will be doing SAMBA. I always look forward for your support Maestro. Thanks a lot and God bless! :)
Thetargos
2007-11-04, 10:25 PM CST
SAMBA is actually much easier than NFS, though NFS can be more convenient for *Nix environments, while SAMBA is good for mixed environments, though.
redhat_ali
2007-11-04, 11:36 PM CST
SAMBA is actually much easier than NFS, though NFS can be more convenient for *Nix environments, while SAMBA is good for mixed environments, though.
i still remember what you told me the first time, "peel one potatoe at a time". after I got through with NFS i'll experiment with SAMBA. It's good to know (from you) that SAMBA is much easier than NFS. that means it will be less-sweating and more fun;)
redhat_ali
2007-11-05, 05:24 AM CST
Hello people! :)
Im through with my nfs problem. I already got it running. thanks to all of you! :)
Ow...it's just Zott and Thet plus the guy maintaining the community :)
see you all guys in my future posts!
God bless everyone! :)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.