So I do know that by default when we mount; the user/group ownership is set to uid=0=gid
when belongs to the root and I read that in the mount man page.
The weird thing is I am mounting an NFS share in /oradata
which is a directory that I have created as follows:
[root@sandbox ~]# mkdir /oradata
[root@sandbox ~]# chown oradata:oinstall /oradata
Then am doing the NFS mount:
[root@sandbox ~]# mount -t nfs -o rw,hard,rsize=1048576,wsize=1048576,vers=3,tcp ip_address:/oracle_test /oradata
Now after the mount the ownership of /oradata
sometimes changes to root:root
and sometimes it stays as oracle:oinstall
as pre-mounting.
My question is why this behavior is random? Shouldn't it always change ownership after mounting to root?
P.S: I am also using Azure Volume Storage for NFS.