Hi Ahmed,<br><br>very technical questions.<br>I'm not sure my answers are right: I'm just an user...<br><br>In order to answer, I've just look at what happens and made some guess.<br>Feel free to verify yourself.<br>

<br>I'm assuming you are using KVM as I'm doing.<br><br>The space for the boot disk and the ephemeral disk should be represented as files in the physical node where the VM is hosted.<br>In order to check that, go to directory  /var/lib/nova on the node where the VM is running.<br>

As far as I understand, this is where nova (and KVM) keep the running instances' information.<br>You should see a directory for each running instance named as instance-xxxxxxx, where xxxxxxx uniquely identifies an instance (there are several ways for uniquely identify an instance, this is one of many... but this is a different story).<br>

Go into one of these and check what you find.<br><br>For what concerns nova-scheduler, I don't know what exactly does. I'm afraid that you need to test and see what happens.<br><br>A nova command can help for inspecting what a node is using, in terms of resources.<br>

<br>At the controller node (or any other node where you installed nova client), type the following command substituting OpenStack02 with the name of the node you want to inspect:<br><br>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><b><span style="font-size:8.0pt;line-height:115%;font-family:Courier">$ nova host-describe OpenStack02</span></b></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:8.0pt;line-height:115%;font-family:Courier">+-------------+----------------------------------+-----+-----------+---------+</span></p>



<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:8.0pt;line-height:115%;font-family:Courier">| HOST<span>        </span>| PROJECT<span>                          </span>| cpu | memory_mb |
disk_gb |</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:8.0pt;line-height:115%;font-family:Courier">+-------------+----------------------------------+-----+-----------+---------+</span></p>



<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:8.0pt;line-height:115%;font-family:Courier">| OpenStack02 | (total)<span>                          </span>| 16<span>  </span>| 24101<span>    
</span>| 90<span>      </span>|</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:8.0pt;line-height:115%;font-family:Courier">| OpenStack02 | (used_max)<span>                       </span>| 13<span>  </span>| 7680<span>     
</span>| 0<span>       </span>|</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:8.0pt;line-height:115%;font-family:Courier">| OpenStack02 | (used_now)<span>                       </span>| 13<span>  </span>| 8192<span>     
</span>| 0<span>       </span>|</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:8.0pt;line-height:115%;font-family:Courier">| OpenStack02 | 456ec9d355ae4feebe48a2e79e703225 | 4<span>   </span>| 2048<span>     
</span>| 0<span>       </span>|</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:8.0pt;line-height:115%;font-family:Courier">| OpenStack02 | fb434e07b687494bb669fde23f497970 | 9<span>   </span>| 5632<span>     
</span>| 0<span>       </span>|</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:8.0pt;line-height:115%;font-family:Courier">+-------------+----------------------------------+-----+-----------+---------+</span></p>



<br>It return a brief report of the resources currently used by a node.<br><br>To my knowledge,  the dashboard does not provide a similar page, at the time being.<br><br>Hope it helps,<br>Marco.<br><br><br><br>On Tue, Dec 4, 2012 at 4:40 PM, Ahmed Al-Mehdi <span dir="ltr"><<a href="mailto:ahmedalmehdi@gmail.com" target="_blank">ahmedalmehdi@gmail.com</a>></span> wrote:<br>

<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi Marco,</div><div> </div><div>Thank you very much for the info, much much clearer.  I was looking for the boot disk using "ls -l /<span>dev</span>/<span>sd</span>*", but the existence of /<span>dev</span>/vda1 should have given me a clue.</div>


<div> </div><div>A few follow up questions:</div><div> </div><div>- I am assuming the space for the <span>VM</span> boot disk is allocated from the local hard disk of the physical host on which the <span>VM</span> is instantiated, right?</div>


<div>- If Yes</div><div>   - How is the boot disk represented on the physical host.  Is it a file on the local <span>filesystem</span> that represent the <span>VM</span> boot disk?</div><div>   - I am guessing there is some logic in nova-scheduler that checs first if there is enough disk apace on the physical host for the <span>VM</span> (along with RAM, <span>VCPUs</span>) before launching the <span>VM</span> on the host?</div>


<div>   - Is there any way to find out from Horizon how much disk space is available on a (or each) physical host for VM boot disk allocation?</div><div> </div><div>Thank you,</div><div>Ahmed.</div><div><div>
<div> </div><div> </div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 4, 2012 at 12:07 AM, Marco CONSONNI <span dir="ltr"><<a href="mailto:mcocmo62@gmail.com" target="_blank">mcocmo62@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<p class="MsoNormal">Hello,</p><p class="MsoNormal"><br></p><p class="MsoNormal">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).</p><p class="MsoNormal">Using cirros image, try a flavor with ephemeral disk size different from zero (you need to create one yourself because the "standard" flavors have ephemeral size equal to 0), then log into the just booted instance and type:</p>



<p class="MsoNormal"><br></p><p class="MsoNormal"></p><p class="MsoNormal">

</p><p style="margin-bottom:0pt" class="MsoNormal"><b><span style="line-height:115%;font-family:Courier;font-size:9pt">$ ls /dev/vd*</span></b></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">/dev/vda<span>   </span>/dev/vda1<span> 
</span>/dev/vdb</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Disk /dev/vdb is a (virtual) disk, automatically created at
boot time, corresponding to the ephemeral disk space indicated by the flavor . Please note that /dev/vda, mounted as /dev/vda1, is the
boot disk, always created when you boot an instance.</p>

