Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: NFS trouble on Centos
PostPosted: Sun Mar 13, 2011 6:56 pm 
Offline
Junior Member

Joined: Wed Feb 09, 2011 7:41 am
Posts: 28
I'm trying to simply share a directory on Linode X with Linode Y

On both Linodes, I've installed NFS + Port Mapper.

On Linode X, I have following on my /etc/exports:

/path/to/shared/directory ip-linodeY(ro)

Oddly, doing

/usr/sbin/showmount --exports just hangs

however doing this

/usr/sbin/showmount --exports 127.0.0.1

displays:

Export list for 127.0.0.1:
/path/to/shared/directory ip-linodeY(ro)

So, am I right to assume that it's exported fine (subject to firewall allowing access ?)

On Linode Y, I try this:

mount ip-linodeX:/path/to/shared/directory /mnt/share

and I get :

mount: wrong fs type, bad option, bad superblock on
ip-linodeX:/path/to/shared/directory

If I try:

mount -t ext3 ip-linodeX:/path/to/shared/directory /mnt/share

I get:

mount: special device ip-linodeX:/path/to/shared/directory

does not exist.

For the purpose of this exercise I've stopped iptables on both machines.

What am I doing wrong ?


Top
   
 Post subject:
PostPosted: Sun Mar 13, 2011 7:03 pm 
Offline
Senior Newbie

Joined: Sat Dec 18, 2010 5:45 am
Posts: 11
Have you tried switching from the Linode kernel to the official CentOS kernel?

http://library.linode.com/linode-platfo ... o#centos_5
Follow these directions, except perhaps disable SELinux in order to eliminate some complication.


Top
   
 Post subject:
PostPosted: Sun Mar 13, 2011 8:12 pm 
Offline
Junior Member

Joined: Wed Feb 09, 2011 7:41 am
Posts: 28
wtogami wrote:
Have you tried switching from the Linode kernel to the official CentOS kernel?


Thankyou for taking time to answer my query, unfortunately following those instructions didn't work.

The commands executed fine, but after changing the kernel to pv-grub-x84_64 it wouldn't boot, I get:

Booting 'CentOS (2.6.18-194.26.1.el5xen)'

root (hd0)
Filesystem type is ext2fs, using whole disk
kernel /boot/vmlinuz-2.6.18-194.26.1.el5xen root=/dev/xvda

Error 15: File not found


Switching back to Stable 2.6.18 and it boots fine. I tried it with and without Xenify + Automount options


Top
   
 Post subject:
PostPosted: Sun Mar 13, 2011 8:43 pm 
Offline
Junior Member

Joined: Wed Feb 09, 2011 7:41 am
Posts: 28
Update..

Debugging the error in my previous post I noticed that instead of /boot/vmlinuz-2.6.18-194.26.1.el5xen being in my /boot directory I had vmlinuz-2.6.18-238.1.1.1.el5xen (same goes for the initrd references)

So incase that may fix it, I changed the references in grub.conf a menu.1st and now it won't boot at all.

This seems awfully convoluted to get what I thought was quite a simple feature such as NFS working.


Top
   
 Post subject:
PostPosted: Mon Mar 14, 2011 7:06 am 
Offline
Junior Member

Joined: Wed Feb 09, 2011 7:41 am
Posts: 28
Update.. looking at the console while booting - you're right it was the SELinux that was causing the problem, as soon as I removed that it booted fine..


Top
   
 Post subject:
PostPosted: Mon Mar 14, 2011 7:44 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
If you're still having trouble with the new kernel and SELinux is disabled then ensure nfs-utils is installed ("sudo yum install nfs-utils"). This is needed to mount NFS filesystems.

Next you need to look at the logs on the server; if you're exporting to hostnames then the entry must match EXACTLY what the IP address resolves to on the host. A mismatch will show. Since linode IPs are relatively static (only if you change datacenter would they change) you may be safer to export to the IP address.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group