sjiveson / nfs-server-alpine

A handy Alpine Linux based NFS Server image running NFS v4 only, over TCP on port 2049
https://hub.docker.com/r/itsthenetwork/nfs-server-alpine/
GNU General Public License v3.0
295 stars 187 forks source link

Enable NFS logging #29

Open colearendt opened 5 years ago

colearendt commented 5 years ago

I do not know a whole lot about NFS, but wanted to see if there is an easy way to enable NFS logging for debug purposes when things are not behaving well. I am struggling to use the rpcdebug -m nfsd all suggested elsewhere on the web since the container does not have syslog running. Further, redirecting output from mountd or nfsd seemed to be ineffective.

Ideally, this logging (when configured) would go to stdout

dajianderichang commented 4 years ago

跟踪一下 目前我的方式是: rpcdebug -m nfsd -s all 然后在容器内查看 dmesg