46 votes
Accepted

How to convert a unencrypted EBS to be encrypted

It's possible to copy an unencrypted EBS snapshot to an encrypted EBS snapshot. So the following process can be used: Stop your EC2 instance. Create an EBS snapshot of the volume you want to encrypt. ...
  • 9,804
37 votes

How to increase disk size in a stateful set

Pieced this procedure together based on other comments on https://github.com/kubernetes/kubernetes/issues/68737. I tested this on kubernetes 1.14: kubectl edit pvc <name> for each PVC in the ...
  • 1,038
27 votes
Accepted

EBS vs SSD definition

SSD are faster because there's no network latency, but it is ephemeral and you can't detach it from an instance and attach it to another. As you can see, it is available to more powerful instances. ...
24 votes
Accepted

Disk root error on start instance on "Amazon Web Services (AWS)" EC2

Answer is very easy, when you "Attach Volume" again set parameter: Device: /dev/sda1 WARN! If you haven't own "Elastic Network Interface (ENI)" beware change of address on "Instance Start". ...
  • 809
21 votes
Accepted

Booting an EC2 instance from an existing EBS volume

EBS volumes can be attached and detached from EC2 instance. If you have an EC2 instance that crashes for some reason, you can move the root volume to another EC2 intance. Launch a new EC2 instance. ...
  • 9,804
20 votes

Should a detached EBS volume keep charging monthly?

You're always charged for EBS volumes because that data is occupying space on physical storage somewhere, even if it is not attached to a running instance.
17 votes
Accepted

Is there anything I can do to speed up snapshot speeds?

The amount of time it takes EC2 to build a snapshot is directly proportional to the number of modified blocks that volume has seen since the last snapshot. In the case of your journal, that sees a lot ...
  • 109k
16 votes

How do I access the attached volume in Amazon EC2

To use a EBS volume attached in the EC2, you need first mount the volume. Connect to your instance using SSH. Use the lsblk command to view your available disk devices and their mount points. [ec2-...
16 votes

How to reduce AWS EBS root volume size?

None of the other solutions will work if the volume is used as a root (bootable) device. The newly created disk is missing the boot partition, so it would need to have GRUB installed and some flags ...
15 votes
Accepted

AWS EC2 snapshots - how long should they be retained?

I can literally delete all but the most recent with impunity Assuming you don't need any data that was already deleted or overwritten on the volume when you took the most recent snapshot, that's true....
15 votes

Is it possible to change the EBS volume to different availability zones?

No there isn't. You need to create a snapshot then re-create from that snapshot in the Availability Zone you want it to run in.
  • 22k
14 votes

how do I find out what part of my ec2 storage is ephemeral

Ephemeral and ebs devices can take just about any lettered device file name, so do not solely rely on the device name. The device name is important to making a determination if it is ephemeral or not,...
  • 510
14 votes

are EBS volumes wiped after use?

From the AWS documentation The physical block storage used by deleted EBS volumes is overwritten with zeroes before it is allocated to another account. From an AWS rep on their forums. I can ...
  • 30.7k
14 votes

Can I re-use an EBS volume with AWS ASG?

IMO, you can try to do it like this (I do something similar but with Elastic Network Interfaces). This assumes either a knowledge of AWS CloudFormation service or AWS CLI: Create an EBS volume Create ...
  • 5,777
14 votes
Accepted

Should a detached EBS volume keep charging monthly?

In addition to the other answer, you can take a Snapshot of the volume, which stores the data in S3, a cheaper storage option. You can then restore the snapshot to an EBS volume in the future when you ...
  • 1,351
13 votes

EC2 drive not EBS volume size

The answers here seem to be missing a few steps prior to re-sizing specially for people who are changing their EBS volume size. If you have used a snapshot to create the EBS or with certain AMIs you ...
  • 359
12 votes
Accepted

How long will it take to create a new EBS volume from a 1TB snapshot?

How can I figure out how long it will take to create the new EBS volume? Create one. And then, try using it. Continue using it over a period of hours and days, and note what you observe. The first ...
11 votes
Accepted

how to get volume id attached to instance from AWS CLI

The volumes IDs are not available from the metadata. The virtual devices are available under block-device-mapping/ You will need to use the AWS CLI (or script, program, etc.) to get the volume IDs ...
  • 4,394
11 votes
Accepted

Download EBS volume or snapshot to file

AWS don't provide a way to download or extract the actual block device that makes up an EBS volume. The standard way to grab a copy is to use rsync, but as you're after a block level way of doing this,...
  • 963
10 votes

How can I set up an SFTP server backed by S3 (or similar)

I answered this same question on Stack Overflow. s3fs is indeed a reasonable solution, and in my case, I've coupled it with proftpd with excellent results, in spite of the theoretical/potential ...
10 votes

EBS vs SSD definition

First of all, be aware of the difference between a root volume, an EBS and an EC2 instance store. The root volume is what hosts the EC2 instance's operating system and it's almost always an EBS ...
  • 101
10 votes
Accepted

Can I re-use an EBS volume with AWS ASG?

No. Autoscaling groups start multiple EC2 instances. Each EBS volume can only be attached to a single EC2 instance. Therefore you shouldn't do this, and it's probably not possible. If you have ...
  • 30.7k
9 votes
Accepted

AWS EC2 - EBS Redundancy

AWS EBS volumes are already stored in multiple copies behind the scenes. So there is no need to add extra redundancy by way of RAID setup on the instance. Amazon EBS volumes are designed to be highly ...
  • 24k
8 votes
Accepted

Is S3 a proper choice to keep live linux user home directories?

Is S3 a proper choice to keep live linux user home directories? Amazon has announced their EFS service, which is exactly what you need for this. Either use EFS or roll your own NFS server for home ...
  • 109k
8 votes
Accepted

Is it possible to change the EBS volume to different availability zones?

From the AWS documentation. When you create an EBS volume in an Availability Zone, it is automatically replicated within that zone to prevent data loss due to failure of any single hardware ...
  • 30.7k
8 votes
Accepted

Redis reports read-only filesystem, but it isn't

I found the answer, and it confims that this one is sufficiently different to other similar questions! I'm not yet why, but my service file had been rolled back to the default. The /etc/systemd/...
  • 519
8 votes

How to increase disk size in a stateful set

To apply this principal to a helm chart, I was able to do the following, based on the input above as well as some guidance on this thread: https://github.com/kubernetes/kubernetes/issues/68737#...
  • 292
7 votes

How to reduce AWS EBS root volume size?

In AWS Console: Stop the instance you want to resize Create a snapshot of the active volume and then create a "General Purpose SSD" volume from that snapshot. Create another "General Purpose SSD" ...
  • 87
7 votes
Accepted

How do I view the RDS_ prefixed environment variables in AWS ElasticBeanstalk?

Here's how to do it. First ssh into the eb instance. eb ssh Then un the following command sudo /opt/elasticbeanstalk/bin/get-config environment --output YAML Alternatively --output YAML can be --...
7 votes

Migrating from AWS EBS to Co-Lo hosted SAN/NAS

SAN/NAS for < $3,600 per TB? This is totally doable. However, don't forget that apart from SAN hardware/software itself, there are lots of things that should be considered, such as: redundant ...
  • 4,837

Only top scored, non community-wiki answers of a minimum length are eligible