¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 715°Ç
   
flavor swap, Ephemeral
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2015-11-17 (È­) 13:17 Á¶È¸ : 3845
                                
Host   
:: OS Disk, SWAP Disk
Ãß°¡ µð½ºÅ© swap
.............. 
-drive file=/var/lib/nova/instances/xxxxxxxxxx/disk.swap,if=none,id=drive-virtio-disk1,format=qcow2,cache=none 
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 

root@compute1:/var/lib/nova/instances/xxxxxxxxxx# ls -al
ÇÕ°è 9184
drwxr-xr-x 2 nova         nova    4096 11¿ù 17 14:21 .
drwxr-xr-x 6 nova         nova    4096 11¿ù 17 14:21 ..
-rw-rw---- 1 libvirt-qemu kvm        1 11¿ù 17 14:21 console.log
-rw-r--r-- 1 libvirt-qemu kvm  9240576 11¿ù 17 14:29 disk
-rw-r--r-- 1 nova         nova     162 11¿ù 17 14:21 disk.info
-rw-r--r-- 1 libvirt-qemu kvm   197120 11¿ù 17 14:21 disk.swap
-rw-r--r-- 1 nova         nova    2790 11¿ù 17 14:21 libvirt.xml

# qemu-img info disk.info
image: disk.info     :: OS µð½ºÅ© 
file format: raw
virtual size: 512 (512 bytes)
disk size: 4.0K

# qemu-img info disk.swap 
image: disk.swap    :: swap µð½ºÅ© 
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 196K
cluster_size: 65536
backing file: /var/lib/nova/instances/_base/swap_1024
Format specific information:
    compat: 1.1
    lazy refcounts: false
    refcount bits: 16
    corrupt: false

# qemu-img info swap_1024 
image: swap_1024
file format: raw
virtual size: 1.0G (1073741824 bytes)
disk size: 4.0K


VM
# free -m
             total       used       free     shared    buffers     cached
Mem:          1877        103       1773          0          8         38
-/+ buffers/cache:         56       1820 
Swap:            0          0          0 

# fdisk -l
Disk /dev/vda: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004d6c5

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *           1        3264    26213376   83  Linux

Disk /dev/vdb: 1073 MB, 1073741824 bytes
16 heads, 63 sectors/track, 2080 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000




Host   
:: OS Disk, Ephemeral Disk ,SWAP Disk
 Ephemeral Disk - Cinder ÇüÅ·ΠÃß°¡µð½ºÅ©¸¦ ºÙÀÎ°Ô ¾Æ´Ñ ·ÎÄõð½ºÅ©¸¦ drive, device Ãß°¡¹æ½Ä 
.............. 
-drive file=/var/lib/nova/instances/xxxxxxxxxx/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none 
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 
-drive file=/var/lib/nova/instances/xxxxxxxxxx/disk.eph0,if=none,id=drive-virtio-disk1,format=qcow2,cache=none 
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 
-drive file=/var/lib/nova/instances/xxxxxxxxxx/disk.swap,if=none,id=drive-virtio-disk2,format=qcow2,cache=none 
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk2,id=virtio-disk2 

root@compute10:/var/lib/nova/instances/xxxxxxxxxx# ls -al
ÇÕ°è 9380
drwxr-xr-x 2 nova         nova    4096 11¿ù 17 14:45 .
drwxr-xr-x 7 nova         nova    4096 11¿ù 17 14:45 ..
-rw-rw---- 1 libvirt-qemu kvm        1 11¿ù 17 14:45 console.log
-rw-r--r-- 1 libvirt-qemu kvm  9240576 11¿ù 17 14:54 disk
-rw-r--r-- 1 libvirt-qemu kvm   197120 11¿ù 17 14:45 disk.eph0
-rw-r--r-- 1 nova         nova     245 11¿ù 17 14:45 disk.info
-rw-r--r-- 1 libvirt-qemu kvm   197120 11¿ù 17 14:45 disk.swap
-rw-r--r-- 1 nova         nova    3027 11¿ù 17 14:45 libvirt.xml

# qemu-img info disk.eph0 
image: disk.eph0
file format: qcow2
virtual size: 10G (10737418240 bytes)
disk size: 196K
cluster_size: 65536
backing file: /var/lib/nova/instances/_base/ephemeral_10_0706d66
Format specific information:
    compat: 1.1
    lazy refcounts: false
    refcount bits: 16
    corrupt: false

# qemu-img info /var/lib/nova/instances/_base/ephemeral_10_0706d66
image: /var/lib/nova/instances/_base/ephemeral_10_0706d66
file format: raw
virtual size: 10G (10737418240 bytes)
disk size: 10M


VM
# fdisk -l

Disk /dev/vda: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004d6c5

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *           1        3264    26213376   83  Linux

Disk /dev/vdb: 10.7 GB, 10737418240 bytes
16 heads, 63 sectors/track, 20805 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/vdc: 1073 MB, 1073741824 bytes
16 heads, 63 sectors/track, 2080 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


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

 



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