Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2003 08:26:55 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Hank Wethington <bsd@info-logix.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Vinum on an existing system
Message-ID:  <20030807225655.GV24770@wantadilla.lemis.com>
In-Reply-To: <1060279922.26539.11.camel@admin.office.local>
References:  <1060279922.26539.11.camel@admin.office.local>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030807225655.GV24770>