<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:8pt"><div style="" class=""><span style="" class="">If anyone was wondering, the behavior is different on 5+:</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span style="" class=""># cd /vmfs/volumes/ <br style="" class="">/vmfs/volumes # ls -l <br style="" class="">lrwxr-xr-x    1 root     root            17 Jun 26 15:56 1 -> 8dae7639-df402f02<br style=""
 class=""><br style="" class="">/vmfs/volumes # df -h <br style="" class="">Filesystem   Size   Used Available Use% Mounted on <br style="" class="">NFS          9.8G   1.8G      8.0G  19% /vmfs/volumes/1<br style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">This is what the script expects, and I guess now I know the reason ESX 5+ is listed as "supported". It might be nice to support older ESX if that's the only change, but for now I'm just going to wait
 until the rest of our blades get updated.</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">Thanks!</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">Brad<br style="" class=""></span></div><div style="" class=""><br style="" class=""></div>  <div class="" style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 8pt;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue,
 Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <hr style="" class="" size="1">  <font style="" class="" face="Arial" size="2"> <b style="" class=""><span class="" style="font-weight:bold;">From:</span></b> Brad <tsbrs@yahoo.com><br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">To:</span></b> Tino Vazquez <cvazquez@c12g.com> <br style="" class=""><b style="" class=""><span class="" style="font-weight: bold;">Cc:</span></b> "users@lists.opennebula.org" <users@lists.opennebula.org> <br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Sent:</span></b> Thursday, June 26, 2014 8:10 AM<br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Subject:</span></b> Re: [one-users] Help with ESX UUIDs with OpenNebula<br style="" class=""> </font> </div> <div style="" class=""><br style="" class=""><div
 style="" class="" id="yiv5996031729"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:8pt;"><div class="" style=""><span class="" style="">Hi Tino,</span></div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;"><br class="" style="" clear="none"><span class="" style=""></span></div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;"><span class="" style="">Thanks for responding. You can rename the datastores from the vSphere client to 0 and 1, however, that is not how they're named on the file system, on the file system they look like this:</span></div><div class="" style="color:rgb(0, 0,
 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;"><span class="" style=""><br class="" style="" clear="none"></span></div><div class="" style="">$ ls -al /vmfs/volumes/ | egrep "0 -> | 1 -> "<br class="" style="" clear="none">lrwxr-xr-x    1 root     0                    17 Jun 26 15:05 0 -> 3e0efa3e-35c16500<br class="" style="" clear="none">lrwxr-xr-x    1 root     0                    17 Jun 26 15:05 1 -> 8dae7639-df402f02</div><div class="" style=""><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco,
 monospace, sans-serif;background-color:transparent;font-style:normal;">$ df -m | egrep
 '35c16500|df402f02'<br class="" style="" clear="none">nfs                      10078      1877      7689  20% /vmfs/volumes/3e0efa3e-35c16500<br class="" style="" clear="none">nfs                      10078      1877      7689  20% /vmfs/volumes/8dae7639-df402f02<br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace,
 sans-serif;background-color:transparent;font-style:normal;">They're symlinked, which is no good for OpenNebula because the monitor script here: <a rel="nofollow" shape="rect" class="" style="" target="_blank" href="https://github.com/OpenNebula/one/blob/11520021f718bbc6762f7be90d8cec00764fc327/src/datastore_mad/remotes/vmfs/monitor">https://github.com/OpenNebula/one/blob/11520021f718bbc6762f7be90d8cec00764fc327/src/datastore_mad/remotes/vmfs/monitor</a> on line 67 is checking df, but df is using the actual mount path, not a symlink.</div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;">I do have some esx 5+ hosts to try
 mounting my NFS exports on to see if they are mounted differently. If that doesn't work, I'll
 simply change that line 67 to something like this:</div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;">DF_STR=\$($DF -m | grep `ls -al /\`echo $BASE_PATH | awk '{split($0,a,"/"); print a[2], a[3]}' | sed -e 's/ /\//g'\` | grep " -> \`echo $BASE_PATH | awk '{split($0,a,"/"); print a[4]}'\`" | awk '{print $11}'` | sed -e 's/ \+/:/g')</div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0,
 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;">Which I don't want to do, but should get the expected output.</div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;">Thanks!</div><div class="" style="color:rgb(0, 0, 0);font-size:10.6667px;font-family:Courier New, courier, monaco, monospace, sans-serif;background-color:transparent;font-style:normal;">Brad<br class="" style="" clear="none"></div><div class="" style="">  </div>  <div style="" class="" id="yiv5996031729yqt28453"><div class="" style="font-family:Courier New, courier,
 monaco, monospace, sans-serif;font-size:8pt;"> <div class="" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div class="" dir="ltr" style=""> <hr class="" style="" size="1">  <font class="" style="" face="Arial" size="2"> <b class="" style=""><span class="" style="font-weight:bold;">From:</span></b> Tino Vazquez <cvazquez@c12g.com><br class="" style="" clear="none"> <b class="" style=""><span class="" style="font-weight:bold;">To:</span></b> Brad <tsbrs@yahoo.com> <br class="" style="" clear="none"><b class="" style=""><span class="" style="font-weight:bold;">Cc:</span></b> "users@lists.opennebula.org" <users@lists.opennebula.org> <br class="" style="" clear="none"> <b class="" style=""><span class="" style="font-weight:bold;">Sent:</span></b> Thursday, June 26, 2014 2:42 AM<br class="" style="" clear="none"> <b class="" style=""><span class=""
 style="font-weight:bold;">Subject:</span></b> Re: [one-users] Help with ESX UUIDs with OpenNebula<br class="" style="" clear="none"> </font> </div> <div class="" style=""><br class="" style="" clear="none">Hi Brad,<br class="" style="" clear="none"><br class="" style="" clear="none">>These are failing because the ESX host is mounting NFS using the uuid that's generated from the signature. I tried searching<br class="" style="" clear="none">>the list, but I'm not sure how others are dealing with this. I notice the documentation says that it needs to be mounted with<br class="" style="" clear="none">>datastore ID only; e.g. /vmfs/volumes/0 and /vmfs/volumes/1, however, I've found no way to get the ESX host to actually do<br class="" style="" clear="none">>this.<br class="" style="" clear="none"><br class="" style="" clear="none">OpenNebula supports ESX 5.x, so it may be a good idea to update. In<br class="" style="" clear="none">any case, it
 should work in ESX 4.x as well, can't you name the NFS<br class="" style="" clear="none">based datastore as "0" and "1"? What error is it giving? If there are<br class="" style="" clear="none">errors, you can try creating it with a different name and then<br class="" style="" clear="none">renaming it.<br class="" style="" clear="none"><br class="" style="" clear="none">Hope it helps,<br class="" style="" clear="none"><br class="" style="" clear="none">-Tino<br class="" style="" clear="none"><br class="" style="" clear="none"><br class="" style="" clear="none">--<br class="" style="" clear="none">OpenNebula - Flexible Enterprise Cloud Made Simple<br class="" style="" clear="none"><br class="" style="" clear="none">--<br class="" style="" clear="none">Constantino Vázquez Blanco, PhD, MSc<br class="" style="" clear="none">Senior Infrastructure Architect at C12G Labs<br class="" style="" clear="none">www.c12g.com | @C12G | es.linkedin.com/in/tinova<br
 class="" style="" clear="none"><br class="" style="" clear="none">--<br class="" style="" clear="none">Confidentiality Warning: The information contained in this e-mail and<br class="" style="" clear="none">any accompanying documents, unless otherwise expressly indicated, is<br class="" style="" clear="none">confidential and privileged, and is intended solely for the person<br class="" style="" clear="none">and/or entity to whom it is addressed (i.e. those identified in the<br class="" style="" clear="none">"To" and "cc" box). They are the property of C12G Labs S.L..<br class="" style="" clear="none">Unauthorized distribution, review, use, disclosure, or copying of this<br class="" style="" clear="none">communication, or any part thereof, is strictly prohibited and may be<br class="" style="" clear="none">unlawful. If you have received this e-mail in error, please notify us<br class="" style="" clear="none">immediately by e-mail at <a rel="nofollow"
 shape="rect" class="" style="" ymailto="mailto:abuse@c12g.com" target="_blank" href="mailto:abuse@c12g.com">abuse@c12g.com</a> and delete the e-mail and<br class="" style="" clear="none">attachments and any copy from
 your system. C12G thanks you for your<br class="" style="" clear="none">cooperation.<br class="" style="" clear="none"><br class="" style="" clear="none"><div class="" id="yiv5996031729yqtfd56210" style=""><br class="" style="" clear="none">On 25 June 2014 20:10, Brad <<a rel="nofollow" shape="rect" class="" style="" ymailto="mailto:tsbrs@yahoo.com" target="_blank" href="mailto:tsbrs@yahoo.com">tsbrs@yahoo.com</a>> wrote:<br class="" style="" clear="none">> Hi,<br class="" style="" clear="none">><br class="" style="" clear="none">> I just started using OpenNebula and was following the quickstart guide when<br class="" style="" clear="none">> I hit a snag. When I run onedatastore show <ID>, I see under DATASTORE<br class="" style="" clear="none">> CAPACITY that TOTAL/FREE/USED are all 0M. I then executed<br class="" style="" clear="none">> /var/lib/one/remotes/datastore/vmfs/monitor with the arguments found in<br class=""
 style="" clear="none">>
 /var/log/one/oned.log after breaking the monitor script; I then executed it<br class="" style="" clear="none">> with bash -x. I saw the problem immediately:<br class="" style="" clear="none">><br class="" style="" clear="none">> USED_MB=$(du -sLm /vmfs/volumes/1 2>/dev/null | cut -f1)<br class="" style="" clear="none">> DF_STR=$(df -m | grep /vmfs/volumes/1 | sed -e '\''s/ \+/:/g'\'')<br class="" style="" clear="none">><br class="" style="" clear="none">> These are failing because the ESX host is mounting NFS using the uuid that's<br class="" style="" clear="none">> generated from the signature. I tried searching the list, but I'm not sure<br class="" style="" clear="none">> how others are dealing with this. I notice the documentation says that it<br class="" style="" clear="none">> needs to be mounted with the datastore ID only; e.g. /vmfs/volumes/0 and<br class="" style="" clear="none">> /vmfs/volumes/1, however, I've
 found no way to get the ESX host to actually<br class="" style="" clear="none">> do this. As I'm working with an existing (large-ish) cluster, I'd also like<br class="" style="" clear="none">> to avoid screwing anything up for others, so any suggestions will be<br class="" style="" clear="none">> appreciated.<br class="" style="" clear="none">><br class="" style="" clear="none">> Right now I'm working on getting it to be this instead:<br class="" style="" clear="none">> DF_STR=$(df -m | grep `ls -al /vmfs/volumes/ | grep " 1 -> " | awk '{print<br class="" style="" clear="none">> $11}'`| sed -e '\''s/ \+/:/g'\'')<br class="" style="" clear="none">><br class="" style="" clear="none">> This seems ham fisted to me, and I'm hoping there's some option in<br class="" style="" clear="none">> VMware/OpenNebula I'm missing somewhere.<br class="" style="" clear="none">><br class="" style="" clear="none">> If this is a version
 issue, I think I'll be moving from the 4.x to 5.x on<br class="" style="" clear="none">> all of my ESX hosts at some point next week.<br class="" style="" clear="none">><br class="" style="" clear="none">> Thanks!<br class="" style="" clear="none">> Brad</div><br class="" style="" clear="none">><br class="" style="" clear="none">><br class="" style="" clear="none">><br class="" style="" clear="none">> _______________________________________________<br class="" style="" clear="none">> Users mailing list<br class="" style="" clear="none">> <a rel="nofollow" shape="rect" class="" style="" ymailto="mailto:Users@lists.opennebula.org" target="_blank" href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br class="" style="" clear="none">> <a rel="nofollow" shape="rect" class="" style="" target="_blank"
 href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><div class="" id="yiv5996031729yqtfd84174" style=""><br class="" style="" clear="none">></div><br class="" style="" clear="none"><br class="" style="" clear="none"></div> </div> </div></div>  </div></div></div><br style="" class=""><br style="" class=""></div> </div> </div>  </div></body></html>