Vinum on an existing system
Greg 'groggy' Lehey
grog at FreeBSD.org
Thu Aug 7 15:57:01 PDT 2003
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030808/b6189974/attachment.bin
More information about the freebsd-questions
mailing list