From pete@toscano.org  Mon Feb 10 20:55:15 2003
Return-Path: <pete@toscano.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3919D37B401
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <pete-freebsd-pr@toscano.org>
Reply-To: Pete Toscano <pete-freebsd-pr@toscano.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Problem accessing /dev/ar2 with disklabel
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         48165
>Category:       kern
>Synopsis:       Problem accessing /dev/ar2 with disklabel
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 10 21:00:27 PST 2003
>Closed-Date:    Mon May 05 05:20:51 PDT 2003
>Last-Modified:  Mon May 05 05:20:51 PDT 2003
>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:

From: pete-freebsd-pr@toscano.org
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/48165: Problem accessing /dev/ar2 with disklabel
Date: Sat, 8 Mar 2003 10:58:45 -0500

 Is anybody looking at this?
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon May 5 05:19:37 PDT 2003 
State-Changed-Why:  
There was alot of ATA RAID fixed done for 4.8 so you should 
update and see if that doesn't fix your problems. 
If the problem still persist, get back to me and at the 
very least provide a full dmesg and the output of pciconf -l 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48165 
>Unformatted:
