Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The Avalon 5.x to 6.x migration tool copies and transforms Avalon 5.x's Fedora 3 data to Avalon 6.x's Fedora 4 data.  The tool can be run as follows:

bundle exec rake avalon:migrate:repo

 Below is a table of options and their default values:

 

OptionExplanationExample Usage

Default Value

CONFIRMRequired in order to prevent accidental executionCONFIRM=yes 
pidsA comma separated list of Avalon 5.x Fedora 3 pids to migratepids=avalon:1,avalon:2,avalon:3 
pidfilePath to a filename containing one Avalon 5.x Fedora 3 pid per linepidfile=/path/to/pidfile

 

parallel_processesNumber of parallel processes the migration tool should useparallel_processes=4number of processors - 2
overwriteDetermines whether existing Fedora 4 objects should be cleaned out and reused or
new objects should be created even if matching migrated objects already exist
overwrite=truefalse

 

Rerunning the migration

Once the migration is running, it is best to let it fully finish before attempting to rerun failed objects.  The migration should fail objects that are missing parent or child objects.  Once the migration is finished running, a list of the failed object ids can be collected into a file by running this command:

bundle exec rails r 'puts MigrationStatus.where(status: "failed").map(&:f3_pid).uniq.join("\n")' > failed_objects

The migration tool can then be rerun with this list:

bundle exec rake avalon:migrate:repo pidfile=failed_objects

 

Potential Problems

First read the Migration Report and Results to determine what objects failed migration and why.  

ProblemWorkaround
Objects fail with errors about mismatched prefixesTurn off parallel processing by setting parallel_processes=1
Objects fail with LDP conflictTurn off parallel processing by setting parallel_processes=1
Poster and thumbnail images missingSee script on /wiki/spaces/AVALON/pages/1957954849
Section permalinks incorrectSee script on  /wiki/spaces/AVALON/pages/1957954849 
Permalink collisionsSee script on  /wiki/spaces/AVALON/pages/1957954849 

See /wiki/spaces/AVALON/pages/1957954849 for some scripts that could be adapted to help find and fix data issues post-migration.

 

  • No labels