8.7. Resetting the System to a Blank State
During and after alpha and beta testing, you may have cause to delete all of the stored content in order to start over. This section provides guidance on how to do this without reinstalling completely from scratch.
LOCKSS 2.x stores content and metadata in several places which depend on how it was configured. We've provided a script to facilitate deleting all the right directories, but to provide flexibility and make it difficult to do this accidentally, the script generates a second script that actually performs the deletions.
The procedure consists of deleting the PostgreSQL data directory (
lockss-stack-postgres-data) and Solr data directory (
lockss-stack-solr-data) from the primary content data storage area, and the repository data directory (
lockss-stack-repo-data) from each content data storage area, all of which must be done after shutting down the system.
Stop the stack:
Generate the deletion script:
scripts/upgrades/generate-content-reset-script > /tmp/delcontent
/tmp/delcontentif you wish. Note that there is one sudo command because the PostgreSQL files are not owned by the
lockssuser, which may need modifying in some environments.
Make the script executable:
chmod +x /tmp/delcontent
Delete the content:
We recommend deleting the script after use:
Restart the system: