[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

Câu trả lời này có giúp ích cho bạn không? Yes No

Send feedback
Rất tiếc là chúng tôi không giúp được nhiều. Hãy giúp chúng tôi cải thiện bài viết này bằng phản hồi của bạn.