<p class="MsoNormal">Verify the size of the available disks; more specifically,
verify /dev/vdb:</p>

<p style="margin-bottom:0pt" class="MsoNormal"><b><span style="line-height:115%;font-family:Courier;font-size:9pt"><br></span></b></p><p style="margin-bottom:0pt" class="MsoNormal">
<b><span style="line-height:115%;font-family:Courier;font-size:9pt">$ sudo fdisk -l</span></b></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">Disk /dev/vda:
1073 MB, 1073741824 bytes</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">255 heads, 63 sectors/track,
130 cylinders, total 2097152 sectors</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">Units = sectors of
1 * 512 = 512 bytes</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">Sector size
(logical/physical): 512 bytes / 512 bytes</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">I/O size
(minimum/optimal): 512 bytes / 512 bytes</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">Disk identifier:
0x00000000</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt"> </span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt"><span>   </span>Device Boot<span>      </span>Start<span>         </span>End<span>      </span>Blocks<span>  
</span>Id<span>  </span>System</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">/dev/vda1<span>   </span>*<span>      
</span>16065<span>     </span>2088449<span>     </span>1036192+<span> 
</span>83<span>  </span>Linux</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt"> </span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">Disk /dev/vdb:
1073 MB, 1073741824 bytes</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">16 heads, 63
sectors/track, 2080 cylinders, total 2097152 sectors</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">Units = sectors of
1 * 512 = 512 bytes</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">Sector size
(logical/physical): 512 bytes / 512 bytes</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">I/O size
(minimum/optimal): 512 bytes / 512 bytes</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">Disk identifier:
0x00000000</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt"> </span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt">Disk /dev/vdb
doesn't contain a valid partition table</span></p>

<p style="margin-bottom:0pt" class="MsoNormal"><span style="line-height:115%;font-family:Courier;font-size:9pt"> </span></p>

<p class="MsoNormal">Please note that /dev/vdb is made available as raw device,
meaning that you need to partition and format it before using.</p><p class="MsoNormal">You can find instructions on how to do that here <a href="http://docs.openstack.org/folsom/openstack-compute/admin/content/configure-nova-volume.html" target="_blank">http://docs.openstack.org/folsom/openstack-compute/admin/content/configure-nova-volume.html</a> (search for command fdisk)<br>



</p><p class="MsoNormal">Also note that this disk, being ephemeral, disappears when you terminate the VM. If you want to keep the data you produce with a VM that is destined to be terminated, you need to use Volumes that you explicitly create and attach using the services implemented by Cinder (former nova-volume).<br>



</p><p class="MsoNormal"><br></p>

<p></p><p class="MsoNormal">For what concerns the size you define for the boot disk, try and lunch two instances: one with flavor m1.tiny the other with m1.small:</p><p class="MsoNormal"><br></p><p class="MsoNormal">-- tiny --</p>



<p class="MsoNormal"><b>$ sudo fdisk -l<br></b><br>Disk /dev/vda: 41 MB, 41126400 bytes<br>255 heads, 63 sectors/track, 5 cylinders, total 80325 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>



I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disk identifier: 0x00000000<br><br>   Device Boot      Start         End      Blocks   Id  System<br>/dev/vda1   *       16065       80324       32130   83  Linux<br><br>



</p><br><p class="MsoNormal">-- small --</p><p class="MsoNormal"><br></p><b>$ sudo fdisk -l<br></b><br>Disk /dev/vda: 21.5 GB, 21474836480 bytes<br>255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>



Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disk identifier: 0x00000000<br><br>   Device Boot      Start         End      Blocks   Id  System<br>/dev/vda1   *       16065    41929649    20956792+  83  Linux<br>



<br><p class="MsoNormal"><br></p>

As you notice, the size indicated by the flavor has effects on the size of the boot disk.<br><br><br>Hope it helps,<br>Marco.<div><div><br><br><br><br>On Mon, Dec 3, 2012 at 7:03 PM, Ahmed Al-Mehdi <span dir="ltr"><<a href="mailto:ahmedalmehdi@gmail.com" target="_blank">ahmedalmehdi@gmail.com</a>></span> wrote:<br>



</div></div><div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><div>
Hello,<div><br></div><div>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 the output of "df -h " as following:</div>




<div><br></div><div>$ df -h</div><div>Filesystem              Size         Used            Available      Use%     Mounted on</div><div>/dev                  1001.1M              0              1001.1M         0%         /dev</div>




<div>/dev/vda1             23.2M        12.9M                   9.1M       59%         /</div><div>tmpfs                1004.1M              0              1004.1M         0%         /dev/shm</div><div>tmpfs                  200.0K        20.0K                180.0K       10%         /run</div>




<div><br></div><div><br></div><div>What is the difference between Boot disk and Ephemeral disk?</div><div><br></div><div>How can I correlate the 20G boot disk to the output of "df -h".</div><div><br></div><div>



<br>
</div><div>Regards,</div><div>Ahmed.</div><div><br></div>
<br></div></div>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br>