Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

instance storage

kvm-img create ubuntu_12.04_server.img 80G

On the compute node:

root@compute1:/# ls -lh /var/lib/nova/instances/183ee6d0-a363-46c9-952b-2fe38d3960c1(instance_id)

total 7.0G

-rw-rw---- 1 libvirt-qemu kvm 1 Dec 17 17:17 console.log

-rw-r--r-- 1 libvirt-qemu kvm 7.0G Dec 19 16:51 disk

-rw-r--r-- 1 libvirt-qemu kvm 193K Dec 17 16:23 disk.local

-rw-r--r-- 1 libvirt-qemu kvm 193K Dec 17 16:23 disk.swap

-rw-r--r-- 1 nova nova 2.0K Dec 17 17:16 libvirt.xml

root@compute1:/# ls -lh /var/lib/nova/instances/_base

total 14G

-rw-r--r-- 1 nova kvm 79G Dec 19 16:34 5f9399500420f4a42ca62ae246660b311913c708

-rw-r--r-- 1 libvirt-qemu kvm 5.0G Dec 17 16:23 ephemeral_5_default

-rw-r--r-- 1 libvirt-qemu kvm 2.0G Dec 17 16:23 swap_2048

this the flavor Flavors-OpenStack-Dashboard 2013-12-19 16-54-22.png

I was confused by the directory '_base', especially the '5f9399500420f4a42ca62ae246660b311913c708'(79G).Is it the img file from glance? In the instance directory ' /var/lib/nova/instances/183ee6d0-a363-46c9-952b-2fe38d3960c1',is the 'disk' file the device /dev/vda based on in the vm and what about the 'disk.local' file?

how instance storagestorage work?

kvm-img create ubuntu_12.04_server.img 80G

On the compute node:

root@compute1:/# ls -lh /var/lib/nova/instances/183ee6d0-a363-46c9-952b-2fe38d3960c1(instance_id)

total 7.0G

-rw-rw---- 1 libvirt-qemu kvm 1 Dec 17 17:17 console.log

-rw-r--r-- 1 libvirt-qemu kvm 7.0G Dec 19 16:51 disk

-rw-r--r-- 1 libvirt-qemu kvm 193K Dec 17 16:23 disk.local

-rw-r--r-- 1 libvirt-qemu kvm 193K Dec 17 16:23 disk.swap

-rw-r--r-- 1 nova nova 2.0K Dec 17 17:16 libvirt.xml

root@compute1:/# ls -lh /var/lib/nova/instances/_base

total 14G

-rw-r--r-- 1 nova kvm 79G Dec 19 16:34 5f9399500420f4a42ca62ae246660b311913c708

-rw-r--r-- 1 libvirt-qemu kvm 5.0G Dec 17 16:23 ephemeral_5_default

-rw-r--r-- 1 libvirt-qemu kvm 2.0G Dec 17 16:23 swap_2048

this the flavor Flavors-OpenStack-Dashboard 2013-12-19 16-54-22.png

I was confused by the directory '_base', especially the '5f9399500420f4a42ca62ae246660b311913c708'(79G).Is it the img file from glance? In the instance directory ' /var/lib/nova/instances/183ee6d0-a363-46c9-952b-2fe38d3960c1',is the 'disk' file the device /dev/vda based on in the vm and what about the 'disk.local' file?

click to hide/show revision 3
No.3 Revision

how instance storage work?

kvm-img create ubuntu_12.04_server.img 80G

On the compute node:

root@compute1:/# ls -lh /var/lib/nova/instances/183ee6d0-a363-46c9-952b-2fe38d3960c1(instance_id)

/var/lib/nova/instances/183ee6d0-a363-46c9-952b-2fe38d3960c1(instance_id)** total 7.0G

7.0G -rw-rw---- 1 libvirt-qemu kvm 1 Dec 17 17:17 console.log

console.log -rw-r--r-- 1 libvirt-qemu kvm 7.0G Dec 19 16:51 disk

disk -rw-r--r-- 1 libvirt-qemu kvm 193K Dec 17 16:23 disk.local

disk.local -rw-r--r-- 1 libvirt-qemu kvm 193K Dec 17 16:23 disk.swap

disk.swap -rw-r--r-- 1 nova nova 2.0K Dec 17 17:16 libvirt.xml

libvirt.xml root@compute1:/# ls -lh /var/lib/nova/instances/_base

/var/lib/nova/instances/_base total 14G

14G -rw-r--r-- 1 nova kvm 79G Dec 19 16:34 5f9399500420f4a42ca62ae246660b311913c708

5f9399500420f4a42ca62ae246660b311913c708 -rw-r--r-- 1 libvirt-qemu kvm 5.0G Dec 17 16:23 ephemeral_5_default

ephemeral_5_default -rw-r--r-- 1 libvirt-qemu kvm 2.0G Dec 17 16:23 swap_2048

swap_2048

this the flavor flavor:

Flavors-OpenStack-Dashboard 2013-12-19 16-54-22.png

I was confused by the directory '_base', _base, especially the '5f9399500420f4a42ca62ae246660b311913c708'(79G).Is 5f9399500420f4a42ca62ae246660b311913c708 (79G).Is it the img file from glance? In the instance directory ' /var/lib/nova/instances/183ee6d0-a363-46c9-952b-2fe38d3960c1',is /var/lib/nova/instances/183ee6d0-a363-46c9-952b-2fe38d3960c1,is the 'disk' file the device /dev/vda based on in the vm and what about the 'disk.local' file?