From owner-freebsd-bugs Mon Feb 10 21: 0:32 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 642D237B401 for ; Mon, 10 Feb 2003 21:00:29 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E68DC4400B for ; Mon, 10 Feb 2003 21:00:27 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1B50RNS053675 for ; Mon, 10 Feb 2003 21:00:27 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1B50RJv053674; Mon, 10 Feb 2003 21:00:27 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3919D37B401 for ; Mon, 10 Feb 2003 20:55:15 -0800 (PST) Received: from toscano.org (ip68-100-184-64.nv.nv.cox.net [68.100.184.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E51643FA3 for ; Mon, 10 Feb 2003 20:55:14 -0800 (PST) (envelope-from pete@toscano.org) Received: from archive.toscano.org (localhost [127.0.0.1]) by archive.toscano.org (8.12.6/8.12.6) with ESMTP id h1B4qEpK012267 for ; Mon, 10 Feb 2003 23:52:14 -0500 (EST) (envelope-from pete@archive.toscano.org) Received: (from pete@localhost) by archive.toscano.org (8.12.6/8.12.6/Submit) id h1B4qDZV012266; Mon, 10 Feb 2003 23:52:13 -0500 (EST) Message-Id: <200302110452.h1B4qDZV012266@archive.toscano.org> Date: Mon, 10 Feb 2003 23:52:13 -0500 (EST) From: Pete Toscano Reply-To: Pete Toscano To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/48165: Problem accessing /dev/ar2 with disklabel Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 48165 >Category: kern >Synopsis: Problem accessing /dev/ar2 with disklabel >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 10 21:00:27 PST 2003 >Closed-Date: >Last-Modified: >Originator: Pete Toscano >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD archive.toscano.org 4.7-STABLE FreeBSD 4.7-STABLE #8: Sat Jan 4 08:37:10 EST 2003 root@:/usr/obj/usr/src/sys/ARCHIVE i386 600MHz PIII Promise ATA100 controller Promise TX2 ATA133 controller 3 IBM 30G hard drives, identical models. >Description: 3 IBM hard drives, A, B, and C. A contains the OS info and MP3s and digital pictures. B and C are to be made into a Vinum mirrored RAID volume. In order to sent this up, I need to a) create one big slice on both B and C and b) change the fstype label to "vinum" with "disklebel -e". I created, formatted, and mounted the slices just fine, but when it comes to editing the fslabel on /dev/ar2, I get the following response upon saving and exiting vi: ==================== disklabel: Operation not supported by device ==================== Whenever I try to show the ar2 disklabel, this is what I get: ==================== # /dev/ar2: type: unknown disk: amnesiac label: fictitious flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 3737 sectors/unit: 60036417 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: 60036417 0 unused 0 0 # (Cyl. 0 - 3737*) ==================== The strange thing is, I get the result no matter how B and C are connected or what order they are in. I could have A being the master on IDE1 (which it always is, so I'm not repeating this), B being the slave on IDE1, and C being the master on IDE2 on the ATA100 card. I could flip B and C. I could have C being the master on IDE2 with B being the slave. B could be master on IDE1 on the ATA133 card and C the master on IDE2 on the ATA133 card... Whatever the order, whatever the interface, whatever the card, whatever drive is the third to be enumerated by the OS (as /dev/ar2), that drive shows the above disklabel output. Whatever drive is enumerated second (i.e., /dev/ar1) works fine with disklabel. (FWIW, I've replaced cables with known good ones too.) >How-To-Repeat: disklabel [-e] ar2 >Fix: None >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message