Skip to main content

ElasticSearch folder too large

Thread needs solution

Hello.

Today I found my Acronis 12.5 storage node service stopped because disk C: was full. I realized that acronis software saved too many log files in many directories under c:\programdata\acronis and service started successfully after deleting them. But I can see another folder - c:\programdata\acronis\elasticsearch\data - that occupies about 40 Gb in each storage node. Is that normal ? What kind of data are kept in it and is there any way to reduce it?

Thanks.

0 Users found this helpful
frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 22
Comments: 3800

Hi,

The ElasticSearch is the database used in "Acronis Catalog" service which is an optional component used to build catalog of backed up files saved in locations managed by Acronis Storage Node. The "data" folder contains these indexes and the 40GB size may be normal depending on amount of data you saved to the managed vault. You can change the path to the logs and the data for ElasticSearch by adjusing the config file:

C:\Program Files\Acronis\ElasticSearch\elasticsearch-2.4.0\config\elasticsearch.yml

Example:

path.data: D:/new/data_path
path.logs: D:/new/logs_path

Then restart ElasticSearch service.

Note that existing data in Catalog will be deleted after this step, e.g. it will be rebuilt only after new backups are saved to the managed location associated with this catalog service.

Thank you.

Is it safe to delete files under log directories ? For example c:\programdata\acronis\backupandrecovery\ASN\logs.

Is there any way to configure acronis to automatically delete log files older than a specific duration?

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 22
Comments: 3800

Hi,

The logs can be safely deleted. For Acronis Storage Node service the logs rotation is defined in C:\Program Files\Acronis\StorageNode\ss.config file in the following string:

    <channel id="pcs" level="info" enabled="true" type="logscope" prefix="pcs" maxfiles="30" compress="true" maxsize="3145728"/>

The size is defined in bytes and the maxfiles corresponds the amount of compressed (.zipped) logs generated when the main log file exceeds the size threshold.

Thank you.

Hi,

Regarding the logs, maxfiles and maxsize solved the problem.

Regarding the data I see that there many old folders in ...\elasticsearch\data\elasticsearch\nodes\0\indices\... that take much disk space. There are folders from 2018. Are all of them useful ? I do not keep backups older than 3 months. Is it safe to delete them and restart catalog service in order to be rebuilt ?

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 0
Comments: 2016

Hello Athanasios!

If you have changed the path to the logs and the data for ElasticSearch as Vasily recommended in this post above, then you can simply delete old folders.