dimanche 23 août 2015

EC2 machine abruptly terminating right after start

I was in the process of shrinking the size of the EBS volume attached to my ec2 machine. There are many tutorials on how to do this (here is the one I used).

The gist is that, I create a snapshot of the actual drive, and small empty volume. I then copy the content of the snapshot to the small drive via sudo rsync -aHAXxSP /mnt/snap/ /mnt/small.

When checking the contents of the small drive, it seems like it contains all of the folders/files in the original drive.

At the end, after detaching all volumes and attaching the smallest volume, when starting the ec2 instance, it terminates after initializing. When I get the reason for the termination it says Instance initiated shutdown:

AI2s-MBP-7:~ i-danielk$ aws ec2 describe-instances --instance-ids i-e0ef0910  
RESERVATIONS    645962089403    r-440c95a5
GROUPS  sg-4cdf6427 zfei_profiler
INSTANCES   0   x86_64  tOGHd1424650611612  True    xen ami-146e2a7c    i-e0ef0910  r3.2xlarge  zfei_profiler   2015-08-23T01:56:40.000Z            /dev/xvda   ebs     hvm
BLOCKDEVICEMAPPINGS /dev/xvda
EBS 2015-08-23T01:55:56.000Z    False   attached    vol-1d08fcf0
MONITORING  disabled
PLACEMENT   us-east-1c      default
SECURITYGROUPS  sg-4cdf6427 zfei_profiler
STATE   80  stopped
STATEREASON Client.InstanceInitiatedShutdown    Client.InstanceInitiatedShutdown: Instance initiated shutdown
TAGS    Name    WIKI_TACL_MERGE




Aucun commentaire:

Enregistrer un commentaire