Amazon EC2 m3.large with a total capacity of 8 GB

I bought m3.large, but when I create an instance, I see only 8 GB, should I change this value to 32 GB? I want to use this SSD repository for MySQL. and i need this in the root partition

Sorry for my English. Thanks.

Instance Description:

Instance Type ECUs vCPUs Memory (GiB) Instance Storage (GiB) EBS-Optimized Available Network Performance m3.large 6.5 2 7.5 1 x 32 - Moderate 

Storage Description:

 Type Device Snapshot Size (GiB) Volume Type IOPS Delete on Termination Root /dev/sda1 snap-67620582 8 standard N/A Yes ephemeral0 /dev/sdb N/AN/AN/AN/AN/A 
+7
amazon amazon-ec2
source share
2 answers

If you want to use it as the root partition, you need to run the version store of your AMI instances.

The SSD size is mapped to /dev/sdb . You can mount it anywhere on your file system. Like /var/mysql .

If you do not use replication, you will lose data stored on the ephemeral volume if the instance is stopped or crashes for some reason.

+1
source share

The 8 GB that you see is basically your EBS volume installed as the root drive.

You can find the version of the repository of instances of your AMI in the same way as suggested by @datasage, or you can just link to where you want to store mysql files:

 $ mkfs.ext4 /dev/sdb # This creates the filesystem on the ephemeral storage $ mkdir -p /mnt/sdb $ mount /dev/sdb /mnt/sdb $ ln -s /var/lib/mysql /mnt/sdb/mysql 

Keep in mind that, like @datasage, you will lose all this data after you shut down the instance from its ephemeral storage.

+1
source share

All Articles