linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: NFS mount for TQM823L
@ 2001-10-02 14:32 Jean-Denis Boyer
  2001-10-04 14:58 ` R: " RSR - Piero Dominioni
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Denis Boyer @ 2001-10-02 14:32 UTC (permalink / raw)
  To: 'RSR - Piero Dominioni'; +Cc: linuxppc-embedded


> I can see that portmap is suspended:
Do you mean that it is sleeping instead of suspended?
In the STAT column of ps, a 'S' means 'sleeping'.
Look at the 'ps' man pages.

> I guess it is correctly waiting for
> RPC calls and for other daemons (such as mountd and nfsd) to register.
I think you are right.

> But if I try to run mountd or nfsd (# ./mountd,  for example)
> I get the same
> errors as portmap wouldn't be running at all.
Be sure that the file '/etc/services' in the target includes the following
entries:
  sunrpc   111/tcp   portmapper   # RPC 4.0 portmapper TCP
  sunrpc   111/udp   portmapper   # RPC 4.0 portmapper UDP

Also, be sure you have the file '/etc/rpc' present in the target.

> Can you explain me how?
> Should I cross-compile it for my PowerPC platform, load it on
> the target and then run it?
This is a script, so it does not need to be compiled.
The only thing you need is the interpreter (first line in the script).
That script invokes the Bourne Shell (usually accomplished by bash).
The script should be invoked at the command line, giving it a parameters.
Valid parameters are: start, stop, restart, reload and status.

Regards,
--------------------------------------------
 Jean-Denis Boyer, B.Eng., Technical Leader
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-8749 x241
--------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: NFS mount for TQM823L
@ 2001-10-09 15:57 Jean-Denis Boyer
  2001-10-11 13:15 ` R: " RSR - Piero Dominioni
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Denis Boyer @ 2001-10-09 15:57 UTC (permalink / raw)
  To: 'RSR - Piero Dominioni'; +Cc: linuxppc-embedded


> I send you in attach the 'rpc' and 'services' files I loaded
> on the target (I hand-wrote them first, unsuccessfully:
> I copied then these ones from the host).

This is a good approach. The files seem to be correct.
(BTW, I think the rpc file comes with the glibc distribution).


> (Note that I type the 'mountd' command, but it doesn't
> appear in the ps -aux output list!)

I guess it died, even after successfully registered with the portmapper.
Here are some ideas I have to verify everything.

1) Does it produce a core file?

2) You may start mountd with the following options:
     mountd --debug all --foreground
   This will start mountd in foregroud, turning on debugging information.
   I hope it will help...

3) You may also start the syslog daemon, to be sure you don't miss important
information.

4) Also, is the file /etc/exports present?

5) I see that the nfs startup script performs a 'exportfs -r' before
starting the daemons.
   Could it help?


> While if I type the same command for the host the
> mountd uses a different port number...

This is correct, since the port number is assigned randomly, unless you use
the command line option '-p' to force mountd to bind to a specific port. The
rpc port number should be identical, and correspond to what is in /etc/rpc.


> while, exactly meantime, the following message appears
> on the target's console:
>
> svc: unknown program 100005 (me 100021)

The mountd process (rpc port 100005) is not in the process table, because it
unexpectedly died, even if the registration still appears in the portmap...
as if you kill mountd with a SIGKILL (9) :-(

Good luck!
--------------------------------------------
 Jean-Denis Boyer, B.Eng., Technical Leader
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-8749 x241
--------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: NFS mount for TQM823L
@ 2001-10-04 16:25 Jean-Denis Boyer
  2001-10-08 14:33 ` R: " RSR - Piero Dominioni
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Denis Boyer @ 2001-10-04 16:25 UTC (permalink / raw)
  To: 'RSR - Piero Dominioni'; +Cc: linuxppc-embedded


> Try:
>   ipconfig lo 127.0.0.1

Well, of course, I meant 'ifconfig', not 'ipconfig'.
I can't remember where this mistake comes from... ;-)

--------------------------------------------
 Jean-Denis Boyer, B.Eng., Technical Leader
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-8749 x241
--------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: NFS mount for TQM823L
@ 2001-09-27 15:03 Jean-Denis Boyer
  2001-10-01 11:02 ` R: " RSR - Piero Dominioni
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Denis Boyer @ 2001-09-27 15:03 UTC (permalink / raw)
  To: 'RSR - Piero Dominioni'; +Cc: linuxppc-embedded


> but your hint is correct only in one direction:

Sorry, I stopped reading further... ;-)

To be able to export and mount you target's /, enabling the kernel option is
needed but not enough.
You need the portmapper (portmap), NFS daemon (rpc.nfsd), NFS mount daemon
(rpc.mountd).
I'm not sure, but you may also need the remote quota server (rpc.rquotad).
Of course, you should have a valid /etc/exports file.

All this comes from the standard NFS control script.
Refers to the nfs-utils package (http://sourceforge.net/projects/nfs/)
in the script file 'etc/nodist/nfs-server'.
You can even use it directly to start the NFS server.

Regards,
--------------------------------------------
 Jean-Denis Boyer, B.Eng., Technical Leader
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-8749 x241
--------------------------------------------


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: NFS mount for TQM823L
@ 2001-09-27 12:52 Jean-Denis Boyer
  2001-09-27 14:42 ` R: " RSR - Piero Dominioni
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Denis Boyer @ 2001-09-27 12:52 UTC (permalink / raw)
  To: 'RSR - Piero Dominioni'; +Cc: linuxppc-embedded


The portmapper (portmap) and the lock daemon (rpc.lockd) are not running on
your target.
Either you start them, or just add option "-o nolock" when calling mount.
  # mount -o nolock -t nfs 126.126.126.106:/home /tmp


--------------------------------------------
 Jean-Denis Boyer, B.Eng., Technical Leader
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-8749 x241
--------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-10-11 13:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-02 14:32 NFS mount for TQM823L Jean-Denis Boyer
2001-10-04 14:58 ` R: " RSR - Piero Dominioni
  -- strict thread matches above, loose matches on Subject: below --
2001-10-09 15:57 Jean-Denis Boyer
2001-10-11 13:15 ` R: " RSR - Piero Dominioni
2001-10-04 16:25 Jean-Denis Boyer
2001-10-08 14:33 ` R: " RSR - Piero Dominioni
2001-09-27 15:03 Jean-Denis Boyer
2001-10-01 11:02 ` R: " RSR - Piero Dominioni
2001-09-27 12:52 Jean-Denis Boyer
2001-09-27 14:42 ` R: " RSR - Piero Dominioni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).