-
Notifications
You must be signed in to change notification settings - Fork 3
Disaster Recovery Fedora and SOLR
Thomas Scherz edited this page Feb 21, 2023
·
8 revisions
- 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.
- sudo su - tomcat
- /opt/tomcat/bin/shutdown.sh
- sudo systemctl stop mysqld
- sudo mv /mnt/hydra/fcrepo to /mnt/hydra/fcrepo_qa
- sudo mv /mnt/hydra/fcrepo_prod to /mnt/hydra/fcrepo
- chown -R tomcat backup
- chown -R tomcat data
- chown -R mysql mysql
- sudo chmod -R u+w data
- sudo systemctl start mysqld
- sudo -I
- runuser -l tomcat -c '/mnt/hydra/fcrepo/etc/fcrepo_start.sh'
- Transfer content from SOLR QA /var/solr to PROD /var/solr_prod
- Sudo -I
- Service solr stop
- mv solr solr_qa
- Tar -xvf solr_prod.tar solr
- Service solr start
- /script/restartsidekiq.sh production
- Recreate each user by e-mail.
- Create rake task to loop through file of emails.