amazon-ebs

Attaching and mounting existing EBS volume to EC2 instance filesystem issue

早过忘川 提交于 2019-11-28 16:29:49
I had some unknown issue with my old EC2 instance so that I can't ssh into it anymore. Therefore I created a new EBS volume from a snapshot of the old volume and tried to attach and mount it to the new instance. Here is what I did: Created a new volume from snapshot of the old one. Created a new EC2 instance and attached the volume to it as /dev/xvdf (or /dev/sdf ) SSHed into the instance and attempted to mount the old volume with: $ sudo mkdir -m 000 /vol $ sudo mount /dev/xvdf /vol And the output was: mount: block device /dev/xvdf is write-protected, mounting read-only mount: you must

Should I persist images on EBS or S3?

眉间皱痕 提交于 2019-11-27 16:54:34
I am migrating my Java,Tomcat, Mysql server to AWS EC2. I have already attached EBS volume for storing MySql data. In my web application people may upload images. So I should persist them. There are 2 alternatives in my mind: Save uploaded images to EBS volume. Use the S3 service. The followings are my notes, please be skeptic about them, as my expertise is not on servers, but software development. EBS plus: S3 storage is more expensive. (0.15 $/Gb > 0.1$/Gb) S3 plus: Serving statics from EBS may influence my web server's performance negatively. Is this true? Does Serving images affect server

Amazon EC2 - Swap root instance store device with EBS device

﹥>﹥吖頭↗ 提交于 2019-11-27 16:47:20
I have an EC2 instance with "instance store" device as a root device. Now, I would like to attach an EBS volume to that same instance, only that I want it to be the root device. Is that possible? What happens to the instance store device in such case? Thanks in advance You could migrate your running instance to an EBS backed AMI. Here's how I did it: Boot up a regular S3 AMI backed instance (or since you've already got an instance you're happy with, use that) Make an EBS volume of the same size as your root sda1 partition (currently the default is 10G for an m1.small and possibly others)

What data is stored in Ephemeral Storage of Amazon EC2 instance?

可紊 提交于 2019-11-27 16:45:20
I am trying to stop a Amazon EC2 instance and get the warning message Warning: Please note that any data on the ephemeral storage of your instance will be lost when it is stopped. My Question What data is stored in ephemeral storage of an Amazon EC2 instance? digitaljoel Anything that is not stored on an EBS volume that is mounted to the instance will be lost. For example, if you mount your EBS volume at /mystuff , then anything not in /mystuff will be lost. If you don't mount an ebs volume and save stuff on it, then I believe everything will be lost. You can create an AMI from your current

Add EBS to Ubuntu EC2 Instance

蓝咒 提交于 2019-11-27 16:34:56
I'm having problem connecting EBS volume to my Ubuntu EC2 Instance. Here's what I did: From the Amazon AWS Console, I created a EBS 150GB volume and attached it to an Ubuntu 11.10 EC2 instance. Under the EBS volume properties, "Attachment" shows: "[my Ubuntu instance id]:/dev/sdf (attached)" Tried mounting the drive on the Ubuntu box, and it told me "mount: /dev/sdf is not a block device" sudo mount /dev/sdf /vol So I checked with fdisk and tried to mount from the new location and it told me it wasn't the right file system. sudo fdisk -l sudo mount -v -t ext4 /dev/xvdf /vol the error: mount:

Will moving data from EBS to ephemeral storage improve MySQL query performance?

时间秒杀一切 提交于 2019-11-27 14:14:09
问题 I am using EBS volume to store MySQL data. I do have enough space on ephemeral device as well. I will move the data to /root/, provided it will improve the query performance. Is ephemeral storage faster than EBS volumes? 回答1: Daan's answer is pointing to Eric Hammond's excellent summary of all EBS benefits already (+1), but to stress one point again upfront: Ephemeral storage will be lost on stop/start cycles and can generally go away , so you definitely don't want to put anything of lasting

Attaching and mounting existing EBS volume to EC2 instance filesystem issue

浪尽此生 提交于 2019-11-27 09:46:23
问题 I had some unknown issue with my old EC2 instance so that I can't ssh into it anymore. Therefore I created a new EBS volume from a snapshot of the old volume and tried to attach and mount it to the new instance. Here is what I did: Created a new volume from snapshot of the old one. Created a new EC2 instance and attached the volume to it as /dev/xvdf (or /dev/sdf ) SSHed into the instance and attempted to mount the old volume with: $ sudo mkdir -m 000 /vol $ sudo mount /dev/xvdf /vol And the

Growing Amazon EBS Volume sizes [closed]

喜你入骨 提交于 2019-11-27 05:47:38
I'm quite impressed with Amazon's EC2 and EBS services. I wanted to know if it is possible to grow an EBS Volume. For example: If I have a 50 GB volume and I start to run out of space, can I bump it up to 100 GB when required? All great recommendations, and I thought I'd add this article I found, which relates to expanding a Windows Amazon EC2 EBS instance using the Amazon Web UI tools to perform the necessary changes. If you're not comfortable using CLI, this will make your upgrade much easier. http://www.tekgoblin.com/2012/08/27/aws-guides-how-to-resize-a-ec2-windows-ebs-volume/ Thanks to

Should I persist images on EBS or S3?

江枫思渺然 提交于 2019-11-26 18:47:40
问题 I am migrating my Java,Tomcat, Mysql server to AWS EC2. I have already attached EBS volume for storing MySql data. In my web application people may upload images. So I should persist them. There are 2 alternatives in my mind: Save uploaded images to EBS volume. Use the S3 service. The followings are my notes, please be skeptic about them, as my expertise is not on servers, but software development. EBS plus: S3 storage is more expensive. (0.15 $/Gb > 0.1$/Gb) S3 plus: Serving statics from EBS

Add EBS to Ubuntu EC2 Instance

倖福魔咒の 提交于 2019-11-26 18:42:15
问题 I'm having problem connecting EBS volume to my Ubuntu EC2 Instance. Here's what I did: From the Amazon AWS Console, I created a EBS 150GB volume and attached it to an Ubuntu 11.10 EC2 instance. Under the EBS volume properties, "Attachment" shows: "[my Ubuntu instance id]:/dev/sdf (attached)" Tried mounting the drive on the Ubuntu box, and it told me "mount: /dev/sdf is not a block device" sudo mount /dev/sdf /vol So I checked with fdisk and tried to mount from the new location and it told me