...
Spin up machine
Run ansible scripts
Create 2 new drives
a. If mounting drives for fedora-data or for the tmp directory for migration, make sure to change the owner to tomcat7 (sudo chown tomcat7:tomcat7 folder) for fedora-data and hydep:deploy for the tmp directory (sudo chown hydep:deploy folder)
Box Build changes
The current build scripts in Ansible have problems with a few changes we need.
...
- In the AWS visual interface, go to EC2
- Go to Volumes
- Select Create Volumes
- Make sure the volume is
- General Purpose SSD
- 150 GB
- Availability Zone b
- Create 2 of these
- 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.
- ssh into the box
- Run sudo fdisk -l
- You should see /dev/vxdg and /dev/xvdh
- If not, check if the volumes are attached
- Create the filesystem for each disk
- sudo mkfs.xfs /dev/xvdg
- sudo mkfs.xfs /dev/xvdh
- Mount each disk
- sudo mount /dev/xvdg /opt/fedora-data
- sudo mount /dev/xvdh /opt/sufia-project/releases/XXXX/tmp
- Edit the fstab file to retain these mounts
- sudo vi /etc/fstab
/dev/xvdg /opt/fedora-data xfs defaults 0 0
- /dev/xvdh /opt/sufia-project/releases/XXXX/tmp xfs defaults 0 0
- sudo vi /etc/fstab
- Change the owner of the two mount locations
- sudo chown -R tomcat7:tomcat7 /opt/fedora-data
- sudo chown -R hydep:deploy /opt/sufia-project/releases/XXXX/tmp
Solr
- If this is the first time sufia has been deployed, Solr now runs outside of tomcat and needs to be restarted after deployment.
- sudo service solr restart
...