# parted -l
Model: ATA CT500MX500SSD1 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary xfs boot
2 525MB 9036MB 8510MB primary
3 9036MB 256GB 247GB primary xfs
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 500M 0 part /boot
├─sda2 8:2 0 7.9G 0 part
└─sda3 8:3 0 230.1G 0 part /
500GB SSD 디스크지만 256GB 디스크 정도로 사용 중임
yum install -y cloud-utils-growpart
growpart /dev/sda 3
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 500M 0 part /boot
├─sda2 8:2 0 7.9G 0 part
└─sda3 8:3 0 457.4G 0 part /
xfs_growfs /dev/sda3
# df -TH
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda3 xfs 491G 53G 438G 11% /
devtmpfs devtmpfs 4.1G 0 4.1G 0% /dev
tmpfs tmpfs 4.1G 4.1k 4.1G 1% /dev/shm
tmpfs tmpfs 4.1G 9.2M 4.1G 1% /run
tmpfs tmpfs 4.1G 0 4.1G 0% /sys/fs/cgroup
/dev/sda1 xfs 521M 200M 322M 39% /boot
tmpfs tmpfs 820M 0 820M 0% /run/user/1006
mount /dev/장치명+파티션번호 /디렉터리명
xfs_info /dev/장치명+파티션번호
growpart /dev/장치명+파티션번호
xfs_growfs /dev/장치명+파티션번호
mount /dev/장치명+파티션번호 /디렉터리명
growpart /dev/장치명+파티션번호
resize2fs /dev/장치명+파티션번호
어떤 패키지를 받을 지 고민된다면 아래 명령어로 입력해볼 수 있음
yum install -y cloud-utils-growpart gdisk