AWS Enlarge the EC2 Root Disk Space
AWSEnlargetheEC2RootDiskSpace
GotoECinAWSConsole,selecttheEC2instancewehave,intheDetailDescription
WecanseetheRootDevice:/dev/sda1ifweclickonthat,itwillopentheVolumeMenu
SelecttheVolume—>ModifyVolume—>Changethenumbertoabiggernumber
Restartourmachine,yeah,wewillhavebiggerdiskspace
df-lh
FilesystemSizeUsedAvailUse%Mountedon
udev2.0G02.0G0%/dev
tmpfs395M780K394M1%/run
/dev/xvda130G5.7G24G20%/
tmpfs2.0G02.0G0%/dev/shm
tmpfs5.0M05.0M0%/run/lock
tmpfs2.0G02.0G0%/sys/fs/cgroup
/dev/loop090M90M0100%/snap/core/6673
/dev/loop118M18M0100%/snap/amazon-ssm-agent/1068
/dev/loop391M91M0100%/snap/core/6350
/dev/loop218M18M0100%/snap/amazon-ssm-agent/930
/dev/loop492M92M0100%/snap/core/6531
tmpfs395M0395M0%/run/user/1000
Itincreasefrom8Gto30G.
References:
https://amimoto-ami.com/create-snapshot-restore/