I'm lunching an instance to host a Cassandra node and i'm testing some shutdown and startup scripts. The instance was lunched from the datastax PV AMI 'ami-8932ccfe'. I added 8GB of SSD EBS storage for root and launched it. On initial startup the Instance Store (ephemeral drive) was attached and everything was fine. I stopped the instance and started it again and the Instance Store was gone and the following error message was displayed on logging in:
ERROR mount -a:
Next I terminated the instance, relaunched the same AMI and setup, then I made a snapshot AMI and added the Instance Store there in an attempt to 'bake' it into the instance. However on stop and start I get the same issue.
My problem is that I only have permission to stop and start instances, I cannot create them myself so I have to keep bothering a college to help me launch them. I want to be able to stop the instance at the end of the day and start it again in the morning i.e. during working hours to reduce any costs. The server in question is just a development instance and so I'm not worried about data lose, all I need to run on startup are some scripts to create the tables. However because the Instance Store doesn't attach automatically on start up Cassandra doesn't install.
Can anyone tell me how to create an instance such that the Instance Store is automatically attached after a stop and start?
After I started the instance I used the following to get some metadata if it helps:
curl http://169.254.169.254/latest/meta-data/block-device-mapping/
ami
ephemeral0
root
curl http://169.254.169.254/latest/meta-data/block-device-mapping/ephemeral0
sdb
Cheers, Alexei Blue.