<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>There is compute_nodes file in /var/lib/nova/instances with the hostnames of all compute nodes using that storage so it should be possible and easy to figure out if that is a shared storage or not.<br><br><div>Regards,<br>Daniel<br></div><br><hr id="zwchr"><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Razique Mahroua" <razique.mahroua@gmail.com><br><b>To: </b>"Chris Friesen" <chris.friesen@windriver.com>, openstack@lists.openstack.org<br><b>Sent: </b>Thursday, November 7, 2013 1:53:29 PM<br><b>Subject: </b>Re: [Openstack] Is there a way to tell Nova not to count NFS-mounted instances directory to disk space on each node?<br><br><div id="bloop_customfont" style="font-family: Helvetica,Arial; font-size: 13px; margin: 0px;">I think during the migrations, the compute topic already checks whether or not the storage is a shared one</div><div id="bloop_customfont" style="font-family: Helvetica,Arial; font-size: 13px; margin: 0px;"><br></div> <div id="bloop_sign_1383850323022158080"><span style="font-family: helvetica,arial; font-size: 13px;"></span>-- <br>Razique<br></div> <br><p style="color: rgb(160, 160, 168);">On 7 Nov 2013 at 10:11:24, Chris Friesen (<a href="mailto://chris.friesen@windriver.com" target="_blank">chris.friesen@windriver.com</a>) wrote:</p> <blockquote class="clean_bq"><span><div><div>I think it would make sense to have an entry in the nova.conf file on a
<br>compute node to indicate that the instances are mounted on shared storage.
<br>
<br>This could be fed back into the database, used in resource reporting
<br>(like in this case where it affects the "real" amount of storage
<br>available), and could also be added to the instance itself so that the
<br>evacuate/migrate commands could programmatically determine whether the
<br>instance is on shared storage or not instead of requiring the user to
<br>specify it.
<br>
<br>Chris
<br>
<br>
<br>On 11/07/2013 04:36 AM, Razique Mahroua wrote:
<br>> Hey Daniel,
<br>>
<br>> Doesn’t seem possible at the moment looks like...
<br>> --
<br>> Razique
<br>>
<br>> On 7 Nov 2013 at 02:09:15, Daniel Speichert (daniel@speichert.pl
<br>> <mailto://daniel@speichert.pl>) wrote:
<br>>
<br>>> Hi All,
<br>>>
<br>>> We have a couple of compute nodes each having its
<br>>> /var/lib/nova/instances directory mounted via NFS from shared storage
<br>>> server.
<br>>> Nova gathers free space statistics from each compute node and adds
<br>>> them, making the theoretical total disk space equal N times the real
<br>>> one (N is the number of nodes we have).
<br>>> Is there a way to tell it not to count this space again on some nodes?
<br>>>
<br>>> Regards,
<br>>> Daniel Speichert
<br>>>
<br>>>
<br>>> _______________________________________________
<br>>> Mailing list:
<br>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>>> Post to : openstack@lists.openstack.org
<br>>> Unsubscribe :
<br>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>>
<br>>
<br>> _______________________________________________
<br>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>> Post to : openstack@lists.openstack.org
<br>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>>
<br>
<br>
<br>_______________________________________________
<br>Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>Post to : openstack@lists.openstack.org
<br>Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br></div></div></span></blockquote><br>_______________________________________________<br>Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack<br>Post to : openstack@lists.openstack.org<br>Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack<br></blockquote><br></div></body></html>