On Fri, May 2, 2008 at 7:44 AM, Christopher Hawkins <chawkins@xxxxxxxxxxxxxxxxxxxx> wrote: > On a related note to [ RE: The "df" command again ], how > do you control which subvolume is connected to first? In my setup the client > always seems to want the second one (of two). Ie.: > > # > volume afr > subvolumes server-a server-b > # > > The client likes server-b. Is this always true, or how does that decision > get made? The subvol specified first in the list is the first. There is no other decision logic. How did you conclude your client likes server-b? :) Krishna > > Thanks, > Chris > > > -----Original Message----- > > From: > > gluster-devel-bounces+chawkins=veracitynetworks.com@xxxxxxxxxx > > > > [mailto:gluster-devel-bounces+chawkins=veracitynetworks.com@no > ngnu.org] On Behalf Of Brandon Lamb > > Sent: Thursday, May 01, 2008 9:03 PM > > To: Amar S. Tumballi > > Cc: Gluster Devel > > Subject: Re: The "df" command again > > > > On Thu, May 1, 2008 at 5:59 PM, Amar S. Tumballi > > <amar@xxxxxxxxxxxxx> wrote: > > > On Thu, May 1, 2008 at 5:37 PM, Brandon Lamb > > <brandonlamb@xxxxxxxxx> wrote: > > > > Was there an option added somewhere to be able to choose > > whether to > > > > dispaly the least or most amount of disk space? I added > > info on this > > > > to the AFR things to know on the wiki, but I was > > wondering if maybe > > > > there was actually an option of how glusterfs displays that info. > > > > > > > There is no behavior option for 'df' in glusterfs. Its a > > question of > > > what is right. For example, > > > * unify shows unified space. > > > * stripe shows unified space. > > > * afr shows 'df' from one node. > > > > > > So, here we don't have any doubts about what to show in > > case of unify > > > and stripe. But in afr the question of which subvolume > > comes. Earlier > > > as user had the option of 'option replicate *' in afr, > > showing the df > > > of first subvolume made sense. But with uniform distribution of afr > > > data now, we have to show the 'df' from the subvolume which > > had minimum free disk. > > > > > > Currently 1.3.8 shows df from first subvolume. But, the > > patch to show > > > the 'df' from the subvolume with min free disk space has > > gone into archive. > > > > So to clarify, the wiki should be changed from > > > > When doing a "df -h" on a client, the AVAILABLE disk space > > will display the maximum disk space of the servers in the > > cluster. So if you have two servers with 50 gigs and 100 gigs > > of free disk space, you will see 100 gigs available even > > though one server only has 50 gigs free > > > > to this? > > > > When doing a "df -h" on a client, the AVAILABLE disk space > > will display the maximum disk space of the first AFR sub > > volume defined in the spec file. So if you have two servers > > with 50 gigs and 100 gigs of free disk space, and the server > > with 100 gigs is listed first, then you will see 100 gigs > > available even though one server only has 50 gigs free > > > > > > _______________________________________________ > > Gluster-devel mailing list > > Gluster-devel@xxxxxxxxxx > > http://lists.nongnu.org/mailman/listinfo/gluster-devel > > > > > > _______________________________________________ > Gluster-devel mailing list > Gluster-devel@xxxxxxxxxx > http://lists.nongnu.org/mailman/listinfo/gluster-devel >