Skip to content

Free up disk space on an LDE

alawvt edited this page Apr 2, 2019 · 7 revisions

Occasionally, an LDE that has been in use for a long time may run out of disk space. This will cause problems with DSpace because file uploads, log files, SOLR search indexes, and metadata in the PostgreSQL database all take up disk space.

You can try the following procedure from within your vagrant box to reclaim disk space:

Stop Tomcat

sudo /usr/sbin/service tomcat7 stop

Stop Postgres

sudo /usr/sbin/service postgresql stop

Stopping tomcat and postgres doesn't always work when the disk is full; you may actually need to free some space as in the next steps.

Remove backup directories of web applications, libraries, and binary files.

sudo rm -rf /dspace/*bak*

Remove old log files

sudo -u vtechworks rm -rf /dspace/log/*log*

If needed, remove older log files

sudo -u vtechworks rm -rf /dspace/log/*log.2018*

sudo -u vtechworks rm -rf /dspace/log/*log.2019-01*

Stop tomcat and postgres again (in case it didn't work the first time)

sudo /usr/sbin/service tomcat7 stop; sudo /usr/sbin/service postgresql stop

Start postgres

sudo /usr/sbin/service postgresql start

Start Tomcat

sudo /usr/sbin/service tomcat7 start

If the above steps don't work, you can provision a new LDE with vagrant.