kofemann / simple-nfs

dcache nfs server to export regular file system
Apache License 2.0
14 stars 14 forks source link

no file present on mounted folder #18

Closed hassin23ayz closed 5 years ago

hassin23ayz commented 5 years ago

hello thanks for your library i was able to run nfs server under ubuntu here is my exports files

/home/ayx/AAA/nfs-Server *(rw,all_squash,sec=sys)

at the client side i used the following mount command

sudo mount.nfs -o nfsvers=4.1,nolock,noacl -rw -v 192.168.0.105:/home/ayx/AAA/nfs-Server nfs-Client

the folder gets mounted but there are no files present what is that i am doing wrong ?

kofemann commented 5 years ago

On which OS do you run? Can you enable debug level?

hassin23ayz commented 5 years ago

Hello thanks A lot for your reply

i am running the code on intelliJ , OS is Ubuntu 18.04 , how to enable debug level at your code ? this is the picture of my code running Selection_009

kofemann commented 5 years ago

You need to start server -root option that points to /home/ayx/AAA/nfs-Server directory

hassin23ayz commented 5 years ago

i have tried to run the app using the following command

ayx@ayx-ThinkPad:~/projects/SyncOS/simpleNfsServer/out/artifacts/simpleNfsServer_jar$ sudo java -cp simpleNfsServer.jar org.dcache.simplenfs.App -root=/home/ayx/AAA/nfs-Server

it has created "home/ayx/AAA/nfs-Server"


ayx@ayx-ThinkPad:~/AAA$ tree nfs-Server/
nfs-Server/
├── home
│   └── ayx
│       └── AAA
│           └── nfs-Server
└── test.txt

4 directories, 1 file

i am quite sure my command arguments are not correct , how do i put appropriate exports and point to server's shared folder path to the app ? thanks

hassin23ayz commented 5 years ago

here is my latest attempt result

Selection_011

kofemann commented 5 years ago

you should export / in the exports file as it relative to root. e.g.

/home/ayx/AAA/nfs-Server *(rw,all_squash,sec=sys)
hassin23ayz commented 5 years ago

THANKS A LOT, it has worked , i am putting my setup image so that others can get help if stuck Selection_012