← Back to team overview

openstack team mailing list archive

Re: Understanding "flavors" of VM

 

On Dec 4, 2012, at 9:35 AM, Ahmed Al-Mehdi <ahmedalmehdi@xxxxxxxxx> wrote:

> Hi Marco,
> 
> This is really good stuff, thank you very much for helping out.  I am creating some instances to test out how/where the different storage related elements are created.
> 
> I created two VM instance:
> 
> Instance 1 : 20GB boot disk
> Instance 2 : 10GB boot disk, 2 GB Ephemeral disk.
> 
> root@bodega:/var/lib/nova# ls -lh -R instances
> instances:
> total 12K
> drwxrwxr-x 2 nova nova 4.0K Dec  4 09:01 _base
> drwxrwxr-x 2 nova nova 4.0K Nov 28 11:44 instance-00000001
> drwxrwxr-x 2 nova nova 4.0K Dec  4 09:01 instance-00000002
> 
> instances/_base:
> total 240M
> -rw-r--r-- 1 nova         nova  40M Dec  4 08:51 8af61c9e86557f7244c6e5a2c45e1177c336bd1f
> -rw-r--r-- 1 libvirt-qemu kvm   10G Dec  4 09:01 8af61c9e86557f7244c6e5a2c45e1177c336bd1f_10
> -rw-r--r-- 1 nova         kvm   20G Dec  4 08:51 8af61c9e86557f7244c6e5a2c45e1177c336bd1f_20
> -rw-rw-r-- 1 nova         nova 9.4M Nov 28 11:44 8af61c9e86557f7244c6e5a2c45e1177c336bd1f.part
> -rw-r--r-- 1 nova         nova 2.0G Dec  4 09:01 ephemeral_0_2_None     <======

> -rw-r--r-- 1 libvirt-qemu kvm  2.0G Dec  4 09:01 ephemeral_0_2_None_2    <=====

There isn't really a need for two copies here. This is a bug I will get someone to investigate.

> 
> instances/instance-00000001:
> total 1.9M
> -rw-rw---- 1 nova         kvm   26K Nov 28 11:45 console.log
> -rw-r--r-- 1 libvirt-qemu kvm  1.9M Dec  4 07:01 disk
> -rw-rw-r-- 1 nova         nova 1.4K Nov 28 11:44 libvirt.xml
> 
> instances/instance-00000002:
> total 1.8M
> -rw-rw---- 1 libvirt-qemu kvm   27K Dec  4 09:02 console.log
> -rw-r--r-- 1 libvirt-qemu kvm  1.6M Dec  4 09:03 disk
> -rw-r--r-- 1 libvirt-qemu kvm  193K Dec  4 09:01 disk.local

The disk.local is the ephemeral disk, using ephemeral_0_2_None_2 as a backing file.

Vish

References