Migration Strategy and Executable Task List

DRAFT
UMBC
15 May 2006
Prepared by Bryan Brown, Dayspring Systems, LLC. & Nick Yeates

Migration Overview

In order to complete the transition from the UMBC Sun Solaris/Oracle Para-Docs appli-ance (UMBC-PD-SUN) to the UMBC Fedora Core 4/Postgresql Para-Docs appliance (UMBC-PD-FC4), all of the data, including the Para-Docs database, stored document files, and custom scripts, must be transferred from UMBC-PD-SUN to UMBC-PD-FC4. Once the operational files have been transferred, both appliances must be reconfigured to respond to new domain names and exhaustively tested to ensure full functionality.

Migration Priorities

  1. Complete the migration within the time specified (19 May 2006, 9 p.m. to 22 May 2006, 7 a.m.).
  2. Ensure the integrity of all UMBC data.
  3. Replicate all functionality of the existing PD installation on the new appliance.
  4. Perform any necessary maintenance on new appliance.
  5. Ensure a measurable system speed increase.

UMBC Migration Task List

  1. Login to gsdocs.umbc.edu using appropriate credentials. These credentials are available from Nick Yeates and Dayspring Systems.
  2. sudo bash

    This command will move the user into superuser mode, allowing execution of privileged commands and access to restricted directories.

  3. FIXME Turn off login functionality of users (making sure they cannot login from myUMBC also)
  4. cd /afs/umbc.edu/users/g/s/gsdocs/home/ora2pg
  5. perl ora2pg.pl

    This directory contains the Perl script that will perform the conversion of the data-base information from Oracle to Postgresql. This script will take a significant amount of time to run. The previous export of the Para-Docs database on the Sun server was over 1GB in size. The output file is named output.sql.

  6. Note chmod & chown settings on gsdocs-prd.umbc.edu:/home/support
  7. FIXME Create correct chmod & chown settings if needed on gsdocs-prd.umbc.edu:/home/support
  8. scp ./output.sql support@gsdocs-prd.umbc.edu:/home/support

    This command will move the database output file from the Sun server to the FC4 server.

  9. FIXME Create old chmod & chown settings from before on gsdocs-prd.umbc.edu:/home/support
  10. Exit and exit again
  11. Login to gsdocs-prd.umbc.edu using appropriate credentials
  12. cd /home/support
  13. su root
  14. pg_dump paradocsimport > /pd.dmp
    pg_dump paradocs > /pd2.dmp

    These two commands will backup the existing Para-Docs databases on the FC4server. Although there is no need to preserve the data on the FC4 server, maintaining a backup may allow for more effective configuration and testing.

  15. dropdb paradocs

    This Postgresql command is used to drop an existing database. This is necessary to clear the way for the new import data from the Sun server.

  16. createdb paradocs

    This Postgresql command is used to add a database. This database will be completely blank and will be populated with data from the output.sql file transferred from the Sun server.

  17. psql paradocs < /home/support/output.sql

    This Postgresql command will parse the SQL file generated from the database on the Sun server and add the data to the Paradocs DB.

  18. Edit /etc/odbc.ini

    This file points the ODBC calls in the PHP code to the correct data. Under the heading [PARADOCS], the attribute database must be changed from paradocsimport to paradocs. This will associate the ODBC pointer with the correct Postgresql database (the one now containing the Para-Docs DB data).

  19. /sbin/service postgresql restart

    This command will flush any cached data and break any persistent connections to the database, forcing them to be renewed.

  20. /sbin/service httpd restart

    This command will restart the Apache web server.

  21. Perform testing via PD Explorer web interface. This testing will confirm database functionality, including logins, queries, workflow, etc. The links to the files will return “file not found” errors until the document files are migrated to the FC4 server.

Moving repository/PDF data from UMBC-PD-SUN to UMBC-PD-FC4

  1. mv /usr/local/data/repository /usr/local/data/repositoryold
  2. mkdir /usr/local/data/repository
    mkdir /usr/local/data/repository/gsapp
  3. Note chmod & chown settings on /usr/local/data/repository and /usr/local/data/repository/gsapp
  4. chmod 777 /usr/local/data/repository
    chmod 777 /usr/local/data/repository/gsapp
  5. chown support.support /usr/local/data/repository

    This will allow data to be copied directly to the target directory via SCP.

  6. mv /var/www/html/pd_search pd_searchold
  7. mkdir /var/www/html/pd_search
  8. chmod 755 /var/www/html/pd_search
  9. chown support.support /var/www/html/pd_search

    This will allow data to be copied directly to the target directory via SCP.

  10. Exit and logout
  11. Login to gsdocs.umbc.edu with proper credentials
  12. sudo bash
  13. scp -r /apps/gsdocs/paradocs/repository/gsapp support@gsdocs-prd.umbc.edu:/usr/local/data/repository/gsapp
  14. Copy pd_search files FIXME [NEED TO ASK NICK ABOUT CURRENT CONTENT SEARCH CAPABILITIES]
  15. Exit and exit
  16. Login to gsdocs-prd.umbc.edu using proper credentials
  17. chown root.root /var/www/html/pd_search

    This returns the folder to web-safe permissions.

  18. chown root.root /usr/local/data/repository

    This returns the folder to web-safe permissions.

  19. FIXME Is this needed???
    chown root.root /usr/local/data/repository/gsapp

    This returns the folder to web-safe permissions.

  20. Perform additional testing via PD Explorer web interface
 
systems/paradocs/server_upgrade/migration_task_list.txt · Last modified: 05.16.2006 16:32 by 130.85.107.40
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki