From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QOklg-00013c-Vw for garchives@archives.gentoo.org; Tue, 24 May 2011 06:07:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 422931C3D3 for ; Tue, 24 May 2011 06:06:59 +0000 (UTC) Received: from svr-us4.tirtonadi.com (unknown [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id 539C21C001 for ; Tue, 24 May 2011 05:32:25 +0000 (UTC) Received: from mail-iw0-f181.google.com ([209.85.214.181]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.69) (envelope-from ) id 1QOkEE-000ObL-2o for gentoo-server@lists.gentoo.org; Tue, 24 May 2011 12:32:26 +0700 Received: by iwn38 with SMTP id 38so7546587iwn.40 for ; Mon, 23 May 2011 22:32:22 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-server@lists.gentoo.org Reply-to: gentoo-server@lists.gentoo.org MIME-Version: 1.0 Received: by 10.42.131.65 with SMTP id y1mr10637157ics.172.1306215142521; Mon, 23 May 2011 22:32:22 -0700 (PDT) Received: by 10.42.221.202 with HTTP; Mon, 23 May 2011 22:32:22 -0700 (PDT) In-Reply-To: References: <4DDAFE82.9070308@badapple.net> Date: Tue, 24 May 2011 12:32:22 +0700 Message-ID: Subject: Re: [gentoo-server] Managing multiple servers. From: Pandu Poluan To: gentoo-server@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: X-Archives-Hash: 79502f866fff719a110b60d837c492af WHOA... lots of nice ideas here... On Tue, May 24, 2011 at 09:44, Fabiano - deStilaDo wrote: > Some more ideas: > > - Local copy dist files, two very easy ways to do without mirroring a > huge official gentoo server: > =C2=A0- Networked DISTDIR > =C2=A0- First server on GENTOO_MIRRORS, like "http://10.0.0.2/gentoo" > Yup, that's what I did on my in-company Gentoo servers. For the cloud-based ones, I just use the Gentoo mirrors (they have *huge* bandwidth and I'm not capped/throttled). > - Use you own binary packages: This saves some nice compile time, but > the binary optimization has to be a common denominator for all the > architectures in use, or have different binary repositories for > different arches if they are "really" different (i.e. incompatible). > For example, if you have intel and amd server you can optimize to > i686. I like better this approach on more homogeneous setups, like > everything optimized for say core 2. Core 2 optimizations work for AMD Opterons? > =C2=A0- Here goes my favourite approach: > =C2=A0 - First backup every affected package with:quickpkg --include-conf= ig=3Dy > =C2=A0 =C2=A0 - This makes it very easy to revert a unsuccessfully upgrad= e and > usually is sufficient to revert, but special attention must me given > to programs/services that uses files not save as config files (like > databases for examples). > =C2=A0 =C2=A0 - emerge with =C2=A0--buildpkgonly, this way a bin package = is built > but not installed, while the services are running. > =C2=A0 =C2=A0 - now, the upgrade is much faster: service stop, emerge bin > package =3D very fast tar unpack, service start. If service does not > start, emerge very fast unpack time of previous binary backup version, > service start. > =C2=A0 =C2=A0 - this can be easy automated with shell scripts (or say, > semi-automated, as the should ask for confirmation on critical > operations) > Very nice tip, thanks! Will certainly do that for my next updates :-) > - Versioned configs: you can put config dirs (like /etc) under version > control, like subversion or git. This makes it easy to track changes > and do reverts if needed. In case of polytheistic environments (you > are not the only god, there are other sysadmins) this is also a good > way to track who changed what, why and when. > Interesting... how do I put /etc under svn/git? Rgds, --=20 Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com Google Talk:=C2=A0=C2=A0=C2=A0 pepoluan Y! messenger: pepoluan MSN / Live:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pepoluan@hotmail.com (do not send= email here) Skype:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pe= poluan More on me:=C2=A0=C2=A0My LinkedIn Account=C2=A0 My Facebook Account