Page 1 of 1

[SOLVED] "nfs-utils is missing" - but it is installed!!!

PostPosted: Jul 24th, '13, 17:29
by omelette
I tried setting up NFS sharing (both ways) between Ubuntu 10.04 and Mageia via Mageia Control Center\Network Sharing, and was almost successful - only problem was I could not write to the NFS folder on Ubuntu, which is configured 'rw'. I then noticed the 'Local disks/Share your hard disk partitions' option in the Mageia Control Center, but when I step through the wizard options, I am first told that 'nfs-utils' needs to be installed - it already is according to Software Management - followed by a "Mandatory package nfs-utils is missing", then booted from the wizard.

Is this a bug?

My problem is a 'rights issue' as I can write to the folder as root. Do I need to belong to a specific group?

Re: "nfs-utils is missing" - but it is installed!!!

PostPosted: Jul 24th, '13, 20:32
by doktor5000
The nfs-utils issue is a known bug: https://bugs.mageia.org/show_bug.cgi?id=10301

For the permissions problem, you don't need to be in a specific group, but the mapping of local userid and remote userid
has to be correctly configured on the NFS server, or you export it to writable to everyone.
Can you please show the current configuration on the server and how you've mounted it on the client?

Re: "nfs-utils is missing" - but it is installed!!!

PostPosted: Jul 25th, '13, 16:59
by omelette
Hi. The problem I cited had a simple solution - I just needed to set the permissions of 'Others' for the shared folder on the Ubuntu pc to 'Create and delete files'. So I now have no problem writing to the Share on the Ubuntu machine.

However having set up the Mageia pc to share a folder via nfs as well (MCC -> Share drives and directories using NFS) I cannot mount the share on the Ubuntu machine. With no firewalls up on either machine, and able to ping the Mageia pc no problem, when I issue a 'sudo mount -t nfs 192.168.1.102:/home/omelette/Public /mnt' on Ubuntu, I get a "Mount system call failed" after it hangs for about a minute. Issuing a 'sudo rpcinfo -p' on Mageia I see that the nfs server is up and running, so I'm out of ideas! I hope I'm right in presuming that any pc can act as both client & server simultaneously!

/etc/exports has a single line "/home/omelette/Public *(no_all_squash,sync,secure,subtree_check,rw)", whereas both /etc/hosts.allow and /etc/hosts.deny have no entries.

Re: "nfs-utils is missing" - but it is installed!!!

PostPosted: Jul 26th, '13, 00:58
by doktor5000
You want to run
Code: Select all
showmount -e ip_of_mageia_server
and
Code: Select all
rpcinfo -p ip_of_mageia_server
from the Ubuntu host, otherwise it's not really interesting.
Maybe also an
Code: Select all
exportfs -v
on the mageia server, and post all of that here.

Re: "nfs-utils is missing" - but it is installed!!!

PostPosted: Jul 26th, '13, 19:07
by omelette
Running 'showmount -e 192.168.1.102' on Ubuntu, I get;

Code: Select all
Export list for 192.168.1.102:
/home/omelette/Public *


Running 'rpcinfo -p 192.168.1.102' on Ubuntu produces;

Code: Select all
program vers proto   port
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100021    1   udp  40810  nlockmgr
    100021    3   udp  40810  nlockmgr
    100021    4   udp  40810  nlockmgr
    100021    1   tcp  50355  nlockmgr
    100021    3   tcp  50355  nlockmgr
    100021    4   tcp  50355  nlockmgr
    100024    1   udp  52126  status
    100024    1   tcp  40770  status
    100005    1   udp  57742  mountd
    100005    1   tcp  42091  mountd
    100005    2   udp  34967  mountd
    100005    2   tcp  56846  mountd
    100005    3   udp  37042  mountd
    100005    3   tcp  45874  mountd
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    2   tcp   2049
    100227    3   tcp   2049
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100227    2   udp   2049
    100227    3   udp   2049
    100011    1   udp    784  rquotad
    100011    2   udp    784  rquotad
    100011    1   tcp    787  rquotad
    100011    2   tcp    787  rquotad


While running 'exportfs -v' on Mageia gives;

Code: Select all
/home/omelette/Public
                <world>(rw,async,wdelay,root_squash,no_subtree_check)


Whereas running 'sudo mount -t nfs 192.168.1.102:/home/omelette/Public /mnt' on Ubuntu still gives;

Code: Select all
mount.nfs: mount system call failed


For completeness, Ubuntu's '/etc/exports' contains just the one line;

Code: Select all
/home/omelette/NFS_Share 192.168.1.1/24(rw,sync,no_subtree_check)


and its '/etc/hosts.allow' and '/etc/hosts.deny' contain nothing.

Re: "nfs-utils is missing" - but it is installed!!!

PostPosted: Jul 28th, '13, 01:27
by omelette
Sorted. After scouring the net and finding many suffering similarly, I finally hit on one that seemed the solution - running 'dpkg-reconfigure portmap' and selecting 'no' worked for a lot of people, and sure enough, when I ran it I connected first time! Un-mounting the share and trying again resulted in failure however. I then came across using 'mount -t nfs4...' rather than just 'nfs' - executing this also resulted in my connecting first time, but ran a second time? - right, no connection!

The solution turned out to be embarrassingly simple - restart Linux. :oops:

The 'dpkg-reconfigure portmap' thingy (Should portmap be bound to the loopback address?) doesn't seem to matter on my Ubuntu setup - it works either way. The one thing that is crucial when connecting Ubuntu to Mageia is to specify nfs4 during mounting, eg 'mount -t nfs4 192.168.1.100:/home/user/NFS_Share /media/test' Otherwise it generates a "mount.nfs: access denied by server while mounting..." error.