From owner-freebsd-stable Wed Sep 6 10:51: 6 2000 Delivered-To: freebsd-stable@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id 862A137B423; Wed, 6 Sep 2000 10:50:57 -0700 (PDT) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id KAA31097; Wed, 6 Sep 2000 10:50:16 -0700 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda31095; Wed Sep 6 10:50:01 2000 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.9.3/8.9.1) id KAA64901; Wed, 6 Sep 2000 10:50:00 -0700 (PDT) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdC64899; Wed Sep 6 10:49:37 2000 Received: (from uucp@localhost) by cwsys.cwsent.com (8.11.0/8.9.1) id e86HnaA75611; Wed, 6 Sep 2000 10:49:36 -0700 (PDT) Message-Id: <200009061749.e86HnaA75611@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdJ75603; Wed Sep 6 10:48:58 2000 X-Mailer: exmh version 2.1.1 10/15/1999 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-OS: FreeBSD 4.1-RELEASE X-Sender: cy To: Doug White Cc: Rolandas Naujikas , stable@FreeBSD.ORG, questions@FreeBSD.ORG Subject: Re: How to update -STABLE from remote location ? In-reply-to: Your message of "Wed, 06 Sep 2000 10:23:47 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 06 Sep 2000 10:48:58 -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , Doug White writes: > On Wed, 6 Sep 2000, Rolandas Naujikas wrote: > > > I'm administrator of a server with FreeBSD 4.1-STABLE. > > Before some time I found than it is not possible replace executable > > and shared libraries when are used for execution ("Text file busy" error > > message). So how can I update my -STABLE from remote location ? > > You shouldn't, unless you have a serial console, and even then it's > quite dangerous. When doing installworld you should shutdown to > single-user mode to prevent any conflicts or damage. My team does this with remote Sun systems attached to a serial console via a FreeBSD system running conserver, as it saves a helijet trip to the mainland. We have plans to upgrade the FreeBSD console server remotely. Currently we've only upgraded our less critical FreeBSD systems remotely, a trip by elevator away. With careful planning it can be done. > > > I'm thinking abount alternate disk partitions for /usr, /var and /, so I > > would be able to update into alternate location, and switch rootdev to > > updated location. How I can switch to boot from different partition ? > > Playing with boot options from remote really gives me the willies. Also > upgrading production systems is a good way to screw things up. I've done this with Solaris, Tru64-UNIX, and FreeBSD. It's an idea I brought over from the MVS (IBM Mainframe) world, where at our shop we call it the FOOBAR Roll. The steps we take (I'll miss some minor steps for brevity) are, 1. Copy the system to a disk mounted as /foobar. 2. Modify /foobar/etc/fstab to reflect new device names for /, /usr, etc. Also modify boot parameters. 3. chroot /foobar /bin/sh 4. cd /usr/src 5. make buildworld, buildkernel, installkernel, boot, installworld. So far so good. There is no guarantee that this will work as FreeBSD evolves, but it works for now and it saves a 30 minute helicopter trip to Vancouver. If the system in Vancouver is hosed as a result of this, we can live without it for a short while until we can schedule a trip. > > > P.S. I'm sorry for my language. > > You weren't swearing, if that's what you were apologizing for. :) Your > English is fine -- be proud. Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/DEC Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD, ISTA Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message