I found the below error logs in Elasticsearch master pod logs-
Caused by: java.lang.IllegalStateException: Unable to access 'path.logs' (/data/log)
at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:70) ~[elasticsearch-7.8.0.jar:7.8.0]
at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:290) ~[elasticsearch-7.8.0.jar:7.8.0]
at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:252) ~[elasticsearch-7.8.0.jar:7.8.0]
at org.elasticsearch.bootstrap.Security.configure(Security.java:121) ~[elasticsearch-7.8.0.jar:7.8.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:222) ~[elasticsearch-7.8.0.jar:7.8.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393) ~[elasticsearch-7.8.0.jar:7.8.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[elasticsearch-7.8.0.jar:7.8.0]
... 6 more
Caused by: java.nio.file.FileSystemException: /data/log: Input/output error
ES version deployed : 7.8.0
when login to master pod & check
[elasticsearch@elasticsearch-master-1 ~]$ ls /data/ -ld
drwxrwsr-x. 5 root elasticsearch 4096 Mar 24 21:18 /data/
[elasticsearch@elasticsearch-master-1 ~]$ ls /data/log -ld
drwxrwsr-x. 2 elasticsearch elasticsearch 4096 Mar 24 21:18 /data/log
Could you please help to find the cause for this issue?