There are several types of files that can be removed or trimmed when trying to free disk space on a UNIX machine. The following list is a suggestion of some areas to check.
- Use a find command to locate large files on the server.
find /s -xdev -size +2048 -ls |sort -r +6 > bigfilesAlternately, this file can be created in a different directory (for example, if /s is 100% full).
find /s -xdev -size +2048 -ls |sort -r +6 > /tmp/bigfilesLook through the resulting file for anything that looks like it can be removed. Many of the big files are needed, but you may find backups or large logs that can be trimmed or removed. Also, look for files and directories that are not related to SirsiDynix Symphony / Unicorn.
- Upgrade files
Look for Upgrade directories in the /s/sirsi directory. Upgrade files older than 3 months can be removed.
- Dataload files
Look for a Dataload directory in the /s/sirsi directory. Dataload files older than 3 months can be removed.
- Migration files
Look for a Migration directory in the /s/sirsi directory. Migration files older than 3 months can be removed.
- Webserver logs
Check to see if there is a WWW directory in /s or /s/sirsi. If there is, the webserver logs are probably being written there.You can also type:
ps -ef | grep httpd
to see where the webserver files are located. Cd to this directory, and type ls -l.Example:
/s/sirsi/WWW/httpd/logs> ls -l
total 32
-rw------- 1 sirsi staff 5346149 Jan 28 15:24 access_log
-rw------- 1 sirsi staff 3413290 Jan 29 14:17 error_log
-rw------- 1 sirsi staff 6 Jan 28 15:23 httpd.pid
-rw------- 1 sirsi staff 0 Jan 28 14:05 httpd.stderr
-rw------- 1 sirsi staff 0 Jan 28 14:05 httpd.stdoutIf the logs are large, they should be trimmed with the following commands.
tail -10000 access_log > acc2
cat acc2 > access_log
tail -10000 error_log > err2
cat err2 > error_log
- Symphony / Unicorn error log
The error log is continuously appended and needs to be trimmed periodically.Use the following command to find the location of the error log.
getpathname errorlogIf the error log is large, it should be trimmed with the following commands.
tail -10000 error > err2
cat err2 > error
- Backup log
The backup log was used by the now obsolete Unicorn backup utility. The file could be large if you used the Unicorn backup utility in previous versions of Unicorn.Use the following command to find the directory where the backup log is located.
getpathname backupdirYou can zero out the file with the following command.
cat /dev/null > backuplog
- System logs
System logs are used by SirsiDynix Customer Support for troubleshooting current issues, so old logs are typically not needed. System logs older than 3 months can be removed.Use the following command to find the directory where the system logs are located.
getpathname sys 6/12/2019
- Serveradmin log
The serveradmin log records halts and runs on the server and also needs to be trimmed periodically.Use the following command to find the directory where the serveradmin log is located.
getpathname sys
- Zserver logs
The zserver logs are used to troubleshoot issues with incoming Z39.50 connections to your Symphony / Unicorn server. Zserver logs older than 3 months can be removed.Use the following command to find the directory where the zserver logs are located.
getpathname zserverdirThe following file extensions are zserver logs. Depending on the level of logging configured in the Catzserver policy, some of these log files may not exist on your server.
*.zatr
*.zbin
*.zcnt
*.zhis
*.ztxt
6/12/2019 - Userload files
Sites that run regular userloads may have old files. Userload files older than 3 months can be removed.Use the following command to find the directory where the userload files are located.
getpathname xferdir
- Bibload files
Check the Bibbackup and Biberror directories for old files. Files older than 3 months can be removed.Use the following command to find the directory where the Bibbackup and Biberror directories are located.
getpathname marcimportdir 6/12/2019 - Service Pack and Patch files
The files in Patch_delivery/Patches and the files in Patch_delivery/Backups can take up a significant amount of space. You should keep these files for at least 3 months after installing the Service Pack, but these files can be removed if you need space.Use the following command to find the directory where the Patch_delivery directory is located.
getpathname sirsiservIn the Patch_delivery/Patches directory, remove any Patch directories and *.tgz files older than the current Symphony version and Service Pack on your system. In the Patch_delivery/Backups directory, remove any backup directories older than the current Symphony version and Service Pack on your system. You should keep the most recent backup directory.
SirsiDynix recommends keeping /s below 90% capacity. If space in /s is still high after following these steps, please contact SirsiDynix Customer Support for further assistance and reference this solution.
Unicorn/Rpttemp - deleting files
If the report Unicorn ReportCron service is halted/stopped, you can remove everything in that directory except for the following files.
- indexdynam
- headdynam
- userindexdynam
If you leave the report service running, you'd need to save any files that were created today, just in case they are part of a running report.