From owner-freebsd-questions Tue Nov 26 2:56:34 2002 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 2421037B401; Tue, 26 Nov 2002 02:56:31 -0800 (PST) Received: from male.aldigital.co.uk (male.aldigital.co.uk [213.129.64.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97D0443E88; Tue, 26 Nov 2002 02:56:26 -0800 (PST) (envelope-from adam@algroup.co.uk) Received: from algroup.co.uk (geology.thebunker.net [213.129.64.4]) by male.aldigital.co.uk (Postfix) with ESMTP id ED0C2983D3; Tue, 26 Nov 2002 10:56:18 +0000 (GMT) Message-ID: <3DE353C7.5080704@algroup.co.uk> Date: Tue, 26 Nov 2002 10:58:15 +0000 From: Adam Laurie Organization: A.L. Group plc User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.1) Gecko/20021114 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg 'groggy' Lehey Cc: questions@freebsd.org, Adam Laurie Subject: Re: vinum documentation References: <3DE244ED.8000903@algroup.co.uk> <20021125224557.GJ41068@wantadilla.lemis.com> Content-Type: text/plain; charset=us-ascii; format=flowed 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 Greg 'groggy' Lehey wrote: > On Monday, 25 November 2002 at 15:42:37 +0000, Adam Laurie wrote: > >>hi, >> >>who is the best person to talk to regarding vinum docco? > > > I suppose I'm as good as any. > > >>the reason i ask is because i recently had to recover a crashed >>system with vinum runinng on it, and i had a recovery scenario which >>doesn't appear to be covered by any of the docs or online faqs... my >>company has therefore tasked me with submitting a patch and getting >>said docco updated... >> >>fyi, the scenario was that the root disk containing /dev/vinum >>lost so the whole thing was moved onto a fresh install. > > > That doesn't make any sense. sorry - that should have said the root disk *was* lost. i.e. i was working on a brand new system disk which didn't have /dev/vinum on it. > > >>the tricky bit was to get vinum to come back up without initialising >>& wiping the volume(s). > > > vinum start see above. since the system didn't know about the raid, there was nothing to start. > > >>please respond to me direct - i am not subscribed to questions... > > > I'd be very interested to know what happened and what you did. ok, so we built a new bsd boot disk and did a vinum create with the original config to create the /dev/vinum tree: drive d0 device /dev/da0s1e drive d1 device /dev/da1s1e drive d2 device /dev/da2s1e drive d3 device /dev/da3s1e drive d4 device /dev/da4s1e drive d5 device /dev/da5s1e drive d6 device /dev/da6s1e drive d7 device /dev/da7s1e drive d8 device /dev/da8s1e drive d9 device /dev/da9s1e volume raid1 plex org raid5 512k sd length 5g drive d0 sd length 5g drive d1 sd length 5g drive d2 sd length 5g drive d3 sd length 5g drive d4 sd length 5g drive d5 sd length 5g drive d6 sd length 5g drive d7 sd length 5g drive d8 sd length 5g drive d9 volume raid2 plex org raid5 512k sd length 0 drive d0 sd length 0 drive d1 sd length 0 drive d2 sd length 0 drive d3 sd length 0 drive d4 sd length 0 drive d5 sd length 0 drive d6 sd length 0 drive d7 sd length 0 drive d8 sd length 0 drive d9 however, when we did a vinum start, raid1.p0.s0 and raid2.p0.s0 went to 'init' state, so we shut it down. the eventual fix was to do a 'vinum read' on each of the devices, set raid1.p0.s0 and raid2.p0.s0 to obsolete (as they had been clobbered by the init) and then start everything. i suspect what i should have done right from the start was just the 'vinum read' on each hard disk instead of the create which made it think it was a new raid? > Have > you read http://www.vinumvm.org/vinum/replacing-drive.html? yep. like all the others i've found, this deals with fixing problems within the raid itself, not moving a working raid onto a new system (which is effectively what i was doing). cheers, Adam -- Adam Laurie Tel: +44 (20) 8742 0755 A.L. Digital Ltd. Fax: +44 (20) 8742 5995 The Stores http://www.thebunker.net 2 Bath Road http://www.aldigital.co.uk London W4 1LT mailto:adam@algroup.co.uk UNITED KINGDOM PGP key on keyservers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message