°Ô½Ã¹° 1,369°Ç
   
[KVM] CentOS 5.x¿¡¼­ qcow2 À̹ÌÁöÆÄÀÏ Á÷Á¢ ¸¶¿îÆ®/Á¢±Ù (with LVM)
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2011-06-27 (¿ù) 10:39 Á¶È¸ : 8521
±ÛÁÖ¼Ò :
                                
 
qcow2 À̹ÌÁö ³»ºÎ ÆÄƼ¼ÇÀ» LVMÀ¸·Î ÇßÀ»°æ¿ì¸¦ °¡Á¤ÇßÀ¸¸ç, LVMÀÌ ¾Æ´Ñ ÀϹÝÀûÀÎ ÆÄƼ¼ÇÀ» Àû¿ëÇßÀ» °æ¿ì¿¡´Â "kpart -a /dev/nbd0" ó¸®ÈÄ, /dev/mapper/ ¿¡ »ý¼ºµÇ °¢ ÆÄƼ¼ÇÀ» ¹Ù·Î ¸¶¿îÆ® ÇÏ¸é µÈ´Ù. ÇѸ¶µð·Î ´õ °£´ÜÇØÁø´Ù.


[pre-install]

# yum install qemu-common
# modprobe nbd


[mount]

# qemu-nbd -c /dev/nbd0 image.qcow2

[Çϱâ (1)¾È, (2)¾È Áß, ÅÃÀÏ]
(1)¾È

# kpart -a /dev/nbd0
 
# pvscan
 
# vgscan
 
# vgchange -a y VolGroup00

(2)¾È

# tune2fs -c 0 -i 0 /dev/nbd0
 

# mount /dev/VolGroup00/LogVol00 /mnt/lvm/


[umount]

# vgchange -a n VolGroup00
 
# karpt -d /dev/nbd0
 
# qemu-nbd -d /dev/nbd0
 

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

 



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