52 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 ...
Chris Jones's user avatar
  • 1,358
48 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. ...
Matt Houser's user avatar
  • 10.2k
23 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-...
Renato Coutinho's user avatar
22 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.
Mike's user avatar
  • 22.5k
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.
Michael Hampton's user avatar
19 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 ...
Ruben Serrate's user avatar
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 ...
Tim's user avatar
  • 32.6k
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 ...
dsmsk80's user avatar
  • 5,937
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 ...
zymhan's user avatar
  • 1,382
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 ...
Michael - sqlbot's user avatar
12 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 ...
John Hanley's user avatar
  • 4,904
12 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,...
dannosaur's user avatar
  • 993
12 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/...
Joe's user avatar
  • 589
11 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 ...
MLu's user avatar
  • 25.3k
11 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#...
mltsy's user avatar
  • 322
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 ...
Damian's user avatar
  • 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 ...
Tim's user avatar
  • 32.6k
10 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 ...
Tim's user avatar
  • 32.6k
8 votes

How to increase disk size in a stateful set

Here is a complete script to resize STS volumes based on other answers. I did not have to --cascade=false when deleting the STS because it would have been scaled to 0 before this step. Make sure the ...
hammady's user avatar
  • 221
8 votes
Accepted

Understanding EBSByteBalance% in AWS RDS gp3 volumes

Okay, I followed @Tim's advice and contacted AWS support. They clarified the following: Kindy be informed the metrics 'EBSIOBalance%' and 'EBSByteBalance%' are instance class metrics. Please note ...
MoWo's user avatar
  • 543
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 --...
ThomasReggi's user avatar
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 ...
Strepsils's user avatar
  • 5,115
7 votes
Accepted

Proper way to stop/reboot a Windows EC2 instance

You have the following options: Stop and Restart the instance from AWS commands This will safely stop and restart your EC2 instance. The instance will be in a "stopped" state until you restart it. ...
Matt Houser's user avatar
  • 10.2k
7 votes

how to get volume id attached to instance from AWS CLI

In my case, I needed to retrieve volume id on the instance I only had shell access to. I needed to communicate the volume id to the customer who setup the vm. In that case, if you don't have the aws ...
Pavel K.'s user avatar
  • 307
7 votes
Accepted

backup/restore ec2 instance before o.s. update

Yes, you have the gist of it. A couple of things to point out. If you can shut off the server before you take the snapshot you're guaranteed to get all the data that may be cached for writing. ...
kenlukas's user avatar
  • 3,196
7 votes
Accepted

How to see updates to EBS volume when attached to multiple instances?

You'll need a filesystem / app that's multi-attach aware. For example Oracle RAC can use such volumes, while normal filesystems like ext4 or xfs can't. They are designed to be mounted on a single host ...
MLu's user avatar
  • 25.3k
6 votes
Accepted

Can't delete AWS snapshot - refers to instance ID that doesn't exist

This snapshot is not associated with an EC2 instance. It is associated with an AMI image as mentioned in the error message. AMI images that are EBS-backed have associated EBS snapshots. These ...
Matt Houser's user avatar
  • 10.2k
6 votes
Accepted

Amazon EC2 instance won't boot: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

I created a new instance by going to Images > AMIs > Private Images > Selecting the image the instance was started from > Launch. I launched in exactly the same availability zone, not just US or ...
Chloe's user avatar
  • 1,174
6 votes

Amazon AWS - Export EBS Snapshot to External Storage

EBS snapshots are stored in S3, but they're managed by EBS and in buckets that you aren't able to access. While this sounds confusing, there is a good explanation. EBS snapshots are not stored ...
Michael - sqlbot's user avatar
6 votes
Accepted

Extending Linux file system after resizing the EBS volume

xvdn is part of a RAID0 array (md0), which is used by the filesystem. To extend the filesystem, you need to extend the md0 array but this requires you to extend all four component devices first. ...
shodanshok's user avatar
  • 50.3k

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