Repository Data Migration

  • if the repository has never had a clean initialization, do that first Repository Clean Initialization
  • the root directory (usually /home/repository) must be unique to only one server (no linking from different repository to the same location) because its indexes must match the DB contents
  • BE SURE THAT THE DB SNAPSHOT HAS BEEN DONE AT THE SAME TIME AS THE DATASTORE FILES SNAPSHOT
  • if tomcat is running, stop it possibly gently using the method startShutDown with admin certificate (this will finish the pending registrations and backup the statistics)
  • remove and recreate the used mysql database
  • import the data from the backup into that database
  • copy the files matching the db backup into the datastore directory or link to the directory structure where the files are available
  • if linking, be sure that the user running tomcat can read and write that location
  • remove the 3 directories (not enough to remove the content, the directories must be removed) called "index" inside ./workspaces/default ./workspaces/volatile and ./workspaces/metrics
  • start tomcat
  • at this point the webservice notices that the index directories are missing and re-starts the indexing. It may take around 15 minutes
  • verify that the logs (usually /tmp/eticsRepositoryWSLog.log) include "Repository service successfully initialized..."

-- LorenzoDini - 11 Jun 2009

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2009-06-11 - LorenzoDini
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    ETICS All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback