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)