kayws426 / embox

Automatically exported from code.google.com/p/embox
0 stars 1 forks source link

NFS error #573

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On host machine:   
   $sudo apt-get install nfs-kernel-server nfs-common portmap
2. sudo vim  /etc/exports
   Add string "/home/user/data 10.0.4.0/24(rw,all_squash,async,insecure)"
   where "user" is my user name.
3. /etc/init.d/nfs-kernel-server restart
4. cd <embox_dir> && sudo sh scripts/qemu/auto_qemu
5. On Embox:
   embox> mount -t nfs 10.0.4.1:/home/user/data /nfs

What is the expected output? What do you see instead?
mount: Command returned with code -1: Unknown error code. PLEASE REPORT ISSUE 
519!

What version of the product are you using? On what operating system?
r9078; Ubuntu

Original issue reported on code.google.com by ershpush on 26 Mar 2013 at 2:29

GoogleCodeExporter commented 9 years ago
1. make sure that there is a directory "/home/user/data" on the host
2. ... a directory "/nfs" on the embox ???

Original comment by Gazukin....@gmail.com on 27 Mar 2013 at 8:10

GoogleCodeExporter commented 9 years ago
Directory "/nfs" does not appears after problem was reproduced.

Original comment by ershpush on 27 Mar 2013 at 11:12

GoogleCodeExporter commented 9 years ago
I fixed the bug with return code. Mount returned now:

embox> mount -t nfs 10.0.4.1:/home/user/data /nfs
mount: Command returned with code -2: No such entity

You can create a directory /nfs, if you create a folder /nfs in the directory 
"rootfs" in yours template and make them

Original comment by Gazukin....@gmail.com on 27 Mar 2013 at 12:31

GoogleCodeExporter commented 9 years ago
I create "/nfs" successfully as you wrote above, but 
embox>mount -t nfs 10.0.4.1:/home/user/data /nfs
10.0.4.1: RPC: Port mapper failure - RPC: Timed out
embox>
embox>ls /nfs
embox>

Original comment by ershpush on 27 Mar 2013 at 1:09

GoogleCodeExporter commented 9 years ago
what about ping to host?

Original comment by Gazukin....@gmail.com on 28 Mar 2013 at 6:36

GoogleCodeExporter commented 9 years ago
Ping is successfully.

Original comment by ershpush on 28 Mar 2013 at 10:55

GoogleCodeExporter commented 9 years ago
what happens on the "/etc/init.d/nfs-kernel-server restart" on the host 
(listing)

try:
dmesg | grep nfs

is nfs restart sucsessfully?

can you see the TCP/IP packets using the wireshark?

What ifconfig said on the host and on the Embox?

Original comment by Gazukin....@gmail.com on 28 Mar 2013 at 12:54

GoogleCodeExporter commented 9 years ago
All my screenshots are attached in a file. What about 10.0.2.10? It is wrong?

Original comment by ershpush on 28 Mar 2013 at 1:44

Attachments:

GoogleCodeExporter commented 9 years ago
wrong etc/exports:
/home/nfedoruk/data 10.0.2.10/24(rw,all_squash,async,insecure)

you need :
/home/nfedoruk/data 10.0.2.0/24(rw,all_squash,async,insecure)

Original comment by Gazukin....@gmail.com on 28 Mar 2013 at 4:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
fixed or not?

Original comment by ki.stfu on 30 Mar 2013 at 9:38

GoogleCodeExporter commented 9 years ago
umm ..?

Original comment by ki.stfu on 26 Apr 2013 at 9:59

GoogleCodeExporter commented 9 years ago
there are still

Original comment by Gazukin....@gmail.com on 29 Apr 2013 at 6:44

GoogleCodeExporter commented 9 years ago
can't reproduce at r9664. mount completed successfully

Original comment by ki.stfu on 29 Apr 2013 at 10:09

GoogleCodeExporter commented 9 years ago
fixed by r9880; don't forget added mount to list of tish built-in commands in 
conf/mods.config

Original comment by ki.stfu on 2 Jul 2013 at 1:37