I am able to successfully launch p2 spot instance using the Wiki help.
I used the Persistence for Spot Instances: Approach 2 — Swap root volume - With a new instance mentioned in the wiki : http://wiki.fast.ai/index.php/AWS_Spot_instances
My assumption is it should result in the volume “fast-ai-volume” be the only volume attached and should have the status : “in-use” when viewed in the EC2 dashboard.
But in my case upon starting the spot instance, I am seeing a new volume being created. The volume “fast-ai-volume” is in the state:“available”. I am attaching the snapshot of this
To overcome this problem,I had to do attach the “fast-ai-volume” to the instance and then do:
After this I am able to see persistent data storage.
Using p2 spot instance from eu-west1 (Ireland) AMI.
I started the instance as:
$ bash ec2-spotter/fast_ai/start_spot.sh
After the instance is started, I had waited for around 10 minutes to ssh into the instance.
I tried starting the instance with start_spot.sh script from inside “ec2_spotter/fast_ai” as well as inside the “ec2_spotter” directory. The result does not change.
I assume this is not the way swap root functions… It should be able to mount the volume “fast-ai-volume” as the root partition and the other newly created volume should not be attached to the instance.
Am i right?
I have a doubt whether the command “ec2spotter-remount-root” in the file ec2-spotter-launch.sh is succeeding in my case.
Any suggestions to solve the problem would be welcome.