From owner-freebsd-questions Wed May 30 6:52:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id 217F137B43C for ; Wed, 30 May 2001 06:52:39 -0700 (PDT) (envelope-from wmoran@iowna.com) Received: from iowna.com (dhcp065-024-023-038.columbus.rr.com [65.24.23.38]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id f4UDn8k20913; Wed, 30 May 2001 09:49:09 -0400 (EDT) Message-ID: <3B14FAC0.96EB3AC5@iowna.com> Date: Wed, 30 May 2001 09:50:56 -0400 From: Bill Moran X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: victha@seychelles.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: I need help to configure Vinum on References: <3B14ED68.167A69D1@seychelles.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jude Adeline wrote: > i am setting up this new server and i want to run disk mirroring on it > in case of a disk failure on the first disk. I have read some of the > vinum configuration on the internet but its all a bit too obscure for > me. This is the set up i need. If you've read everything at www.vinumvm.org and it still seems obscure, I would suggest that you DON'T use vinum on a production system until it starts to seem clear. If you don't understand what you are doing, you'll have nothing but trouble, and if a drive crashes you won't understand how to fix it anyway. Hopefully you have an old (non production) computer somewhere that you can experiment with. Create some vinum volumes there first until you're familiar with the procedure. > disk 1 (da1) > > / 100Mb /dev/da1a > /home 2000Mb /dev/da1f > /usr 1000Mb /dev/da1h > /var 1000Mb /dev/da1e > /usr/local 2000Mb /dev/da1g > /tmp/ 512Mb /dev/da1d > swap 524Mb /dev/da1k > > i want to mirror the above on disk 2 (da2) If da1 and da2 are identical drives, the easiest procedure is probably: 1. backup all data (this is the most important step - you WILL be destroying all your data) 2. Use disklabel to change partitions to type "vinum" 3. use disklabel to duplicate the partition table on da1 onto da2 4. create a config file, and use it to define the vinum devices- example: drive d1f device /dev/da1f drive d2f device /dev/da2f ... (define other devices) volume homemirror plex org concat sd drive d1f size 0 plex org concat sd drive d2f size 0 ... (define other volumes) 5. Run vinum(8) and use the create command to create volumes from your config file 6. Restore your data -- If a bird in the hand is worth two in the bush, then what can I get for two hands in the bush? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message