From owner-freebsd-stable Fri Nov 29 15:56:51 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 443D137B401 for ; Fri, 29 Nov 2002 15:56:49 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id A599043EAF for ; Fri, 29 Nov 2002 15:56:47 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id A729A51916; Sat, 30 Nov 2002 10:26:45 +1030 (CST) Date: Sat, 30 Nov 2002 10:26:45 +1030 From: Greg 'groggy' Lehey To: "Marc G. Fournier" Cc: freebsd-stable@freebsd.org Subject: Re: Recreating vinum device ... Message-ID: <20021129235645.GA17834@wantadilla.lemis.com> References: <20021128234433.GG50205@wantadilla.lemis.com> <20021128230846.P16724-100000@hub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021128230846.P16724-100000@hub.org> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thursday, 28 November 2002 at 23:13:27 -0400, Marc G. Fournier wrote: > On Fri, 29 Nov 2002, Greg 'groggy' Lehey wrote: > >> On Thursday, 28 November 2002 at 16:26:09 -0400, Marc G. Fournier wrote: >>> On Thu, 28 Nov 2002, Marc G. Fournier wrote: >>> >>>> >>>> Okay, I need to confirm this before I run it, cause if it doesn't work, >>>> I'm royally screwed ... >>>> >>>> The old server, the drives on the controller I couldn't bring up had a >>>> vinum RAID5 device on it ... I have the original config file that I used >>>> to create that ... >>>> >>>> If I run 'vinum create -f ' and don't run newfs, will I still >>>> end up toasting the RAID5 array, or is this safe? What happens if I >>>> inadvertently reversed the drives? Is there some way that I need to be >>>> doing this that I'm not seein gin the vinum man page? >>> >>> Got it *wipe brow* Kudos to he who developed vinum, brow is still a >>> wee damp, but the man page is great and figured out that create is >>> not the way to go :) >> >> JOOI, what happened, and how did you fix it? > > We had an IBM xSeries server that FreeBSD lost its ability to recognize > the 39160 dual channel controller that we had 14 drives sitting on ... we > moved the hardware to another, non-IBM machine (ie. my desktop), which all > the hardware show'd up on, but, in the excitement, we didn't think to mark > the cables as to which channel was which, and, of course, my desktop > didn't have the appropriate /dev/vinum devices ... You don't need them. Vinum creates them on startup. > now, I notice(d) that the drives appear to store their own information > internally, which the dumpconfig was able to show up ... if I had plugged > the channels in wrong (ie. da0 -> da7, da7 -> d0), what would have > happened had I run 'vinum start'? would it know to arrange the drives > properly regardless, or would I risk screwin gmy file system? ::( It would have worked. If you look at dumpconfig, you'll notice that each drive knows its own name: Drive /dev/da3s4h: 4094 MB (4293563904 bytes) Drive d: Device /dev/da4s4h Created on monorchid.lemis.com at Wed Nov 27 17:28:04 2002 Config last updated Fri Nov 29 14:12:37 2002 Size: 4293563904 bytes (4094 MB) volume swap state up volume root state up That's precisely why drives have their own names rather than using the name of the underlying disk device. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message