[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

此回答是否有所帮助?

Send feedback
抱歉没能帮到您。欢迎您给出反馈以帮助我们改善本文档。