From owner-freebsd-questions@FreeBSD.ORG Thu Jan 9 08:31:10 2014 Return-Path: Delivered-To: freebsd-questions@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 16E4EDEB for ; Thu, 9 Jan 2014 08:31:10 +0000 (UTC) Received: from mail-qc0-x234.google.com (mail-qc0-x234.google.com [IPv6:2607:f8b0:400d:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C5C7C1A19 for ; Thu, 9 Jan 2014 08:31:09 +0000 (UTC) Received: by mail-qc0-f180.google.com with SMTP id w7so2279405qcr.25 for ; Thu, 09 Jan 2014 00:31:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=H4WnavX4oEr4o+jlQf33rl/Lj3i1V03te2Rmz+U+5ME=; b=dYxn7ccSvYSzeOmrjrPim7RO5Z7lIVG/fC24nckiOuQsA/xYXIn1vcUTc7T+sTpbyy MmsPfP0Wc3um7kudZU3kroyb38iwDzdEswNN6x2TPArlwwAktd16tp1AM1/78DrpXQuP 6nLarxDiuC594XjgL/Bb/59ukr7aCBJ8G+RVq3BHEd5xf7pYwvW2N9sqlahIlfTWvrjG WzLPlorcgK+ZMbPrv7JUylGJito0zKzySJi9yV9r7PEX9rlVOLLhTfxFj9HkE/Z7dl2O EmvfWukORRZh/10qlCs0imtait2eU6YLamIjCH0JD0SSI25w0JIqyggPcuZIWI6vrYyX 5Rvw== MIME-Version: 1.0 X-Received: by 10.49.12.43 with SMTP id v11mr4779506qeb.50.1389256268924; Thu, 09 Jan 2014 00:31:08 -0800 (PST) Received: by 10.96.97.2 with HTTP; Thu, 9 Jan 2014 00:31:08 -0800 (PST) In-Reply-To: <20140109152944.7af527cc@X220.alogt.com> References: <20140109063640.c216a6469914fbbf4cea08bc@sohara.org> <20140109152944.7af527cc@X220.alogt.com> Date: Thu, 9 Jan 2014 08:31:08 +0000 Message-ID: Subject: Re: Server Hang From: krad To: Erich Dollansky Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Olivier Nicole , "freebsd-questions@freebsd.org" , Steve O'Hara-Smith X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2014 08:31:10 -0000 if the disk is that old I would guess its pretty good odds, that the machine is old too. If this is the case, you might want to considered replacing the lot and going for a full upgrade of os as well, or maybe virtualizing the os. If you decide to go for a new disk alone, I would stay away from dd'ing the disk as its slow and cumbersome, and will cause complications on a new drive of bigger capacity, which is a given really. My preferred way of restoring or duplicating a freebsd system, is to boot into a live enviroment (latest full bsd install on a usb stick mostly). I then use gpart to splice up the disk, and format the slices with newfs, and then mount them up under /mnt in their correct structure, I then push the old os to the new one over the network via rsync to an rsync server running on the destination machine. This allows me to copy with out shutting down the source disk. My rsync config is something similar to .. uid=0 gid=0 [MNT] path = /mnt read only = false .. I then use the following command to push the os over rsync -aPHW --numeric-ids --exclude="/dev/**" --exclude="/proc/**" / remote_ip::MNT/ finally install the boot blocks If the os is prior to freebsd 5.x make sure you newfs in UFS1 not UFS2 which is the default. If you go for an os upgrade, just install the os, match the package list as best you can, and port essential things from the /etc and /home trees, then prepare for a lot of testing as lots of big version bumps will have happened. If the site is a static one it should be fine though, but php etc you will probably find a few issues. Alternatively you could copy /usr/local and /var/db/pkg from the old machine, and install the relevent compat libraries. Personally I would avoid this though. On 9 January 2014 07:29, Erich Dollansky wrote: > Hi, > > On Thu, 9 Jan 2014 14:21:52 +0700 > Olivier Nicole wrote: > > > Steve, > > > > >> Is it possible to take such a mirror copy of such a hard disk so > > >> that i can replace it as a hot swap. I request all of your > > >> expertise. How to do hot swap?please shed some light on it. > > > > > > Why not use a RAID1 mirror instead of a hot swap, then when > > > it's needed you don't get downtime, you also get the benefit of > > > better read performance, and of course it's guaranteed up to date. > > > > Remember the old disk is dying. i would not advise building a raid > > around a dying disk :) > > there is a little bit more than just one disk dying. Did he ever post > the result of a smartctl -a? > > Erich > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >