1

The AWS documentation here says that the default block size is 4 KiB: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/volume_constraints.html#block_size

It says that 8 KiB, 16 KiB, 32 KiB, and 64 KiB are also supported... but I don't see anything in the documentation that says how to change it from the default, and I don't see any fields in the BlockDeviceMapping that allow you to configure this.

Is there some way to configure this?

Dasmowenator
  • 5,505
  • 5
  • 36
  • 50
  • I _think_ that configuration is controlled inside the OS. Similar to managing logical volumes. So, if you're attaching this to an EC2 instance, you might consider doing this in the user scripts. – sytech Jan 21 '23 at 02:57
  • Ok... so normally with linux you can change the disk block size by using the `blockdev --setbsz` command, but that requires the device to be unmounted when you change it. Can you even do that with an EBS volume? I thought you couldn't unmount/mount EBS volumes on a running instance? – Dasmowenator Jan 21 '23 at 03:31
  • That documentation you linked specifically says: "non-default block sizes that can be specified during formatting" – Mark B Jan 21 '23 at 12:10
  • Ok... but how? Can someone give an example? – Dasmowenator Jan 21 '23 at 20:10
  • How are you creating the EC2 instance? – Albert Marrero Jan 25 '23 at 07:05
  • EC2 AutoScaling group – Dasmowenator Jan 26 '23 at 20:39

0 Answers0