From owner-freebsd-questions Tue May 9 18: 9:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id 603AD37B66B for ; Tue, 9 May 2000 18:09:12 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id KAA85284; Wed, 10 May 2000 10:39:03 +0930 (CST) Date: Wed, 10 May 2000 10:39:03 +0930 From: Greg Lehey To: Rick Moore Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Vinum problem Message-ID: <20000510103903.X75157@freebie.lemis.com> References: <004201bfb9e7$6f92f870$fd64a8c0@patches> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <004201bfb9e7$6f92f870$fd64a8c0@patches> Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Format recovered--see http://www.lemis.com/email/email-format.html] On Tuesday, 9 May 2000 at 11:50:23 -0700, Rick Moore wrote: > Hello! > > I'm running a fresh load of FreeBSD 4.0. I've got 10 SCSI disks > running on an Adaptec 39160 which appear to work fine with file > systems. > > I remove the file systems from fstab and reboot. All the labels > look like this: > > # /dev/rda0c: > type: SCSI > disk: da0s1 > label: > flags: > bytes/sector: 512 > sectors/track: 51 > tracks/cylinder: 166 > sectors/cylinder: 8466 > cylinders: 2118 > sectors/unit: 17938986 > rpm: 3600 > interleave: 1 > trackskew: 0 > cylinderskew: 0 > headswitch: 0 # milliseconds > track-to-track seek: 0 # milliseconds > drivedata: 0 > > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > c: 17938986 0 unused 0 0 # (Cyl. 0 - 2118*) > e: 17938986 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 2118*) You need a vinum partition somewhere. > I start vinum with "kldload vinum" You don't need to do that. Starting vinum will load the kld automatically. > and issue the following command: > > vinum "create -f striping" where "striping" is the following: > > drive d0 device /dev/da0e This won't work. You need a partition of type 'vinum'. From the man page: DRIVE LAYOUT CONSIDERATIONS vinum drives are currently BSD disk partitions. They must be of type vinum in order to avoid overwriting data used for other purposes. Use disklabel -e to edit a partition type definition. The following display shows a typical partition layout as shown by disklabel: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 81920 344064 4.2BSD 0 0 0 # (Cyl. 240*- 297*) b: 262144 81920 swap # (Cyl. 57*- 240*) c: 4226725 0 unused 0 0 # (Cyl. 0 - 2955*) e: 81920 0 4.2BSD 0 0 0 # (Cyl. 0 - 57*) f: 1900000 425984 4.2BSD 0 0 0 # (Cyl. 297*- 1626*) g: 1900741 2325984 vinum 0 0 0 # (Cyl. 1626*- 2955*) In this example, partition g may be used as a vinum partition. Parti- tions a, e and f may be used as UFS file systems or ccd partitions. Par- tition b is a swap partition, and partition c represents the whole disk and should not be used for any other purpose. > This works OK every now and then. That surprises me. > Very often the server crashes! If you have a crash, please supply the information I ask for in the man page: Reporting problems with Vinum If you find any bugs in vinum, please report them to Greg Lehey . Supply the following information: o The output of the vinum list command. o Any messages printed in /var/log/messages. All such messages will be identified by the text vinum at the beginning. o If you have a panic, a stack trace as described above. You can get more detail at http://www.lemis.com/vinum/how-to-debug.html. > Of course, the resulting volume is too small to be useful. The output of 'vinum list' would be interesting here. > As a test I run "vinum resetconfig" followed by "vinum create -f > striping" again. This time the server crashes. It's the exact same > config file! I'd like to see the dump. It looks like your disk layout is hosed, but it shouldn't cause a panic. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message