Elasticsearch failed to start when running with PVC in OKE

Elastic failing to start with below error. When i don't link any mount points then it is working. But when i link with PVC it fails to start. Looks like it is related to permission issue.

"failed to obtain node locks, tried [/usr/share/elasticsearch/data];
maybe these locations are not writable or multiple nodes were started on the same data path?",
"error.stack_trace":"java.lang.IllegalStateException: failed to obtain node locks, tried [/usr/share/elasticsearch/data];

My PVC is like below
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: esdata-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi

and i am using in my deployment file like below

      volumeMounts:
        - name: esdata
          mountPath: /usr/share/elasticsearch/data

  volumes:
    - name: esdata
      persistentVolumeClaim:
        claimName: esdata-pvc

Hi @Praveen_Reddy ,

Welcome! Do you have another Elasticsearch process already running? This could be the process is unable to get a lock on these locations as another Elasticsearch process has the lock.

No. I have only one elastic running. Also what i notice is with docker compose testing, the mount point if i create manaully it is working fine where as if the process itslef creating the mount point i see same behavior

volumes:
- ./elasticsearch-data:/usr/share/elasticsearch/data