From owner-freebsd-fs@FreeBSD.ORG Sun Jul 6 20:08:01 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C0D17E50 for ; Sun, 6 Jul 2014 20:08:01 +0000 (UTC) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7BC8720D3 for ; Sun, 6 Jul 2014 20:08:00 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id m20so2977950qcx.41 for ; Sun, 06 Jul 2014 13:07:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=j1fEHlnLmu6PeoWvM4QtWv5Bdb8ZBZ+dkS0Vj4XTzi0=; b=OgczGx9uP9A4VDwP7x9GlrOrRDBWsPr0+fAJr8dmKR3ucBdLdev+/6ToGOx5JS1mrQ /iNvVQxVWgDPX/zqy24xms5ceNkcfhTWL6jORnbGYEQwUWN7zvmH4+VVxYcZ/s8Dd76v DY2naT9hdS3LnkFkZAuq4kHvsR3T71IuQ94n8YM0oFB2qa8kV0i0YiOWS6oSmu811XgM R7ULDgxnA9YOzrZF/5VihsYmhsl9R+nJcvl0XxcMm2/mllN6RyBGRD1T2n5uoXBIc39C RDknkvXvwFBu02d6gtcAUsfRuJDQzv1BOJZeEHfcV+MfRZACzTiir7okNPePHctebak3 wt6A== X-Gm-Message-State: ALoCoQnWEjNC00Dm6ypbwDd5WBCMmwfR0CqQUAhDjeAbw8fioaVf7Z47hSUoSDgANWb2NHk64jNu MIME-Version: 1.0 X-Received: by 10.224.126.70 with SMTP id b6mr42394665qas.74.1404673995401; Sun, 06 Jul 2014 12:13:15 -0700 (PDT) Received: by 10.229.70.66 with HTTP; Sun, 6 Jul 2014 12:13:15 -0700 (PDT) X-Originating-IP: [24.4.138.100] In-Reply-To: <0ABAE2AC-BF1B-4125-ACA9-C6177D013E25@mail.turbofuzz.com> References: <6ADBB2BF-C7E8-4050-9278-2565A63D2EA8@gluster.org> <20140627070411.GI24440@ivaldir.etoilebsd.net> <0F20AEEC-6244-42BC-815C-1440BBBDE664@mail.turbofuzz.com> <20140629203746.GI34108@ivaldir.etoilebsd.net> <1A58F492-946F-46D4-A19E-2734F368CDAC@mail.turbofuzz.com> <0ABAE2AC-BF1B-4125-ACA9-C6177D013E25@mail.turbofuzz.com> Date: Sun, 6 Jul 2014 12:13:15 -0700 Message-ID: Subject: Re: FreeBSD support being added to GlusterFS From: Harshavardhana To: Jordan Hubbard Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2014 20:08:01 -0000 > > I can make the /usr/local/var/log/glusterfs directory and it gets much fu= rther. That said, is there some special configure flags we should be pass= ing in our version of the port to properly stuff glusterfs into /var instea= d? Your email tends to imply that we should be passing =E2=80=94localstate= dir, which we can certainly do no problem, I=E2=80=99m just wondering if th= at=E2=80=99s your long-term plan. Again, this is our port: https://github= .com/freenas/ports/tree/freenas/9-stable/sysutils/glusterfs > > The fundamental issue with /usr/local is, again, that /usr/local is read-= only on FreeNAS. If there are configuration files that glusterfs expects t= o be modifiable, they can=E2=80=99t live anywhere in /usr/local, nor of cou= rse can any temporary files or log files. We have made special provisions = for /etc and /var such that those can be modified, so we basically just nee= d to compile gluster as a =E2=80=9Csystem service=E2=80=9D and put it in th= e system directories (e.g. prefix is /, not /usr/local). > Ah now i get it - "/usr/local" is not a requirement for "GlusterFS" it is a baggage of using "autotools" when during ./configure if you do not specify --prefix - so for a standard installation under RPM it is usually the following flags are used # ./configure --prefix=3D/usr --sysconfdir=3D/etc --localstatedir=3D/var --libdir=3D/usr/lib64 Since FreeBSD doesn't need "/usr/lib64" you could just use for packages # ./configure --prefix=3D/usr --sysconfdir=3D/etc --localstatedir=3D/var --=20 Religious confuse piety with mere ritual, the virtuous confuse regulation with outcomes