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…