From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 15:57:00 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF93737B401 for ; Thu, 7 Aug 2003 15:57:00 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id E907043FA3 for ; Thu, 7 Aug 2003 15:56:58 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 9D43B526A8; Fri, 8 Aug 2003 08:26:55 +0930 (CST) Date: Fri, 8 Aug 2003 08:26:55 +0930 From: Greg 'groggy' Lehey To: Hank Wethington Message-ID: <20030807225655.GV24770@wantadilla.lemis.com> References: <1060279922.26539.11.camel@admin.office.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E/fydkOSwztHu2te" Content-Disposition: inline In-Reply-To: <1060279922.26539.11.camel@admin.office.local> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-questions@freebsd.org Subject: Re: Vinum on an existing system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2003 22:57:01 -0000 --E/fydkOSwztHu2te Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thursday, 7 August 2003 at 11:12:02 -0700, Hank Wethington wrote: > Greetings! > > I have recently taken over a machine (FreeBSD 4.8-STABLE 7/31/03) that > is a mail server (qmail, imap, apache2, pop3, etc) and due to the > companies relience upon the machine, want to use vinum to mirror the > drive. > > I've been reading the vinim information and a great site about setting > it up. However, one question remains. It seems as though it should have > been setup from them start. Can an existing installation be converted to > vinum withouth reinstalling everything or should I just setup a cron job > to dump the drive contents to the other dirve. Both drives are IDE 40GB. > Here is the df on the main drive, as the second one hasn't even been > formatted. If you have a spare drive, the obvious thing to do is to migrate the entire installation to that drive. In this case you just need to create Vinum volumes of the appropriate size, then copy. Make sure to put a bootstrap on the drive (disklabel -B). When that's up and running, you can repartition the original drive and do whatever you want with it. > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 7225214 2207318 4439880 33% / > /dev/ad0s1f 14985070 268 13785998 0% /usr/home > /dev/ad0s1e 15483630 33702 14211238 0% /var > procfs 4 4 0 100% /proc > Swap is 768mb In this case, the output of disklabel would be more use. I'd expect to see something like this: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 8388608 0 4.2BSD 2048 16384 89 # (Cyl. 0 - 3328*) b: 1048576 8388608 swap # (Cyl. 3328*- 3744*) c: 26712000 0 unused 0 0 # (Cyl. 0 - 10599) e: 17274816 9437184 4.2BSD 2048 16384 89 # (Cyl. 3744*- 10599*) This gives the positions of the partitions as well as their size. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers --E/fydkOSwztHu2te Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/Mtk3IubykFB6QiMRAjInAJ9J8bbWjOWZ03y2NajpP0guEE0+TACfeC5o lUNl1MTGoLVq+ab2f7Vjlus= =Bk+K -----END PGP SIGNATURE----- --E/fydkOSwztHu2te--