Elasticsearch version: 7.12
Elasticsearch is installed as an RPM on RHEL 7.9 server.
We running ELK on a single VM. For the path.data we have an NFS mounted. When I try to start elasticsearch with path.data set to /var/lib/elasticsearch it starts. But when path.data is set to point to the NFS mountpoint, we are seeing the below error.
When trying to start the process we are seeing the following error in the logs.
[2021-05-11T09:27:05,830][INFO ][o.e.e.NodeEnvironment ] [jcpvirtualserver-new.sl.edst.ibm.com] using [1] data paths, mounts [[/elk (fsf-dal1202d-fz.adn.networklayer.com:/IBM02SEV1529259_387)]], net usable_space [999.9gb], net total_space [1000gb], types [nfs4]
[2021-05-11T09:27:05,831][INFO ][o.e.e.NodeEnvironment ] [jcpvirtualserver-new.sl.edst.ibm.com] heap size [1gb], compressed ordinary object pointers [true]
[2021-05-11T09:27:05,941][INFO ][o.e.n.Node ] [jcpvirtualserver-new.sl.edst.ibm.com] node name [jcpvirtualserver-new.sl.edst.ibm.com], node ID [TJnXqwHXTfOiiiB3FCBMVw], cluster name [janssen], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]
[2021-05-11T09:27:11,266][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [jcpvirtualserver-new.sl.edst.ibm.com] [controller/11309] [Main.cc@117] controller (64 bit): Version 7.12.0 (Build 778cc7261dfdd1) Copyright (c) 2021 Elasticsearch BV
[2021-05-11T09:27:11,848][INFO ][o.e.x.s.a.s.FileRolesStore] [jcpvirtualserver-new.sl.edst.ibm.com] parsed [0] roles from file [/etc/elasticsearch/roles.yml]
[2021-05-11T09:27:13,406][INFO ][o.e.t.NettyAllocator ] [jcpvirtualserver-new.sl.edst.ibm.com] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=1mb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=4mb, heap_size=1gb}]
[2021-05-11T09:27:13,493][INFO ][o.e.d.DiscoveryModule ] [jcpvirtualserver-new.sl.edst.ibm.com] using discovery type [single-node] and seed hosts providers [settings]
[2021-05-11T09:27:13,983][INFO ][o.e.g.DanglingIndicesState] [jcpvirtualserver-new.sl.edst.ibm.com] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
[2021-05-11T09:27:14,461][INFO ][o.e.n.Node ] [jcpvirtualserver-new.sl.edst.ibm.com] initialized
[2021-05-11T09:27:14,461][INFO ][o.e.n.Node ] [jcpvirtualserver-new.sl.edst.ibm.com] starting ...
[2021-05-11T09:27:14,486][INFO ][o.e.x.s.c.PersistentCache] [jcpvirtualserver-new.sl.edst.ibm.com] persistent cache index loaded
[2021-05-11T09:27:14,606][INFO ][o.e.t.TransportService ] [jcpvirtualserver-new.sl.edst.ibm.com] publish_address {169.48.231.149:9300}, bound_addresses {[::]:9300}
[2021-05-11T09:27:15,016][INFO ][o.e.c.c.Coordinator ] [jcpvirtualserver-new.sl.edst.ibm.com] cluster UUID [CF7U90-_SEeXC38vmH1oOQ]
[2021-05-11T09:27:15,189][INFO ][o.e.c.s.MasterService ] [jcpvirtualserver-new.sl.edst.ibm.com] elected-as-master ([1] nodes joined)[{jcpvirtualserver-new.sl.edst.ibm.com}{TJnXqwHXTfOiiiB3FCBMVw}{5tEUteN-RuinUSY-mb-y-w}{169.48.231.149}{169.48.231.149:9300}{cdfhilmrstw}{ml.machine_memory=67374616576, xpack.installed=true, transform.node=true, ml.max_open_jobs=20, ml.max_jvm_size=1073741824} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 13, version: 70, delta: master node changed {previous [], current [{jcpvirtualserver-new.sl.edst.ibm.com}{TJnXqwHXTfOiiiB3FCBMVw}{5tEUteN-RuinUSY-mb-y-w}{169.48.231.149}{169.48.231.149:9300}{cdfhilmrstw}{ml.machine_memory=67374616576, xpack.installed=true, transform.node=true, ml.max_open_jobs=20, ml.max_jvm_size=1073741824}]}
[2021-05-11T09:27:15,405][INFO ][o.e.c.s.ClusterApplierService] [jcpvirtualserver-new.sl.edst.ibm.com] master node changed {previous [], current [{jcpvirtualserver-new.sl.edst.ibm.com}{TJnXqwHXTfOiiiB3FCBMVw}{5tEUteN-RuinUSY-mb-y-w}{169.48.231.149}{169.48.231.149:9300}{cdfhilmrstw}{ml.machine_memory=67374616576, xpack.installed=true, transform.node=true, ml.max_open_jobs=20, ml.max_jvm_size=1073741824}]}, term: 13, version: 70, reason: Publication{term=13, version=70}
[2021-05-11T09:27:15,495][INFO ][o.e.h.AbstractHttpServerTransport] [jcpvirtualserver-new.sl.edst.ibm.com] publish_address {169.48.231.149:9200}, bound_addresses {[::]:9200}
[2021-05-11T09:27:15,496][INFO ][o.e.n.Node ] [jcpvirtualserver-new.sl.edst.ibm.com] started
[2021-05-11T09:27:15,786][INFO ][o.e.l.LicenseService ] [jcpvirtualserver-new.sl.edst.ibm.com] license [73ad384a-415c-4c4b-a1a7-720917442406] mode [basic] - valid
[2021-05-11T09:27:15,788][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [jcpvirtualserver-new.sl.edst.ibm.com] Active license is now [BASIC]; Security is enabled
[2021-05-11T09:27:15,794][INFO ][o.e.g.GatewayService ] [jcpvirtualserver-new.sl.edst.ibm.com] recovered [0] indices into cluster_state
[2021-05-11T09:27:16,089][INFO ][o.e.x.s.a.AuthenticationService] [jcpvirtualserver-new.sl.edst.ibm.com] Authentication of [kibana] was terminated by realm [reserved] - failed to authenticate user [kibana]
[2021-05-11T09:27:18,399][INFO ][o.e.x.s.a.AuthenticationService] [jcpvirtualserver-new.sl.edst.ibm.com] Authentication of [kibana] was terminated by realm [reserved] - failed to authenticate user [kibana]
This is my elasticsearch.yml file:
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: janssen
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
#node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
node.master: true
node.data: true
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /elk/data01/
#path.data: /elasticsearch
#path.data: /var/lib/elasticsearch
#path.data: /elasticsearch/data02
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
#network.host: 192.168.0.1
network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
#discovery.seed_hosts: ["host1", "host2"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
#cluster.initial_master_nodes: ["node-1", "node-2"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true
xpack.security.enabled: true
discovery.type: single-node
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: /etc/elasticsearch/elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: /etc/elasticsearch/elastic-certificates.p12
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: "http.p12"
Pavan