Versions Compared

Key

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

...

The current build scripts in Ansible have problems with a few changes we need. They can be done in this order, or other orders if needed.

  1. Creating drives
  2. Migration from Postgresql 9.3 to 9.5
  3. Moving to Fedora 4.7Creating drives

Creating 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
      1. /dev/xvdg /opt/fedora-data xfs defaults 0 0

      2. /dev/xvdh /opt/sufia-project/releases/XXXX/tmp xfs defaults 0 0

...