OS Disk Resize - 기본제공 OS http://cloud.centos.org/centos/ : 8G
- Flavor Disk : 160G
- Disk Sector 값 주의
- 파티션 재할당
기존 이미지에서 인식된 파티션 삭제하고 시작점(섹터) 일치시키고....시스템에서 인식된 전체 디스크 마지막 섹터지점으로(default Enter) 지정
# partx /dev/vda
# resize2fs /dev/vda1
:: 리부팅전에 명령어를 실행해도 상관없으나 리부팅시 디스크 크기에 따라 체크하는 과정 ???
# reboot
부팅후 로그인
:: resize2fs - ext2/ext3/ext4 file system resizer
The resize2fs program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel supports on-line resizing.
(As of this writing, the Linux 2.6 kernel supports on-line resize for filesystems mounted using ext3 and ext4.).
# resize2fs /dev/vda1
# df -h
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 99G 605M 93G 1% /
tmpfs 499M 0 499M 0% /dev/shm
※ fdisk
Option -u[=<unit>] display units: 'cylinders' or 'sectors' (default)