Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

General outline



  1. Deploy Sufia
  2. Ensure apache is off
  3. Activate maintenance mode on old server
  4. Move over minter
  5. Fedora Export - see below
  6. migrate postgres
  7. Fedora Import - see below
  8. run (currently nonexistent) verification job
  9. migrate dump.rdb
  10. Reindex solr



  1. Spin up machine

    1. Run ansible scripts

    2. Box Build changes

      1. The current build scripts in Ansible have problems with a few changes we need.

      2. Creating

    drives
  2. Restart Solr

...

      1. Drives

        1. In the AWS visual interface, go to EC2
        2. Go to Volumes
        3. Select Create Volumes
        4. Make sure the volume is
          1. General Purpose SSD
          2. 150 GB
          3. Availability Zone b
        5. Create 2 of these
        6. Once each one is made, select it and under Actions choose Attach Volume. Type the name or id of the machine and attach the volume.
        7. ssh into the box
        8. Run sudo fdisk -l
          1. You should see /dev/vxdg and /dev/xvdh
          2. If not, check if the volumes are attached
        9. Create the filesystem for each disk
          1. sudo mkfs.xfs /dev/xvdg
          2. sudo mkfs.xfs /dev/xvdh
        10. Mount each disk
          1. sudo mount /dev/xvdg /opt/fedora-data
          2. sudo mount /dev/xvdh /opt/sufia-project/releases/XXXX/tmp
        11. Edit the fstab file to retain these mounts
          1. sudo vi /etc/fstab
          2. /dev/xvdg /opt/fedora-data xfs defaults 0 0

          3. /dev/xvdh /opt/sufia-project/releases/XXXX/tmp xfs defaults 0 0
        12. Change the owner of the two mount locations
          1.  sudo chown -R tomcat7:tomcat7 /opt/fedora-data
          2. sudo chown -R hydep:deploy /opt/sufia-project/releases/XXXX/tmp

Deploy Sufia

Restart Solr

  1. If this is the first time sufia has been deployed, Solr now runs outside of tomcat and needs to be restarted after deployment.
  2. sudo service solr restart

Ensure apache is off

We don't want anyone doing stuff before we're ready.

Activate maintenance mode on old server

Fedora export

In sufia 6 instance:

...