Skip to content

How to correctly expand EBS storage on EC2 using LVM without requiring a reboot?

0

I am using an Amazon EC2 instance running Linux with EBS volumes configured under LVM. I want to confirm the correct AWS-recommended procedure to expand the EBS volume without rebooting the instance.

  1. For EBS volume expansion, is it correct that when using LVM, no reboot is required as long as the filesystem supports online resizing? Are there any other AWS-recommended approaches that avoid downtime or reboot during EBS volume expansion?
  2. Also, what is the correct and AWS-recommended process to switch from alias-based mounting to UUID-based mounting for EBS volumes?

Thanks.

1 Answer
0
Accepted Answer

Hello.

Expanding an LVM volume does not require a reboot of the EC2 instance.
After adding the EBS volume, the expansion is performed by connecting it to the OS and running a command to have the file system recognize it.
https://repost.aws/knowledge-center/ebs-extend-volume-lvm-partitions

Also, what is the correct and AWS-recommended process to switch from alias-based mounting to UUID-based mounting for EBS volumes?

I couldn't find any AWS documentation on the above, but I think there will be no problem if you mount it by specifying the UUID in "/etc/fstab" as usual.

EXPERT
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.