From owner-freebsd-stable@FreeBSD.ORG Tue May 22 19:48:14 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DEF0516A400 for ; Tue, 22 May 2007 19:48:14 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id C748C13C45D for ; Tue, 22 May 2007 19:48:14 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay5.apple.com (relay5.apple.com [17.128.113.35]) by mail-out3.apple.com (Postfix) with ESMTP id 45A671DABE0; Tue, 22 May 2007 12:30:10 -0700 (PDT) Received: from relay5.apple.com (unknown [127.0.0.1]) by relay5.apple.com (Symantec Mail Security) with ESMTP id CE3B129C003; Tue, 22 May 2007 12:30:41 -0700 (PDT) X-AuditID: 11807123-9e88abb0000065b6-3b-465344e131f1 Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay5.apple.com (Apple SCV relay) with ESMTP id C34FE30400D; Tue, 22 May 2007 12:30:41 -0700 (PDT) In-Reply-To: <1179860619.14799.37.camel@bigapple.omnis.ch> References: <1179860619.14799.37.camel@bigapple.omnis.ch> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <96A27673-F4AC-4A39-91EC-C3242F2E76A7@mac.com> Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Tue, 22 May 2007 12:30:41 -0700 To: Olivier Mueller X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-stable@freebsd.org Subject: Re: minimizing downtime on upgrades? (for example: mysql 4.1 -> 5.0 or php) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2007 19:48:15 -0000 On May 22, 2007, at 12:03 PM, Olivier Mueller wrote: > So I can only do that after the installation of mysql50-client, which > means all the services will have to be stopped during the > compilation of > mysql50-server, which usually takes some time. > > Isn't there a better way? How do you handle such cases? Pretty much as you suggest below: > Same questions for php upgrades: on php5 upgrade, all the other php5-* > packages have to be compiled too, and keeping the webserver running > during this time is probably not the best idea. > > What I'm going to try is to prepare packages of the ports I have to > upgrade on a dev/test server, and then install them with pkg_add: is > that the "right way" ? You have a build box that you generate new tarballs of the packages you want to update (via "make package", "make package-recursive", "portupgrade -p", etc), which you can then test and make sure they behave sensibly, and then use these to rapidly update your production machines with minimal downtime. -- -Chuck