From owner-freebsd-questions Wed Feb 3 16:12:13 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA25913 for freebsd-questions-outgoing; Wed, 3 Feb 1999 16:12:13 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA25881 for ; Wed, 3 Feb 1999 16:12:03 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id KAA02483; Thu, 4 Feb 1999 10:42:00 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.2/8.9.0) id KAA63684; Thu, 4 Feb 1999 10:42:00 +1030 (CST) Date: Thu, 4 Feb 1999 10:42:00 +1030 From: Greg Lehey To: Mark Powell Cc: freebsd-questions@FreeBSD.ORG Subject: Re: What's DIOCWLABEL mean? Message-ID: <19990204104200.Q1179@freebie.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: ; from Mark Powell on Wed, Feb 03, 1999 at 04:43:23PM +0000 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Format recovered at freebie.lemis.com] On Wednesday, 3 February 1999 at 16:43:23 +0000, Mark Powell wrote: > Trying to label the drives on a 3.0-STABLE box that has 7 drives connected > to 3 channels, on a DPT SmartRAID IV. All drives are identical with 2 on > each bus except bus 1 which has 3 drives. > > ------ > da0 at dpt0 bus 0 target 0 lun 0 > da0: 4119MB (8436988 512 byte sectors: 255H 63S/T 525C) > da1: 4119MB (8436988 512 byte sectors: 255H 63S/T 525C) > da2: 4119MB (8436988 512 byte sectors: 255H 63S/T 525C) > da3: 4119MB (8436988 512 byte sectors: 255H 63S/T 525C) > da4: 4119MB (8436988 512 byte sectors: 255H 63S/T 525C) > da5: 4119MB (8436988 512 byte sectors: 255H 63S/T 525C) > da6: 4119MB (8436988 512 byte sectors: 255H 63S/T 525C) > > However, I just can't put a label on da4 onwards. > da3 is no problem: > > But da4, is: > > $ disklabel da3 > /tmp/label > $ disklabel -R -r da4 /tmp/label > disklabel: ioctl DIOCWLABEL: Operation not supported by device > > Why can I not alter the labels on da4-6 ? To answer the question in the Subject: line: DIOCWLABEL is an ioctl call saying ``write disk label''. There's no such underlying operation on the device: it just writes in a particular place. Before considering it a bug in the DPT hardware or software, I'd be inclined to check the major and minor numbers for your /dev/da* files, and to run ktrace on the disklabel operation to find out which device disklabel really tries to open. If all appears correct, you should submit a bug report. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html 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