[EC2] How do I extend a Linux file system after increasing an EBS volume on an EC2 instance?

Print
  1. Snapshot Backup 

    1. Go to AWS Console > EC2 > Elastic Block Store > Volumes > Select Volume > Actions > Create Snapshot

  2. Volume Expansion 

    1. Go to AWS Console > EC2 > Elastic Block Store > Volumes > Select Volume > Actions > Modify Volume > Change Size 

  3. File System Expansion 

    1. Before Expansion - Check Status 

      # df -hT
      # lsblk
    2. Expand the File System 

      # sudo xfs_growfs -d /파일시스템
    3. After Expansion - Verify Changes 

      # df -hT
      # lsblk

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.