Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 2009 09:56:57 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Ivan Voras <ivoras@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: A trio of problems
Message-ID:  <A4550B38-1E3E-422B-A42B-0AB818EC37F0@mac.com>
In-Reply-To: <gpnqmc$lt5$1@ger.gmane.org>
References:  <gpmnba$3na$1@ger.gmane.org> <ACB20835-A9F9-48BA-9614-6283936CA164@mac.com> <gpnqmc$lt5$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A4550B38-1E3E-422B-A42B-0AB818EC37F0>