-
Notifications
You must be signed in to change notification settings - Fork 8
Free up disk space on an LDE
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:
sudo /usr/sbin/service tomcat7 stop
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.
sudo rm -rf /dspace/*bak*
sudo -u vtechworks rm -rf /dspace/log/*log*
sudo -u vtechworks rm -rf /dspace/log/*log.2018*
sudo -u vtechworks rm -rf /dspace/log/*log.2019-01*
sudo /usr/sbin/service tomcat7 stop; sudo /usr/sbin/service postgresql stop
sudo /usr/sbin/service postgresql start
sudo /usr/sbin/service tomcat7 start
If the above steps don't work, you can provision a new LDE with vagrant.