AWS EBS Volume Options Use cases.

EBS Provisioned IOPS SSD (io1) EBS General Purpose SSD (gp2) Throughput Optimized HDD (st1) Cold HDD (sc1) Description Highest performance SSD designed for latency-sensitive transactional workloads General purpose SSD that balances price and performance for a wide variety of transactional workloads Low-cost HDD designed for frequently accessed, throughput intensive workloads Lowest cost HDD designed for…

To migrate data between encrypted and unencrypted AWS EBS volumes

To migrate data between encrypted and unencrypted volumes. Create your destination volume (encrypted or unencrypted, depending on your need). Attach the destination volume to the instance that hosts the data to migrate. Make the destination volume available by following the procedures in Making an Amazon EBS Volume Available for Use. For Linux instances, you can…

Command to make EBS volume available in EC2 Instance

  #view available disk devices [root@ip-172-31-21-110 lib]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 16G 0 disk └─xvda1 202:1 0 16G 0 part / xvdf 202:80 0 4G 0 disk #Check for filesystem exist [root@ip-172-31-21-110 lib]# file -s /dev/xvdf /dev/xvdf: data #Create file systems ext4 [root@ip-172-31-21-110 lib]# mkfs -t ext4 /dev/xvdf…

Running MySQL on Amazon EC2 with EBS (Elastic Block Store)

https://aws.amazon.com/articles/1663 Configuring MySQL to use the EBS volume Now that we have an EBS volume mounted on the instance with a good file system, let’s put the MySQL database on that volume and tell MySQL where it is. Stop the MySQL server. sudo /etc/init.d/mysql stop Move the existing database files to the EBS volume. Point…