Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the showmount get stucked and outputs nothing #64

Open
jerry-yuan opened this issue Apr 27, 2021 · 0 comments
Open

the showmount get stucked and outputs nothing #64

jerry-yuan opened this issue Apr 27, 2021 · 0 comments

Comments

@jerry-yuan
Copy link

I have started a docker-nfs-server by following command:

docker run --rm \
-v NAS-Temp:/dir1 \
-v Aria2-Download:/dir2 \
-v NAS-Storage:/dir3 \
-v Transmission-Download:/dir4:ro \
-e NFS_EXPORT_0='/dir1      10.0.0.0/8(rw,async,all_squash,anonuid=0)' \
-e NFS_EXPORT_1='/dir2      10.0.0.0/8(rw,async,all_squash,anonuid=0)' \
-e NFS_EXPORT_2='/dir3      10.0.0.0/8(rw,async,all_squash,anonuid=0)' \
-e NFS_EXPORT_3='/dir4      10.0.0.0/8(ro,async,all_squash,anonuid=0)' \
-p 10.0.0.1:111:111/tcp \
-p 10.0.0.1:111:111/udp \
-p 10.0.0.1:2049:2049/tcp \
-p 10.0.0.1:2049:2049/udp \
-p 10.0.0.1:32765:32765/tcp \
-p 10.0.0.1:32765:32765/udp \
-p 10.0.0.1:32767:32767/tcp \
-p 10.0.0.1:32767:32767/udp \
--privileged \
-e NFS_LOG_LEVEL=DEBUG \
erichough/nfs-server

and get these outputs:

==================================================================
      SETTING UP ...
==================================================================
----> log level set to DEBUG
----> will use 24 rpc.nfsd server thread(s) (1 thread per CPU)
----> building /etc/exports from environment variables
----> collected 4 valid export(s) from NFS_EXPORT_* environment variables
----> kernel module nfs is loaded
----> kernel module nfsd is loaded
----> setup complete

==================================================================
      STARTING SERVICES ...
==================================================================
----> mounting rpc_pipefs filesystem onto /var/lib/nfs/rpc_pipefs
mount: mount('rpc_pipefs','/var/lib/nfs/rpc_pipefs','rpc_pipefs',0x00008000,'(null)'):0
----> mounting nfsd filesystem onto /proc/fs/nfsd
mount: mount('nfsd','/proc/fs/nfsd','nfsd',0x00008000,'(null)'):0
----> starting rpcbind
----> starting exportfs
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "10.0.0.0/8:/dir1".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "10.0.0.0/8:/dir2".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "10.0.0.0/8:/dir3".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [4]: Neither 'subtree_check' or 'no_subtree_check' specified for export "10.0.0.0/8:/dir4".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exporting 10.0.0.0/8:/dir1
exporting 10.0.0.0/8:/dir2
exporting 10.0.0.0/8:/dir3
exporting 10.0.0.0/8:/dir4
----> starting rpc.mountd on port 32767
----> starting rpc.statd on port 32765 (outgoing from port 32766)
----> starting rpc.nfsd on port 2049 with 24 server thread(s)
rpc.nfsd: knfsd is currently down
rpc.nfsd: Writing version string to kernel: -2 +3 +4 +4.1 +4.2
rpc.nfsd: Created AF_INET TCP socket.
rpc.nfsd: Created AF_INET UDP socket.
rpc.nfsd: Created AF_INET6 TCP socket.
rpc.nfsd: Created AF_INET6 UDP socket.
----> all services started normally

==================================================================
      SERVER STARTUP COMPLETE
==================================================================
----> list of enabled NFS protocol versions: 4.2, 4.1, 4, 3
----> list of container exports:
---->   /dir1	10.0.0.0/8(ro,async,wdelay,hide,nocrossmnt,secure,root_squash,all_squash,no_subtree_check,secure_locks,acl,no_pnfs,anonuid=0,anongid=65534,sec=sys,ro,secure,root_squash,all_squash)
---->   /dir2	10.0.0.0/8(rw,async,wdelay,hide,nocrossmnt,secure,root_squash,all_squash,no_subtree_check,secure_locks,acl,no_pnfs,anonuid=0,anongid=65534,sec=sys,rw,secure,root_squash,all_squash)
---->   /dir3	10.0.0.0/8(rw,async,wdelay,hide,nocrossmnt,secure,root_squash,all_squash,no_subtree_check,secure_locks,acl,no_pnfs,anonuid=0,anongid=65534,sec=sys,rw,secure,root_squash,all_squash)
---->   /dir4	10.0.0.0/8(rw,async,wdelay,hide,nocrossmnt,secure,root_squash,all_squash,no_subtree_check,secure_locks,acl,no_pnfs,anonuid=0,anongid=65534,sec=sys,rw,secure,root_squash,all_squash)
----> list of container ports that should be exposed:
---->   111 (TCP and UDP)
---->   2049 (TCP and UDP)
---->   32765 (TCP and UDP)
---->   32767 (TCP and UDP)

==================================================================
      READY AND WAITING FOR NFS CLIENT CONNECTIONS
==================================================================
rpc.statd: Version 2.3.4 starting
rpc.statd: Flags: No-Daemon Log-STDERR TI-RPC 
rpc.statd: Failed to read /var/lib/nfs/state: Address in use
rpc.statd: Initializing NSM state
rpc.statd: Local NSM state number: 3
rpc.statd: Running as root.  chown /var/lib/nfs to choose different user
rpc.statd: Waiting for client connections

The nfs v4 is not working while nfs v3 can be used to mount. I tried to check the exported directories by showmount -e 10.0.0.1 but get anything output for long time.

I have checked the network between server and client, the server's ip is 10.0.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant