Task #2951
Story #2948: Rollout 1.0.1 to Production
Modify cn-dataone-solr.prerm and solr's web.xml
100%
Description
/var/lib/dpkg/info/cn-dataone-solr.prerm will delete the solr search index.
Remove core home dirs¶
#rm -rf /usr/share/solr/d1-cn-index
#rm -rf /usr/share/solr/d1-cn-log
Restore original solr.xml config¶
mv /usr/share/solr/solr.xml.bak /usr/share/solr/solr.xml
Remove core data dirs¶
#rm -rf /var/lib/solr/data/d1-cn-index
#rm -rf /var/lib/solr/data/d1-cn-log
once staging is upgraded, we can test before rolling out to production,
but production file should be modified to remove the rm of the directories so as not to delete indexes.
The directories should be backed up somewhere before installation, just in case.
/usr/share/solr/WEB-INF/web.xml will need modification at this point as well.
for the filter with the name 'D1SolrAuthorizationFilter' change the url-pattern to read:
<url-pattern>/d1-cn-log/select</url-pattern> <url-pattern>/d1-cn-log/select/</url-pattern> <url-pattern>/d1-cn-log/select/*</url-pattern>
on each of the machines
Related issues
History
#1 Updated by Robert Waltz over 12 years ago
- Subject changed from Modify cn-dataone-solr.prerm to Modify cn-dataone-solr.prerm and solr's web.xml
#2 Updated by Robert Waltz over 12 years ago
- Status changed from New to Closed