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.
Regards, Daniel ----- Original Message ----- > From: "Razique Mahroua" <[email protected]> > To: "Chris Friesen" <[email protected]>, > [email protected] > Sent: Thursday, November 7, 2013 1:53:29 PM > Subject: Re: [Openstack] Is there a way to tell Nova not to count > NFS-mounted instances directory to disk space on each node? > I think during the migrations, the compute topic already checks > whether or not the storage is a shared one > -- > Razique > On 7 Nov 2013 at 10:11:24, Chris Friesen ( > [email protected] ) wrote: > > I think it would make sense to have an entry in the nova.conf file > > on > > a > > > compute node to indicate that the instances are mounted on shared > > storage. > > > This could be fed back into the database, used in resource > > reporting > > > (like in this case where it affects the "real" amount of storage > > > available), and could also be added to the instance itself so that > > the > > > evacuate/migrate commands could programmatically determine whether > > the > > > instance is on shared storage or not instead of requiring the user > > to > > > specify it. > > > Chris > > > On 11/07/2013 04:36 AM, Razique Mahroua wrote: > > > > Hey Daniel, > > > > > > > > Doesn’t seem possible at the moment looks like... > > > > -- > > > > Razique > > > > > > > > On 7 Nov 2013 at 02:09:15, Daniel Speichert ([email protected] > > > > <mailto://[email protected]>) wrote: > > > > > > > >> Hi All, > > > >> > > > >> We have a couple of compute nodes each having its > > > >> /var/lib/nova/instances directory mounted via NFS from shared > > >> storage > > > >> server. > > > >> Nova gathers free space statistics from each compute node and > > >> adds > > > >> them, making the theoretical total disk space equal N times the > > >> real > > > >> one (N is the number of nodes we have). > > > >> Is there a way to tell it not to count this space again on some > > >> nodes? > > > >> > > > >> Regards, > > > >> Daniel Speichert > > > >> > > > >> > > > >> _______________________________________________ > > > >> Mailing list: > > > >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > > > >> Post to : [email protected] > > > >> Unsubscribe : > > > >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > > > > > > > > > > > > _______________________________________________ > > > > Mailing list: > > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > > > > Post to : [email protected] > > > > Unsubscribe : > > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > > > > > > > _______________________________________________ > > > Mailing list: > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > > > Post to : [email protected] > > > Unsubscribe : > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > > _______________________________________________ > Mailing list: > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > Post to : [email protected] > Unsubscribe : > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
