¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 1,358°Ç
   
KVM Disk Resize
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2015-09-23 (¼ö) 14:43 Á¶È¸ : 5550
±ÛÁÖ¼Ò :
                                
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¿¡¼­ ÇÏ´Â ÀÛ¾÷Àº °Ç³Ê¶ç¸é µË´Ï´Ù.

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.