Skip to content

Instantly share code, notes, and snippets.

@phainamikaze
Created June 12, 2024 06:42
Show Gist options
  • Save phainamikaze/cf50892bd154fc1078eafc06b7d15773 to your computer and use it in GitHub Desktop.
Save phainamikaze/cf50892bd154fc1078eafc06b7d15773 to your computer and use it in GitHub Desktop.
sudo xfs_growfs /dev/nvme0n1p1
1
Below worked for me in AWS CENTOS 🦊 - Amazon Linux 2 AMIS( Karoo)
Step 1 : Update the EBS volume from AWS console of attached EC2
Step 2 : Login( SSH ) to EC2 instance in which the volume is attached
Step 3 : Follow the below commands and just replace the disk name. i.e xda or nvme0n1
Commands :
lsblk
sudo growpart /dev/nvme0n1 1
df -h
sudo xfs_growfs /dev/nvme0n1p1
Note : You have to use xfs_growfs instead of resize2fs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment