- Launch an EC2 instance that will serve as "Web Server". Create 3 volumes in the same AZ as your Web Server EC2, each of 10 GiB.
- Attach all three volumes one by one to your Web Server EC2 instance
- Open up the Linux terminal to begin configuration
- Use lsblk command to inspect what block devices are attached to the server. Notice names of your newly created devices
- Use gdisk utility to create a single partition on each of the 3 disks (sudo gdisk /dev/xvdf)
- Use lsblk utility to view the newly configured partition on each of the 3 disks
- run webserver_config.sh file to run congiguration (./webserver_config.sh)
- Update /etc/fstab file so that the mount configuration will persist after restart of the server
- The UUID of the device will be used to update the /etc/fstab file use sudo blkid command to get UUID
- Open the /etc/fstab with sudo vi /etc/fstab command
- Test the configuration and reload the daemon with sudo mount -a && sudo systemctl daemon-reload
- Launch an EC2 instance that will serve as "Db Server". Create 3 volumes in the same AZ as your Web Server EC2, each of 10 GiB.
- Attach all three volumes one by one to your Db Server EC2 instance
- Open up the Linux terminal to begin configuration
- Use lsblk command to inspect what block devices are attached to the server. Notice names of your newly created devices
- Use gdisk utility to create a single partition on each of the 3 disks (sudo gdisk /dev/xvdf)
- Use lsblk utility to view the newly configured partition on each of the 3 disks
- run webserver_config.sh file to run congiguration (./dbserver_config.sh)