From nobody@FreeBSD.org  Thu Dec  8 20:05:02 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id EC3CD106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  8 Dec 2011 20:05:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id DCF3C8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  8 Dec 2011 20:05:02 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pB8K52PI026118
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 8 Dec 2011 20:05:02 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pB8K5275026117;
	Thu, 8 Dec 2011 20:05:02 GMT
	(envelope-from nobody)
Message-Id: <201112082005.pB8K5275026117@red.freebsd.org>
Date: Thu, 8 Dec 2011 20:05:02 GMT
From: Dan Pritts <danno@internet2.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: cannot dumpon to mpt connected disk
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163130
>Category:       kern
>Synopsis:       [mpt] cannot dumpon to mpt connected disk
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-scsi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 08 20:10:06 UTC 2011
>Closed-Date:    Mon Feb 27 15:30:54 UTC 2012
>Last-Modified:  Mon Feb 27 16:50:05 UTC 2012
>Originator:     Dan Pritts
>Release:        8.2 RELEASE amd64
>Organization:
Internet2
>Environment:
FreeBSD foo.internet2.edu 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Can't set kernel dump device to a swap partition on an LSI controller.

hardware is sun x4200

# swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/da16s1b      1024000        0  1024000     0%
/dev/da16s1d     24575120        0 24575120     0%
Total            25599120        0 25599120     0%
# dumpon /dev/da16s1d
dumpon: ioctl(DIOCSKERNELDUMP): Operation not supported by device

da16 is on an mpt controller:

kernel: mpt1: <LSILogic SAS/SATA Adapter> port 0x8400-0x84ff mem 0xfb0bc000-0xfb0bffff,0xfb0a0000-0xfb0affff irq 28 at device 3.0 on pci2
kernel: mpt1: [ITHREAD]
kernel: mpt1: MPI Version=1.5.13.0
kernel: mpt1: Capabilities: ( RAID-0 RAID-1E RAID-1 )
kernel: mpt1: 1 Active Volume (2 Max)
kernel: mpt1: 2 Hidden Drive Members (10 Max)


>How-To-Repeat:
type dumpon until your fingers fall off
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Dec 9 03:14:33 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163130 
State-Changed-From-To: open->feedback 
State-Changed-By: marius 
State-Changed-When: Sun Dec 11 11:49:04 UTC 2011 
State-Changed-Why:  
Are you sure that /dev/da16s1d is either unused, i.e. has no partition 
type set, or is of type freebsd-swap? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163130 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Mon Feb 27 15:30:51 UTC 2012 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163130 

From: Dan Pritts <danno@internet2.edu>
To: bug-followup@FreeBSD.org, danno@internet2.edu
Cc:  
Subject: Re: kern/163130: [mpt] cannot dumpon to mpt connected disk
Date: Mon, 27 Feb 2012 11:28:52 -0500

 Hi,
 
 I remember responding to this but I must have not hit "send" or something
 
 Your diagnosis was correct, we had the wrong partition type set.
 
 However, this requirement is not listed in the dumpon man page.
 
 It is implied in the "implementation notes"; "use one of the system swap 
 devices".  But I had successfully configured the partition in question 
 as a swap device, so it seemed like I'd satisfied that requirement.
 
 It  makes good sense to enforce this restriction.  It'da be great to 
 also have it spelled out explicitly in the man page.
 
 thanks
 danno
 -- 
 Dan Pritts, Sr. Systems Engineer
 Internet2
 office: +1-734-352-4953 | mobile: +1-734-834-7224
>Unformatted:
