From: Eino Juhani Oltedal <e.j.oltedal@fys.uio.no>
To: Kinglong Mee <kinglongmee@gmail.com>, linux-nfs@vger.kernel.org
Subject: Re: Problem installing nfs-utils to non standard dir
Date: Thu, 16 Apr 2015 16:00:14 +0200 [thread overview]
Message-ID: <552FC06E.2020204@fys.uio.no> (raw)
In-Reply-To: <552FAEEA.2090604@gmail.com>
This is a very minimal linux install, it does not have firewalld.
I think that this error might be caused by the kernel being built
without nfs support. I'm unsure how to test this without rebuilding the
kernel, as I did not build it myself.
I will try rebuilding the kernel tonight, to see if that helps.
Thanks,
Eino
On 04/16/2015 02:45 PM, Kinglong Mee wrote:
> On 4/16/2015 5:40 PM, Eino Juhani Oltedal wrote:
>> The arm machine does not have rpcinfo.
>> On the server i get this:
>> rpcinfo -p
>> program vers proto port service
>> 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
>> 100024 1 udp 43663 status
>> 100005 1 udp 20048 mountd
>> 100024 1 tcp 39197 status
>> 100005 1 tcp 20048 mountd
>> 100005 2 udp 20048 mountd
>> 100005 2 tcp 20048 mountd
>> 100005 3 udp 20048 mountd
>> 100005 3 tcp 20048 mountd
>> 100003 3 tcp 2049 nfs
>> 100003 4 tcp 2049 nfs
>> 100227 3 tcp 2049 nfs_acl
>> 100003 3 udp 2049 nfs
>> 100003 4 udp 2049 nfs
>> 100227 3 udp 2049 nfs_acl
>> 100021 1 udp 55946 nlockmgr
>> 100021 3 udp 55946 nlockmgr
>> 100021 4 udp 55946 nlockmgr
>> 100021 1 tcp 57551 nlockmgr
>> 100021 3 tcp 57551 nlockmgr
>> 100021 4 tcp 57551 nlockmgr
>>
>> My /etc/exports:
>> /share/ 192.168.0.0/24(rw,fsid=0,no_subtree_check)
>> /share/test 192.168.0.0/24(rw,no_subtree_check,nohide)
>>
>> I am able to mount the nfs share on a third computer, but not on the arm computer that uses my build.
> It means it's not nfs server's problem.
>
>> On 04/16/2015 06:43 AM, Kinglong Mee wrote:
>>> On 4/16/2015 1:18 AM, Eino Juhani Oltedal wrote:
>>>> Thank you for the help. I was able to avoid the error by using make DESTDIR=${HOME}/installs/arm
>>>> instead of the prefix. Then i copied everything under ${HOME}/installs/arm over to the root of the
>>>> ARM file-system.
>>>>
>>>> However when trying to use the newly built nfs I get some errors:
>>>>
>>>> mount -t nfs 192.168.0.104:/test /mnt
>>>> mount.nfs: rpc.statd is not running but is required for remote locking.
>>>> mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
>>>> mount.nfs: an incorrect mount option was specified
>>>>
>>>> mount -t nfs -o nolock 192.168.0.104:/test /mnt
>>>> mount.nfs: Protocol not supported
>>>>
>>>>
>>>> showmount also gives an error:
>>>> showmount -e 192.168.0.104
>>>> clnt_create: RPC: Unknown protocol
> static CLIENT *nfs_get_mount_client(const char *hostname, rpcvers_t vers)
> {
> rpcprog_t program = nfs_getrpcbyname(MOUNTPROG, mount_pgm_tbl);
> CLIENT *client;
>
> client = clnt_create(hostname, program, vers, "tcp");
> if (client)
> return client;
> client = clnt_create(hostname, program, vers, "udp");
> if (client)
> return client;
>
> clnt_pcreateerror("clnt_create");
> exit(1);
> }
>
> Showmount prints the error message only clnt_create both "tcp" and "udp" fail.
> Does your arm machine not support "tcp" and "udp"? or the firewalld is up?
> Can you check with firewalld stop?
>
> thanks,
> Kinglong Mee
next prev parent reply other threads:[~2015-04-16 14:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-15 9:53 Problem installing nfs-utils to non standard dir Eino Juhani Oltedal
2015-04-15 15:41 ` Kinglong Mee
2015-04-15 17:18 ` Eino Juhani Oltedal
2015-04-16 4:43 ` Kinglong Mee
2015-04-16 9:40 ` Eino Juhani Oltedal
2015-04-16 12:45 ` Kinglong Mee
2015-04-16 14:00 ` Eino Juhani Oltedal [this message]
2015-04-16 15:53 ` Kinglong Mee
2015-04-16 15:59 ` Eino Juhani Oltedal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=552FC06E.2020204@fys.uio.no \
--to=e.j.oltedal@fys.uio.no \
--cc=kinglongmee@gmail.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.