Manage Disk Space On SafeSquid Server
Manage disk space on SafeSquid server. When any of the partitions that are used by SafeSquid are full, it results in undefined behavior. This may lead to something like, SafeSquid failing in processing the connections.
Give the enough size to backup store.
Example : If you want to take a backup of files of size 5GB then consider the store upto 5.5 GB
Don't delete the original log files (.log extension) and database files.
Check disk space
Run below command to check available disk space on each partition.
You will see the Used and Available size on each partition.
If any of the above partitions are observed to be used over 80%, then you may take backup of the following files and delete files as per your requirement.
When "/" partition is full remove the files in below paths:
change the directory to /opt/safesquid/bin by using below command
The default files and folders are :
- safesquid -> safesquid-2017.0518.2110.3-swg-concept*
- You should not delete the tar file which is soft linked to SafeSquid file. In the above image it is : safesquid-2017.0518.2110.3-swg-concept*
You can also take the backup of system logs and delete the files with .gz extension. This folder contains the logs related to system, so don't delete or modify the original files (i.e. with .log extension).
Example : dmesg.1.gz
Delete all files from this folder by using below command. No need to take a backup of any file from this folder
rm -rf *
Delete all files except these three files from the directory : /var/db/safesquid/report/
These files will be used to store the data required for reports generation
you can take a back up or directly delete these files.
Note : If you delete or moved the above files to other destination then restart the SafeSquid server, in order to create the deleted or moved files.
Change the directory to :/var/log/safesquid/native/ by using below command
- Native logs used to store the data related to requests and responses. You can delete all files in this folder, No back up is required.
- Example file name to be deleted : 20161223132118-safesquid.log.gz
Change the directory to : /var/log/safesquid/extended/ by using below command
- Extended logs used to store the data related to users information for each connection. Take a backup of these files if required.
- Example file name to be deleted : 20161223132118-extended.log.gz
Change the directory to : /var/log/safesquid/performance/ by using below command
- Performance logs used to store the data related to safesquid performance statistics. You can take a backup if required and delete.
- Example file name to be deleted : 20161223132118-performance.log.gz
Change the directory to :/var/log/safesquid/config/ by using below command
- config logs used to store the data related to safesquid interface requests and responses. No need to take a back up of these files.
- Example file name to be deleted : 20161223132118-config.log.gz
Delete all files and folders present in this directory. By using this command
rm -rf *
This memory will be used only in upgradation time