1. Describe your incident:
Hi,
i need move opensearch data to another drive.
2. Describe your environment:
OS Information:
Ubuntu 20
Package Version:
Graylog 5
Opensearch
3. What steps have you already taken to try and solve the problem?
I copy data folder to new location and create symbolic link, but no work.
Remove symbolic link and I changing path to /media/user/test/data in opensearch.service but they don’t work either.
4. How can the community help?
How i can move data folder to another disk?
Ok, i move only data folder with all collected logs to /media/dsadas/data
Next I add permissions sudo chmod -R 777 /media/dsadas/data' I change path.data: /media/dsadas/data’ in openserach.yml
Start again opensearch and check status on ‘Running’
Open web and error:
I check status again and failed
So opensearch start and in a while stop.
I back to defalut path and working fine.
What can I do?
023-03-08T11:10:18.096+01:00 INFO [IndexFieldTypePollerPeriodical] Cluster not connected yet, delaying index field type initialization until it is reachable.
2023-03-08T11:10:19.787+01:00 ERROR [Messages] Caught exception during bulk indexing: ElasticsearchException{message=OpenSearchException[An error occurred: ]; nested: ConnectException[Connection refused]; nested: ConnectException[Connection refused];, errorDetails=[]}, retrying (attempt #1).
I use Opensearch, not Elasticsearch.
So i trying move data folder where Openserach collect all logs.
I don’t move Graylog. I want to move only data folder with collected logs.
I found in opensearch.service logs Unable to access path.data and java.nio.file.AccessDeniedException: /media/dsadas/data