From owner-freebsd-current@FreeBSD.ORG Tue Mar 17 16:56:59 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0093106570E; Tue, 17 Mar 2009 16:56:59 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout020.mac.com (asmtpout020.mac.com [17.148.16.95]) by mx1.freebsd.org (Postfix) with ESMTP id 8AA0D8FC1D; Tue, 17 Mar 2009 16:56:59 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp020.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KGN00254TQY43A0@asmtp020.mac.com>; Tue, 17 Mar 2009 09:56:59 -0700 (PDT) Message-id: From: Marcel Moolenaar To: Ivan Voras In-reply-to: Date: Tue, 17 Mar 2009 09:56:57 -0700 References: X-Mailer: Apple Mail (2.930.3) Cc: freebsd-current@freebsd.org Subject: Re: A trio of problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2009 16:57:01 -0000 On Mar 17, 2009, at 2:31 AM, Ivan Voras wrote: > Marcel Moolenaar wrote: >> >> On Mar 16, 2009, at 4:28 PM, Ivan Voras wrote: >> >>> 2. I can't set a kernel coredump directory. The setup is not >>> unusual (no >>> gmirror, etc.) - simply partitions handled by GPART. The error is in >>> ioctl(DIOCSKERNELDUMP): Device not configured. The only thing that >>> comes >>> to my mind is that the swap device is 2 GB while the machine has 4 >>> GB >>> RAM but AFAIK minidumps should work? If I can get coredumps to >>> work I >>> could provide more information on the first problem. >> >> What's the partition type of the partition you're trying to dump >> to? > > It's ad8s2b from our earlier conversation. > > 2. Name: ad8s2b > Mediasize: 2147483648 (2.0G) > Sectorsize: 512 > Mode: r1w1e0 > rawtype: 7 > length: 2147483648 > offset: 19327352832 > type: freebsd-ufs > index: 2 > end: 41943039 > start: 37748736 > > I see it's labeled as freebsd-ufs. AFAIK I created this file system > with > sysinstall. > > Do I need to change the type? Any special instructions? Yes. Change the type to freebsd-swap if you're going to be dumping kernel core files on it. The anti-footshooting checks in gpart prevent you from dumping to UFS partitions: % sudo gpart modify -i 2 -t freebsd-swap ad8s2 FYI, -- Marcel Moolenaar xcllnt@mac.com