**
Modify Volume
**
EC2 > Volumes > Actions > Select Volume > Modify Volume
It can be changed while EC2 Instance is running.
・Restriction
Once changed, it cannot be changed for 6 hours.
Command
df -h
lsblk
sudo growpart /dev/xvda 1
lsblk
sudo xfs_growfs /dev/xvda1 For Linux 1 AMI: resize2fs /dev/xvda1
df -h
NVME
sudo growpart /dev/nvme0n1 1
xfs_growfs /dev/nvme0n1p1
Ref https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html
Top comments (0)