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