AWS EBS volume 크기 조정
2020. 10. 28. 15:38ㆍAWS/Amazon EC2
728x90
SMALL
- 개요
EBS volume 크기를 조정하는 방법에 대해 정리했다.
- 방법
# df -h | grep xvda1
/dev/xvda1 8.0G 5.8G 2.3G 73% /
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 8G 0 part /
# growpart /dev/xvda 1
CHANGED: partition=1 start=4096 old: size=16773087 end=16777183 new: size=41938911,end=41943007
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 20G 0 part /
# xfs_growfs -d /
meta-data=/dev/xvda1 isize=512 agcount=4, agsize=524159 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1 spinodes=0
data = bsize=4096 blocks=2096635, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 2096635 to 5242363
# df -h | grep xvda1
/dev/xvda1 20G 5.8G 15G 29% /
- 참고
https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/requesting-ebs-volume-modifications.html#modify-ebs-volume
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html
728x90
LIST
'AWS > Amazon EC2' 카테고리의 다른 글
AWS EBS 확장하는 법 (0) | 2022.11.07 |
---|---|
EC2 추가 disk mount (0) | 2022.10.11 |
bastion host를 이용한 SSH tunneling (0) | 2022.09.21 |
특정 리전에 특정 인스턴스 가용한 영역 확인 (0) | 2022.08.22 |
CentOS on Amazon EC2에서 chrony_not_working 에러 (0) | 2020.10.30 |