Subject: port-i386/35957: ld0 gives DIOCGDEFLABEL "Inappropriate ioctl for device" on install
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <drankin@bohemians.lexington.ky.us>
List: netbsd-bugs
Date: 03/09/2007 10:35:00
>Number:         35957
>Category:       port-i386
>Synopsis:       ld0 gives DIOCGDEFLABEL "Inappropriate ioctl for device" on install
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 09 10:35:00 +0000 2007
>Originator:     David Rankin
>Release:        NetBSD 4.0_BETA2 (Thu Mar  1 05:19:13 PST 2007)
>Organization:
Bohemians Unincorporated
>Environment:
	
	
System: NetBSD 4.0_BETA2 (INSTALL) #0: Thu Mar  1 05:19:13 PST 2007 builds@wb33:/home/builds/ab/netbsd-4/i386/200703010002Z-obj/home/builds/ab/netbsd-4/src/sys/arch/i386/compile/INSTALL
Architecture: i386
Machine: i386
>Description:
During sysinst install for a Dell PowerEdge 2450 with aac0, I cannot install
on any of the ld* devices because the ioctl fdisk: DIOCGDEFLABEL isn't working,
with the message "Inappropriate ioctl for device". fdisk will throw
"fdisk: DIOCGDEFLABEL: Inappropriate ioctl for device", and sysinst says
"no disks".

I've confirmed that 3.1 will install correctly, so there is a code regression
between 3.1 and 4.0. I have installed 4.0 Beta 2 on this system with the
RAID controller disabled, so I can confirm that there are no hardware
issues.

relevant dmesg output:
aac0 at pci1 dev 2 function 1: Dell PERC 3/Si
aac0: interrupting at irq 10
aac0: i960RX at 100MHz, 64MB mem (54MB cache), no battery support
aac0: Kernel 2.8-1 [Build 6098], Monitor 2.8-1 [Build 6098], S/N 840AD0
aac0: Controller supports: 635c<WCACHE,DATA64,HOSTTIME,WINDOW4GB,SOFTERR,NORECOND>
ld0 at aac0 unit 0: RAID 1 (Mirror)
ld0: 17355 MB, 8815 cyl, 64 head, 63 sec, 512 bytes/sect x 35544576 sectors
ld1 at aac0 unit 1: Volume
ld1: 17355 MB, 8815 cyl, 64 head, 63 sec, 512 bytes/sect x 35544576 sectors


>How-To-Repeat:
	Attempt to install 4.0 Beta 2 on system.
>Fix:
	Unknown.

>Unformatted: