i have share nfs storage from tmz-mc2 to tmz-mc1 both have permission to read and right.but when i right something with elasticsearch user on tmz-mc1 it show me elasticsearch user permission but when i see on tmz-mc2 its show uid and gid of tmz-mc1 like below
tmz-mc2:-
-rw-r--r-- 1 107 115 0 Jan 11 11:24 ankitd
-rw-r--r-- 1 107 115 0 Jan 11 11:28 ankitdddd
tmz-mc1:-
-rw-r--r-- 1 elasticsearch elasticsearch 0 Jan 11 11:24 ankitd
i think issue with uid gid mapping issue do have any idea about this
i have share nfs storage from tmz-mc2 to tmz-mc1 both have permission to read and right.but when i right something with elasticsearch user on tmz-mc1 it show me elasticsearch user permission but when i see on tmz-mc2 its show uid and gid of tmz-mc1 like below
tmz-mc2:-
-rw-r--r-- 1 107 115 0 Jan 11 11:24 ankitd
-rw-r--r-- 1 107 115 0 Jan 11 11:28 ankitdddd
tmz-mc1:-
-rw-r--r-- 1 elasticsearch elasticsearch 0 Jan 11 11:24 ankitd
i think issue with uid gid mapping issue do have any idea about this
I am using nfs storage for snapshot on both machine. and i have setup elasticsearch on both instance with different uid and gid on both instances. can you help me on nfs uid gid mapping issue bcoz i know its an issue with nfs uid gid mapping
You can use the usermod and groupmod commands to change the UID and GID. Make sure they are the same on the server and all client machines for the given user name.
e.g. usermod -u 5555 my_user_name and groupmod -g 6666 my_group_name
You will have to make sure that any directories that you created outside of the user's home folder have the permissions changed to include the new UID and GID.
A google search for "changing the uid and gid mappings on linux" yields several pages and examples. Check out the man pages for each command as well.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.