-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
attaching disk #13
Comments
By default the disk attached to EC2 instances called instance store is ephemeral and all data will be lost if the instance is terminated, however it will persist if the instance is merely stopped or restarted. Persistent storage that will survive termination of an instance requires attaching an EBS volume. I'll add this to the TODO list for after the policy/alarms that I'm working on now. Also, note that the size of an instance store is much larger than the 40GB of the root device, however it is not automatically mounted by the OS, however if you need additional space without using EBS, it is possible to mount the extra storage. In summary:
|
I'm seeing 40 Gb in /mnt and just 8 Gb in / when I start using defaults Also when I stopped an instance, stuff in /mnt disappeared. Thoughts? I'm trying to figure out a good path for students as they are already On Fri, Oct 24, 2014 at 9:38 AM, Aaron Culich [email protected]
|
Arggh. R doesn't want to allow its temp directory to be on /mnt for some reason. So I really need to figure out a way to get more space available for /tmp. |
this process will be faster if I drop by and we look at it together and iterate. I'll swing by at 10:30am if that works for you? I expect we might run into other problems along the way as you test out other things, so might as well just get everything sorted out ASAP and I'll worry about scripting it after-the-fact. |
I have a 10:10 meeting and should be back about 11. Does that work? On Fri, Oct 24, 2014 at 10:03 AM, Aaron Culich [email protected]
|
11am is fine. |
Ok, I just got back so here now. On Fri, Oct 24, 2014 at 10:27 AM, Aaron Culich [email protected]
|
The setup-storage script will combine both instance-store volumes into a single continuous block device using LVM. Students only need to run the first time an instance is started:
If there is already data in /mnt it WILL DESTROY the data already there and there are currently no safeguards, so this is dangerous to leave lying around in case they accidentally ran it a second time (e.g. bash history mishap) |
This will not yet fix the other problem of the hard-coded /tmp path for your existing code. |
I have verified that rebooting or start/stop of the instance will NOT delete the files in I think your work-around for symlinking
|
What I stated above is INCORRECT! As we verified in the console, stopping an instance does indeed lose all data on the instance store volumes, in this case the ones on What survives a stop and a start is the root device, in this case In the case of a You can read more here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/RootDeviceStorage.html |
Would be good to think more about this. I realized that /mnt has 40 Gb which is enough for what we are doing when they start up a single instance, but it disappears when an instance is stopped and restarted. So we may want to have some discussion about provisioning where there is persistent disk, but in light of cost.
The text was updated successfully, but these errors were encountered: