Cleaning /Opt Storage
Cleaning /opt storage
In this article, we'll discuss how we can clean a Linux system of unused files and directories to free up disk space. We’ll see how to carry out the clean-up process manually. We’ll make use of tools such as du and sort.
1. Log in to the Linux server and run df -h.
- Run cd /opt/sisense/storage && du -sBG * | sort -n
- For multinode run it from management pod - kubectl -n sisense exec -it management-HASH bash
2. Identify folders with the most size (e.g. data)
- Run du -sBG farms/* | sort -n
Note, in case of Multitenancy feature is enabled, cubes data stored in /opt/sisense/storage/tenants/<tenant_id>/farms folder and the following command should be used:
du -sBG /tenants/<tenant_id>/farms | sort -n - Check the list of cubes sorted by consumable space:
1G farms/aSampleHealthcare_2022.02.15.08.04.46.779
1G farms/aSampleIAAaECommerce_2022.02.15.10.52.32.376
1G farms/aSampleLeadGeneration_2022.02.15.08.04.47.190
1G farms/aSampleRetail_2022.02.15.08.04.47.614
Once you have reviewed please delete unused cubes and temporary files if any.
This article discussed how we can clean up /opt storage of our Linux system. We took a manual approach because it allows us to sort cubes and temporary files by consumable space.
Published 03-13-2023
Oleksandr
Sisense Employee
Joined July 25, 2022