Subject: kern/20989: When raidctl -a fails RAIDFRAME remembers bad device
To: None <>
From: None <>
List: netbsd-bugs
Date: 04/03/2003 17:35:27
>Number:         20989
>Category:       kern
>Synopsis:       When raidctl -a fails RAIDFRAME remembers bad device
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 03 09:36:00 PST 2003
>Originator:     Charlie Root
>Release:        NetBSD 1.6.1
System: NetBSD 1.6.1 NetBSD 1.6.1 (_GATEWAY_) #0: Thu Apr 3 10:11:16 UTC 2003 i386
Architecture: i386
Machine: i386
	If 'raidctl -a' fails to add a partition to a raid device it appears
	to not close the partition, causing any future attempt to add the
	partition (for example after resizing) to fail.

	Attempt to add a too-small partition to a raidframe device.
	Resize the partition and try again - it will report

raidctl: ioctl (RAIDFRAME_ADD_HOT_SPARE) failed: Device busy
Apr  3 17:33:51 zelda /netbsd: raidlookup on device: /dev/wd0a failed!

	reboot machine before retrying.