Difference between revisions of "Migrating a VistA/GT.M installation from one platform to another"

From VistApedia
Jump to: navigation, search
Line 5: Line 5:
 
# [http://xinetd.org xinetd] is assumed to control th
 
# [http://xinetd.org xinetd] is assumed to control th
 
# It is assumed that the GT.M versions use the same database format.
 
# It is assumed that the GT.M versions use the same database format.
# The VistA environments to be copied must be identified, along with the hierarchical structure (see [[Link title]]), e.g.
+
# The VistA environments to be copied must be identified, along with the hierarchical structure (see [[Software Development (WG1) Version Control (T3)]]), e.g.
#* /usr/local/FOIAVistA20061230
 
#** /var/FOIAVistAprod
 
 
#* /usr/local/WorldVistAEHRvTEST20070616
 
#* /usr/local/WorldVistAEHRvTEST20070616
 +
#** /var/WorldVistAEHR
 
#** /home/vista/myWorldVistAEHR
 
#** /home/vista/myWorldVistAEHR
#*** /home/bhaskar/WorldVistAEHRdev
 
  
 
== Steps ==
 
== Steps ==
  
 
# Obtain and install GT.M for the new platform in a sub-directory of /usr/local, e.g., in /usr/local/gtm_V5.2-001.
 
# Obtain and install GT.M for the new platform in a sub-directory of /usr/local, e.g., in /usr/local/gtm_V5.2-001.
 +
# Copy the identified directories, including subdirectories from the originating machine to the target machine.  Object files (.o) should not be copied, and if they are, they should be deleted e.g., for the top level directory of each working environment (as root for the top level :
 +
        cd <directory>
 +
        find . -type d -name o -exec chmod -v {} \;
 +
        find . -name \*.o -exec rm -rv {} \;
 +
# Change the endian-ness of the database (see [http://www.fidelityinfoservices.com/user_documentation/targets/GTM_Database_Endian_Conversion.html Technical Bulletin: GT.M Database Endian Conversion - UNIX] for more information) in the top level release environment, from which other environments are derived (in this example, /usr/local/WorldVistAEHRvTEST20070616).  As root:
 +
        cd /usr/local/WorldVistAEHRvTEST20070616/gtm_V5.2-001
 +
        chmod u+w g
 +
        cd g
 +
        gzip -d mumps.dat.gz
 +
        source /usr/local/gtm_V5.2-001/gtmprofile
 +
        mupip endiancvt mumps.dat
 +
        gzip mumps.dat
 +
        cd ..
 +
        chmod a-w g
 +
# Change the endian-ness of the database in each working environment (/var/WorldVistAEHR and /home/vista/myWorldVistAEHR in this example).  As the normal user for each working environment:
 +
        cd /var/WorldVistAEHR/gtm_V5.2-001/g
 +
        source /usr/local/gtm/gtm_V5.2-001/gtmprofile
 +
        mupip endiacvt mumps.dat
 +
and
 +
        cd /home/vista/myWorldVistAEHR/gtm_V5.2-001/g
 +
        source /usr/local/gtm/gtm_V5.2-001/gtmprofile
 +
        mupip endiacvt mumps.dat
 +
# Recompile the object files in the top level release environment (ignore compilation errors; remember that some directories may not be empty  this script takes care of the general case where there may be files in the different source directories).  As root:
 +
        source /usr/local/gtm_V5.2-001/gtmprofile
 +
        cd /usr/local/WorldVistAEHRvTEST20070616/gtm_V5.2-001
 +
        chmod u+w o
 +
        cd o
 +
        find ../../r -name \*.m -print -exec mumps {} \;
 +
        find ../../p -name \*.m -print -exec mumps {} \;
 +
        find ../r -name \*.m -print -exec mumps {} \;
 +
        find ../p -name \*.m -print -exec mumps {} \;
 +
        cd ..
 +
        chmod a-w o
 +
        cd add-ons

Revision as of 15:23, 26 July 2007

These are instructions for copying a GT.M SemiVivA installation from one platform to another. For this discussion, the platforms are assumed to be of different endian-ness, e.g., x86 GNU/Linux and Sun SPARC Solaris).

Notes

  1. Existing SemiVivA scripts use the bash shell, and assume that it is located at /bin/bash. Modify the location if bash is located elsewhere. Edit the scripts as needed to use other shells.
  2. xinetd is assumed to control th
  3. It is assumed that the GT.M versions use the same database format.
  4. The VistA environments to be copied must be identified, along with the hierarchical structure (see Software Development (WG1) Version Control (T3)), e.g.
    • /usr/local/WorldVistAEHRvTEST20070616
      • /var/WorldVistAEHR
      • /home/vista/myWorldVistAEHR

Steps

  1. Obtain and install GT.M for the new platform in a sub-directory of /usr/local, e.g., in /usr/local/gtm_V5.2-001.
  2. Copy the identified directories, including subdirectories from the originating machine to the target machine. Object files (.o) should not be copied, and if they are, they should be deleted e.g., for the top level directory of each working environment (as root for the top level :
        cd <directory>
        find . -type d -name o -exec chmod -v {} \;
        find . -name \*.o -exec rm -rv {} \;
  1. Change the endian-ness of the database (see Technical Bulletin: GT.M Database Endian Conversion - UNIX for more information) in the top level release environment, from which other environments are derived (in this example, /usr/local/WorldVistAEHRvTEST20070616). As root:
        cd /usr/local/WorldVistAEHRvTEST20070616/gtm_V5.2-001
        chmod u+w g
        cd g
        gzip -d mumps.dat.gz
        source /usr/local/gtm_V5.2-001/gtmprofile
        mupip endiancvt mumps.dat
        gzip mumps.dat
        cd ..
        chmod a-w g
  1. Change the endian-ness of the database in each working environment (/var/WorldVistAEHR and /home/vista/myWorldVistAEHR in this example). As the normal user for each working environment:
        cd /var/WorldVistAEHR/gtm_V5.2-001/g
        source /usr/local/gtm/gtm_V5.2-001/gtmprofile
        mupip endiacvt mumps.dat

and

        cd /home/vista/myWorldVistAEHR/gtm_V5.2-001/g
        source /usr/local/gtm/gtm_V5.2-001/gtmprofile
        mupip endiacvt mumps.dat
  1. Recompile the object files in the top level release environment (ignore compilation errors; remember that some directories may not be empty this script takes care of the general case where there may be files in the different source directories). As root:
        source /usr/local/gtm_V5.2-001/gtmprofile
        cd /usr/local/WorldVistAEHRvTEST20070616/gtm_V5.2-001
        chmod u+w o
        cd o
        find ../../r -name \*.m -print -exec mumps {} \;
        find ../../p -name \*.m -print -exec mumps {} \;
        find ../r -name \*.m -print -exec mumps {} \;
        find ../p -name \*.m -print -exec mumps {} \;
        cd ..
        chmod a-w o
        cd add-ons