Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Nov 1998 13:23:35 +1030
From:      Greg Lehey <grog@lemis.com>
To:        "Roman D. Sinyuk" <srd@umc.com.ua>
Cc:        FreeBSD Questions <questions@FreeBSD.ORG>
Subject:   Re: Vinum (was: How to use ccd)
Message-ID:  <19981126132335.W67961@freebie.lemis.com>
In-Reply-To: <365AAC47.55EF9FA@umc.com.ua>; from Roman D. Sinyuk on Tue, Nov 24, 1998 at 02:53:27PM %2B0200
References:  <Pine.BSF.4.05.9811220244590.3324-100000@chain.freebsd.os.org.za> <19981121190559.D303@futuresouth.com> <19981122155412.H1005@freebie.lemis.com> <19981121233448.A55997@futuresouth.com> <19981122160648.I1005@freebie.lemis.com> <19981121235118.A56164@futuresouth.com> <19981122181241.K1005@freebie.lemis.com> <365AAC47.55EF9FA@umc.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, 24 November 1998 at 14:53:27 +0200, Roman D. Sinyuk wrote:
> Greg Lehey wrote:
>
>> On Saturday, 21 November 1998 at 23:51:18 -0600, Stormy Henderson wrote:
>>> A happy camper (Greg Lehey, grog@lemis.com) once wrote...
>>
>> Please copy me on messages you expect me to read.  Otherwise I might
>> not see them.
>>
>>>> Yup, I'm afraid so.  If you're going to that, you might as well move
>>>> to vinum at the same time.  http://www.lemis.com/vinum.html.
>>>
>>> Is it faster
>>
>> No.  In each case, the limiting factor is the disk hardware.
>>
>>> or more stable?
>>
>> Yes.  ccd is fine as long as the hardware is OK.  If a component of a
>> mirror fails, however, you have to reboot and reconfigure ccd before
>> you can continue.  Vinum recovers automatically.
>>
>>> It looks much more complicated to setup than ccd.
>>
>> A little.  But it's not really that complicated, and the documentation
>> is (marginally) better.
>
> Hi!
> What can you say about boot-time automaticaly mount vinum partition from
> /etc/fstab.

You need to start Vinum before you can mount the volumes.  I haven't
committed a modification to that one, but you could try this:

/etc/rc:

After the text:

# Configure ccd devices.
if [ -f /etc/ccd.conf ]; then
	ccdconfig -C
fi

Add:

if [ -f /etc/vinumconf ]; then
    /etc/vinumconf
fi

/etc/vinumconf looks like:

#!/bin/sh
# Mount a temporary /tmp to be able to load the LKM
# Care!  At this point we don't *have* a swap
mount_mfs /dev/sd0s1b /mnt
modload -o /mnt/foo /lkm/vinum_mod.o
/sbin/vinum read /dev/sd2h
/sbin/umount /mnt

The /dev/sd0s1b is the name of the swap partition.  It's just used so
that MFS will create a file system.  It could cause problems with
small memory (I'd guess < 8MB).

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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