Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd May 2009, 11:39 AM
dzspb Offline
Registered User
 
Join Date: May 2009
Location: Saint-Petersburg, Russia
Posts: 21
Can't export NFS in Fedora 9 x64 Virtual Cluster

Hi, I'm trying to get experience in creation of virtual Fedora 9 x64 cluster using Ubuntu 9.04/Virtual Box 2.2.2. I have a head node with 1 G of RAM and two slave nodes with 512 M each. There's internal networking in Virtual Box with DHCP, so my nodes have addresses: 192.168.15.100/24 (Slave0.localdomain), 192.168.15.101/24 (Slave1.localdomain), 192.168.15.102/24 (Head.localdomain). Ping is OK. I've added the following string to /etc/exports file: /usr/share 192.168.15.0/24(rw) And then used /usr/sbin/exportfs -a But showmount -e 192.168.15.102 entered at slave node shows nothing. What's wrong? May be I have to somehow start nfsserver, but how?
Reply With Quote
  #2  
Old 2nd May 2009, 12:06 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
I don't have an F9 handy and some of the services names have changes between F8 & F10.

On the server you absolutely need to have rpcbind, rpcsvcgssd and rpcidmapd running. Some of these are started by the "nfs" service (which is only needed by the server).

On the client you should have rpcgssd and rpcidmapd running.

You can manipulate the services from the menu (System->Admin...->Services) or using the same tool from the command line as "system-config-services" or you can manipilate individual services (as root) like "service nfs restart" "service rpcgssd start" and so on.

After you do the "exportfs -a" on the server, then do a "exportfs -av" to see if the share created OK.

Also on the server try this (as root)
mkdir /tmp/mp
mount -t nfs Head.localdomain:/usr/share /tmp/mp
ls - l/tmp/mp
...
umount /tmp/mp


You should be able to mount the share locally and access it (but make sure rpcgssd is running on the server if you want access permission to work).

FWIW I think NFSv4 is substantially superior to NFSv3 and the system-config-nfs can help but it's poorly documented. To do this make an /etc/exports file like
/usr/share 192.168.15.0/24(rw,fsid=0)
Then the mount command looks like:
mount -t nfs4 Head.localdomain:/ /tmp/mp
*** Note that on NFSv4 you only spec the root not the server path
This "server:/", not this "server:/usr/share"

You can still mount the share w/ the V3 command but it then uses the slacker and slower V3 protocol.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 2nd May 2009 at 12:18 PM.
Reply With Quote
  #3  
Old 2nd May 2009, 02:13 PM
dzspb Offline
Registered User
 
Join Date: May 2009
Location: Saint-Petersburg, Russia
Posts: 21
Thank You, Stevea, now I can export nfs and mount it locally. But I still can not mount it from another node. May be I need enable some additional services? The error message is 'mount.nfs: internal error' on enter: mount -a -t nfs when the last line in /etc/fstab is: 192.168.15.102:/usr/share /head/usr/share nfs rw,bg,intr,hard 0 0 The directory tree /head/usr/share I've created allready.
Reply With Quote
  #4  
Old 2nd May 2009, 05:19 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
Sorry - thought I spotted an error , but not so.

Have you tried mounting it manually and messing around with the options ?

I just tried your fstab options and command - and it mounts fine on F8.
Verify you can manually mount.

Firewall ?
Perhaps pull up wireshark and review the traffic ?
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 2nd May 2009 at 05:56 PM.
Reply With Quote
  #5  
Old 2nd May 2009, 08:34 PM
dzspb Offline
Registered User
 
Join Date: May 2009
Location: Saint-Petersburg, Russia
Posts: 21
When I enter mount -t nfs 192.168.15.102:/usr/share /head/usr/share in terminal on slave node I get 'mount.nfs: internal error'. May be it's so because there's no static IP lease in my VirtualBox DHCP-server used. May be - firewall, but I don't know where can I disable it. This - as for my virtual cluster. And I have two PS3-boxes running YDL 6.1, a kind of Fedora, but with a poor UI. If I'd know how to export and mount nfs and enable suitable services using command-prompt in terminal only, I would try to do this exercise on physical cluster of two PS3 tomorrow.
Reply With Quote
  #6  
Old 3rd May 2009, 07:50 AM
dzspb Offline
Registered User
 
Join Date: May 2009
Location: Saint-Petersburg, Russia
Posts: 21
I couldn't mount from slave node because at head node in file exports there were additional key - insecure_locks, i.e.
(rw,insecure_locks). Without it all works fine.
Reply With Quote
  #7  
Old 19th May 2009, 01:11 PM
dzspb Offline
Registered User
 
Join Date: May 2009
Location: Saint-Petersburg, Russia
Posts: 21
Stevea, I tried to reproduce my success with NFS on two PS3's running YDL (Fedora-based linux). I've got two error messages, the first on a server and on a client:
# service rpcbind restart
rpcbind: unrecognized service
And the second - on a client:
#showmount -e 192.168.12.243
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
The result of exportfs -av on server is OK. What's wrong?
Reply With Quote
  #8  
Old 20th May 2009, 05:16 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
Odd - it's called "rpcbind" in F8 and F10. Either it's not installed or not installed correctly. Try a "yum erase" and yum install" for the "rpcbind" package.

Do you have a file /etc/init.d/rpcbind ??? If so perhaps try "chkconfig rpcbind on". Then see the the 'service' command works.


The showmount failed "portmapper failed" b/c the portmapper service (rpcbind) isn't running.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
Reply

Tags
nfs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat Cluster Suite on RHEL 5.2(Virtual Hostname) NalinA Linux Chat 3 27th May 2009 06:02 AM
Cluster Fedora 7 blckspder Servers & Networking 0 2nd June 2008 08:01 PM
How to: Dekstop Cluster on Fedora 7 sharique Guides & Solutions (No Questions) 0 25th July 2007 12:09 PM
problem creating a new virtual system with Virtual Machine Manager in Fedora 7 reboot Using Fedora 3 3rd June 2007 01:51 AM
Fedora 4 simple cluster madcat Servers & Networking 0 23rd December 2005 04:24 PM


Current GMT-time: 10:57 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat