Hi,<div><br></div><div>What I meant it that an external script could monitor each physical host, get the free storage and, if it is lower that a threshold (e.g. 10 or 20 GB) execute a 'onehost disable hostname'.</div>

<div><br></div><div>This way you will prevent the scheduler from sending VMs to that host from that moment onwards.</div><div><br></div><div>Regards</div><div>--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div>

<span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>

<br>
<br><br><div class="gmail_quote">2012/3/14 张光鹏 <span dir="ltr"><<a href="mailto:zhanggp@neusoft.com">zhanggp@neusoft.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<u></u>





<div style="MARGIN:10px">
<div>ok,thanks.</div>
<div>But i don't know which host will be scheduled if i want to gather the 
storage . I got the info from opennebula ,when i get the hostid ,may be it's too 
late.</div>
<div> </div>
<hr style="WIDTH:210px;min-height:1px" align="left" color="#b5c4df" size="1">

<div><span>张光鹏</span></div>
<div> </div>
<div style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0cm;PADDING-LEFT:0cm;PADDING-RIGHT:0cm;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<div style="padding-right:8px;padding-left:8px;padding-top:8px;font-size:12px;background:#efefef;padding-bottom:8px">
<div><b>发件人:</b> <a href="mailto:cmartin@opennebula.org" target="_blank">Carlos Martín 
Sánchez</a></div>
<div><b>发送时间:</b> <a href="tel:2012-03-13%C2%A018" value="+12012031318" target="_blank">2012-03-13 18</a>:15</div>
<div><b>收件人:</b> <a href="mailto:zhanggp@neusoft.com" target="_blank">张光鹏</a></div>
<div><b>抄送:</b> <a href="mailto:users@lists.opennebula.org" target="_blank">users</a></div>
<div><b>主题:</b> Re: [one-users] create vm error : No space left on 
device</div></div></div><div><div class="h5">
<div>
<div>Hi, 
<div><br></div>
<div>You are right, the OpenNebula scheduler does not check the available 
storage.</div>
<div>But the scheduler ignores disables hosts, so you can set up a cron job to 
gather the storage left in each host and execute 'onehost disable' or 
'enable'.</div>
<div><br></div>
<div>Regards.</div>
<div>--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The 
Open-source Solution for Data Center Virtualization 
<div><span style="BORDER-COLLAPSE:collapse;FONT-FAMILY:arial,sans-serif;COLOR:rgb(136,136,136);FONT-SIZE:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | 
<a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="BORDER-COLLAPSE:collapse;FONT-FAMILY:arial,sans-serif;COLOR:rgb(136,136,136);FONT-SIZE:13px"><a style="COLOR:rgb(42,93,176)" href="mailto:cmartin@opennebula.org" target="_blank"></a></span></div>

<br><br><br>
<div class="gmail_quote">2012/3/9 张光鹏 <span dir="ltr"><<a href="mailto:zhanggp@neusoft.com" target="_blank">zhanggp@neusoft.com</a>></span><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><u></u>
  <div style="MARGIN:10px">
  <div>Hi,</div>
  <div>I created a vm on opennebula2.2,but failed .Then i checked the vm.log, 
  and i found the reason:</div>
  <div style="TEXT-INDENT:2em">scp: /one_images/277/images/disk.0: No space left on device 
  </div>
  <div>So,i want to know before opennebula scheduling host ,will it check 
  the disk space whether meet the virtual machine .</div>
  <div>In my opinion , if the host space is not enough to assign , it shouldnot 
  be scheduled.</div>
  <div>Please masters pointing me .</div>
  <hr style="MIN-HEIGHT:1px;WIDTH:210px" align="left" color="#b5c4df" size="1">

  <div><span>
  <div>
  <div>张光鹏</div>
  <div>tel:  13718913184</div>
  <div>mail: <a href="mailto:zhanggp@neusoft.com" target="_blank">zhanggp@neusoft.com</a></div>
  <div>移动互联网事业部</div>
  <div><img src="cid:_Foxmail.0@DAAE2700-F771-4F7D-8FA3-104F04B731EB"></div>
  <div>东软集团股份有限公司</div>
  <div><a href="http://www.neusoft.com" target="_blank">http://www.neusoft.com</a></div>
  <div> </div></div></span></div><font face="monospace">---------------------------------------------------------------------------------------------------<br>Confidentiality 
  Notice: The information contained in this e-mail and any accompanying 
  attachment(s) <br>is intended only for the use of the intended recipient and 
  may be confidential and/or privileged of <br>Neusoft Corporation, its 
  subsidiaries and/or its affiliates. If any reader of this communication is 
  <br>not the intended recipient, unauthorized use, forwarding, printing,  
  storing, disclosure or copying <br>is strictly prohibited, and may be 
  unlawful.If you have received this communication in error,please 
  <br>immediately notify the sender by return e-mail, and delete the original 
  message and all copies from <br>your system. Thank you. 
  <br>---------------------------------------------------------------------------------------------------</font></div><br>_______________________________________________<br>Users 
  mailing list<br><a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>

<br></blockquote></div><br></div></div></div><font face="monospace">---------------------------------------------------------------------------------------------------<br>
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) <br>
is intended only for the use of the intended recipient and may be confidential and/or privileged of <br>
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is <br>
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying <br>
is strictly prohibited, and may be unlawful.If you have received this communication in error,please <br>
immediately notify the sender by return e-mail, and delete the original message and all copies from <br>
your system. Thank you. <br>
---------------------------------------------------------------------------------------------------</font></div></div></div>
</blockquote></div><br></div>