Hi Madhu, On Friday, October 6, 2017 at 9:08:09 PM UTC-7, [email protected] wrote: > > On Saturday, October 7, 2017 at 4:52:09 AM UTC+5:30, Richard Elling wrote: > > Hi Madhu, > > The first question I have is whether you're using NFS version 3 or 4. > The answer differs for each. In NFS version 3 we see such issues more > frequently. In NFS version 3 the "owner" is a number, not a string. So the > mapping of userid (number) to username (string) works best when all of the > NFS clients agree. For example, the influxdb userid (number) is hopefully > the same everywhere in your system. > > > > > > Note: there is special handling of userid 0 (typically username=root) > that has configuration options on both the client and server to map to a > different userid (typically username=nobody). > > > > > > For such issues, "ls -ln" is an easy way to verify the files agree with > the username mapping. > > > > > > NFSv4 uses actual strings, where we have fewer of these issues. > > -- richard > > Hi Richard, > > I don't know the version of NFS which is used in AWS EFS system. > When I checked ls -ln on mounted folders, i see below for influx-data > folder. > I am able to use prometheus-data folder to store Promethues logs. But it > is not working for influxdb container. Let me know any thoughts on this. > > [centos@ip-10-100-XX-XX shared-data]$ ls -ln > total 20 > drwxr-xr-x. 4 65534 65534 6144 Jul 28 09:48 exports > drwxrwxrwx. 2 0 0 6144 Oct 5 09:40 influx-data > drwxrwxrwx. 262 0 0 14336 Oct 6 14:32 prometheus-data > > [centos@ip-10-100-xx-xx shared-data]$ ls -lrt > total 20 > drwxr-xr-x. 4 nfsnobody nfsnobody 6144 Jul 28 09:48 exports > drwxrwxrwx. 2 root root 6144 Oct 5 09:40 influx-data > drwxrwxrwx. 262 root root 14336 Oct 6 14:32 prometheus-data > You have new mail in /var/spool/mail/centos >
The user "nfsnobody" is an indication that the root user on the client is mapped to the non-root user nfsnobody. The best solution to this is to not install or run influxdb as root. For example, I notice that the rpms distributed on the influxdata.com website install a user called "influxdb" and do not run as root, by default. This is a good idea. -- richard > > Regards, > Madhu -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/4d0bd86b-cecd-4b83-be7f-28ed615c7fcb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
