Skip to content

Disaster Recovery Fedora and SOLR

Thomas Scherz edited this page Feb 21, 2023 · 8 revisions

Transfer PROD content to QA

Fedora

  1. Request transfer of content from UCIT : xxxx.xx.xx.xx:/ifs/data/hydramata/hydra-p1/fcrepo/ directory in the xxxx.xx.xx.xxx:/ifs/uclfs1/hydra-q1/fcrepo-prod/ directory.
  2. sudo su - tomcat
  3. /opt/tomcat/bin/shutdown.sh
  4. sudo systemctl stop mysqld
  5. sudo mv /mnt/hydra/fcrepo to /mnt/hydra/fcrepo_qa
  6. sudo mv /mnt/hydra/fcrepo_prod to /mnt/hydra/fcrepo
  7. chown -R tomcat backup
  8. chown -R tomcat data
  9. chown -R mysql mysql
  10. sudo chmod -R u+w data
  11. sudo systemctl start mysqld
  12. sudo -I
  13. runuser -l tomcat -c '/mnt/hydra/fcrepo/etc/fcrepo_start.sh'

SOLR

  1. Transfer content from SOLR QA /var/solr to PROD /var/solr_prod
  2. Sudo -I
  3. Service solr stop
  4. mv solr solr_qa
  5. Tar -xvf solr_prod.tar solr
  6. Service solr start
  7. /script/restartsidekiq.sh production

Users

  1. Recreate each user by e-mail.
  2. Create rake task to loop through file of emails.

Database