Scenario: You have a running EC2 Linux instance, and need more disk space added to an EBS volume. You don’t want to shut the instance down. How do you do this?
At Hurricane Labs, we manage a number of Splunk environments running within Amazon Web Services (AWS), as well as extensively use it internally for our operations. We’ve needed to perform this process several times for customers and ourselves, and figured that the best place to document the process would be here, so that it benefits more than just us.
The screencast will walk you through the process, but this is a simple process when using logical volume manager (LVM).
1 – First, confirm that you are using LVM and identify the drive you are looking to expand. This can be done with the pvs and lvs commands.