An embedded message was scrubbed... From: Niki Kovacs <contact at kikinovak.net> Subject: Re: [CentOS] Getting started with NFS Date: Sat, 04 Jul 2009 10:33:31 +0200 Size: 1377 URL: <http://lists.centos.org/pipermail/centos/attachments/20090704/b8ff2d37/attachment-0003.eml>
On Sat, 04 Jul 2009 10:48:37 +0200 Niki Kovacs wrote:> Any idea what might go wrong here?firewall problem? Try disabling your firewall and see if it works. If it does, then here is my note about how to do make NFS work through a firewall. HOW TO SET UP A FIREWALL THAT ALLOWS NFS Create the file "/etc/sysconfig/nfs" and add the following contents: STATD_PORT=4001 LOCKD_TCPPORT=4002 LOCKD_UDPPORT=4002 MOUNTD_PORT=4003 Append the following to the file "/etc/services": rquotad 4004/tcp # rpc.rquotad tcp port rquotad 4004/udp # rpc.rquotad udp port Restart the nfs services>From there, open these ports -> 111:tcp, 111:udp, 2049:tcp, 2049:udp,4001:tcp, 4001:udp, 4002:tcp, 4002:udp, 4003:tcp, 4003:udp, 4004:tcp, 4004:udp -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
Niki Kovacs wrote:> > ------------------------------------------------------------------------ > > Subject: > Re: [CentOS] Getting started with NFS > From: > Niki Kovacs <contact at kikinovak.net> > Date: > Sat, 04 Jul 2009 10:33:31 +0200 > To: > Frank Cox <theatre at sasktel.net> > > To: > Frank Cox <theatre at sasktel.net> > > > Frank Cox a ?crit : >> >> There isn't much to setting up a simple NFS fileserver and client >> mount. Set >> up /etc/exports on the server (this assumes your client is 192.168.0.3) >> >> /whatever/where-ever/ 192.168.0.3(rw) >> >> Start the nfs service. Create a mount point on the client >> >> "mkdir /mnt/fileserver" >> >> then mount the fileserver there. >> "mount fileserver:/whatever/where-ever/ /mnt/fileserver" >> > > That's about exactly what I did. I setup the NFS server on machine > 'raymonde' (192.168.1.4) on my local network. Then when I do this from > another machine: > > [root at lifebook ~]# mount raymonde:/data /home/shares > > Nothing happens for about a minute or so, and then I get the following > error: > > mount.nfs: Input/output error > > Which leaves me clueless. > > Any idea what might go wrong here? > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >Niki, nfs v2 and v3 are fairly simple, however I have not yet managed v4 as it seem to need kerberos and individual user authentication rather than machine authentication as do v2 & v3. If you use a firewall on your server, you will need to set up permanent ports for the various services that nfs uses. check out /etc/sysconfig/nfs rpcinfo -p will show you what is running and what version and ports - very useful!! HTH Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: rkampen.vcf Type: text/x-vcard Size: 196 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20090704/68fd4697/attachment-0003.vcf>
Thanks everybody for the detailed hints and answers, on the list as well as offlist. I got myself a second "sandbox" PC today, and I just installed two vanilla CentOS 5.3 systems on them. It'll be much easier to figure out the innards of NFS without the constantly nagging fear of breaking something on my production PCs. I'll eventually keep posting follow-ups to my investigations. cheers, Niki