KVMÀ» ÀÌ¿ëÇØ °¡»óȸ¦ ±¸ÇöÇÏ¿´À» °æ¿ì µð½ºÅ© »çÀÌÁî È®ÀåÇÏ´Â ¹æ¹ý
:: º»¹®¼´Â / ÆÄƼ¼Ç 1°³¸¸ »ç¿ëÇÏ¿´À» °æ¿ìÀÌ¸ç ¿©·¯°³·Î ³ª´°æ¿ì °¢ ÆÄƼ¼Ç¸¶´ÙÀÇ ¼½ÅÍ°ªÀ» °è»êÇØÁ༠³Ö¾î¾ß ÇÕ´Ï´Ù.
VM
=>> -l ¿É¼ÇÀ¸·Î º¸¿©Áö´Â °ªÀº cylinders
:: µð½ºÅ© »çÀÌÁî º¯È¯À» À§ÇØ ¼Ë´Ù¿î
# shutdown
HOST
:: ±âÁ¸ 100G µð½ºÅ©¸¦ 60G È®Àå
# qemu-img resize ${À̹ÌÁö¸í} +60G Image resized.
VM
:: HOST¿¡¼ ´Ã·ÁÁØ µð½ºÅ© »çÀÌÁî°¡ È®ÀåÀº µÇ¾úÀ¸³ª ½ÇÁ¦ VM¿¡ Àû¿ëÀüÀÌ´Ù.
fdisk ȤÀº parted ¸í·É¾î¸¦ ÅëÇØ ÆÄƼ¼Ç È®Àå (Sector °ª ÁÖÀÇ / cylinders ¾Æ´Ô)
¡Ø fdisk -u[=unit] When listing partition tables, show sizes in 'sectors' or in 'cylinders'. The default is to show sizes in sectors. For backward compatibility, it is possible to use the option without the <units> argument -- then the default is used. Note that the optional <unit> argument cannot be separated from the -u option by a space, the correct form is for example '-u=cylinders'.
|
# reboot
# resize2fs /dev/sda1
¡Ø OpenStack ¿¡¼´Â Flavor ¸¦ ¼±ÅÃÇÏ°Ô µÇ¸é µð½ºÅ©°¡ ÀÚµ¿À¸·Î ¸®»çÀÌÁî µÇ±â¿¡ HOST¿¡¼ ÇÏ´Â ÀÛ¾÷Àº °Ç³Ê¶ç¸é µË´Ï´Ù.