Re: [Openstack] Understanding flavors of VM

2012-12-05 Thread Marco CONSONNI
Hello Ahmed, good investigation: there's something I knew and something that I didn't. As far as I understood, _base directory should be a cache for images, NOT a directory used for instances. I mean, compute nodes keep an image cache for preventing the download from glance each and every time

Re: [Openstack] Understanding flavors of VM

2012-12-05 Thread Vishvananda Ishaya
On Dec 4, 2012, at 9:35 AM, Ahmed Al-Mehdi ahmedalme...@gmail.com 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:

Re: [Openstack] Understanding flavors of VM

2012-12-05 Thread Michael Still
On 12/05/2012 06:59 PM, Marco CONSONNI wrote: To be honest it seems like I missed something because, from your investigation, the storage is kept under _base. Strange. I didn't know that. Hi! The following description is libvirt specific. Bearing in mind that this code is a moving target and

Re: [Openstack] Understanding flavors of VM

2012-12-05 Thread Lei Zhang
Hi Michael, Could you send us the doc link? Thanks a lot. On Thu, Dec 6, 2012 at 6:47 AM, Michael Still michael.st...@canonical.comwrote: On 12/05/2012 06:59 PM, Marco CONSONNI wrote: To be honest it seems like I missed something because, from your investigation, the storage is kept

Re: [Openstack] Understanding flavors of VM

2012-12-04 Thread Marco CONSONNI
Hello, When you use a flavor with an ephemeral disk size different from zero, the instance is booted with an extra virtual disk whose size is indicated by the ephemeral value (in GB). Using cirros image, try a flavor with ephemeral disk size different from zero (you need to create one yourself

Re: [Openstack] Understanding flavors of VM

2012-12-04 Thread Ahmed Al-Mehdi
Hi Marco, Thank you very much for the info, much much clearer. I was looking for the boot disk using ls -l /dev/sd*, but the existence of /dev/vda1 should have given me a clue. A few follow up questions: - I am assuming the space for the VM boot disk is allocated from the local hard disk of

Re: [Openstack] Understanding flavors of VM

2012-12-04 Thread Marco CONSONNI
Hi Ahmed, very technical questions. I'm not sure my answers are right: I'm just an user... In order to answer, I've just look at what happens and made some guess. Feel free to verify yourself. I'm assuming you are using KVM as I'm doing. The space for the boot disk and the ephemeral disk

Re: [Openstack] Understanding flavors of VM

2012-12-04 Thread Marco CONSONNI
Sorry, the directory you need to check is /var/lib/nova/instances. MCo. On Tue, Dec 4, 2012 at 5:54 PM, Marco CONSONNI mcocm...@gmail.com wrote: Hi Ahmed, very technical questions. I'm not sure my answers are right: I'm just an user... In order to answer, I've just look at what happens

Re: [Openstack] Understanding flavors of VM

2012-12-04 Thread Ahmed Al-Mehdi
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.

[Openstack] Understanding flavors of VM

2012-12-03 Thread Ahmed Al-Mehdi
Hello, I instantiated a VM using the cirros image, using the pre-defined m1.small (1 VCPU, 2 GB Ram, 20G boot disk, 0 Ephemeral disk). I then logged into the console of the VM to view some system stats. The num of CPU and memory makes sense, but I am a bit confused on the storage aspect. I see