From owner-freebsd-stable@freebsd.org Fri Aug 31 19:21:10 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC7F0FD5BF2 for ; Fri, 31 Aug 2018 19:21:09 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 647C88165B for ; Fri, 31 Aug 2018 19:21:09 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 2A985FD5BF0; Fri, 31 Aug 2018 19:21:09 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08D2BFD5BEE for ; Fri, 31 Aug 2018 19:21:09 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7C8A881656 for ; Fri, 31 Aug 2018 19:21:08 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pg1-x542.google.com with SMTP id d19-v6so5872326pgv.1 for ; Fri, 31 Aug 2018 12:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=9cRMAkHMWg96Pn3TnpKuqgm/MU3j+6djZrgByauhdEo=; b=Z06tCuX/e7u7I/rvuMcdnDOIHFNOZHGQuUOsYRX3Y0HfPNUeqtAxzh0xk7geyjD348 4AvqHOjHkNO85m4JIP5aa74PIT7LncxJpDy9hlpal1faVYp0/x2U6Sy9KQRWqlQX7gsO nWC2vBw4AUac7zdStA5ABEhMld/G//QzAWWzaQCgCS+LIsdQGBGvqfefmRwdjcwAtc9j Jee5jwwQmHwV4aSD8T7gGQrllmA5o2VqlJSm/OIcA2q4fSdCBXvwO8xZLEu4sBM787yY YKPP5dQ05XTFgFgxLNAEsmhcJU6Ggc+ViXdmyWY4EuHeyPtbGJf3k8QErPbuB8L/u77M 1jGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9cRMAkHMWg96Pn3TnpKuqgm/MU3j+6djZrgByauhdEo=; b=pYuqP8uo+R7mM0ZNOmGEg9LZxzbh20MkdVgTeRF7yVQP6RDOgs2VlSPP5LWiM+HpeF 4edWfiM3LOBVdHSPAbN+xVWnSP0od6/zTDFiYdR7gXOJuLSKd5PexevCdqgZpnZqOQBq jo4KPUg5KzGs/rtZqaDfTv4e2eepNyOeivjR2UmhlIN9tWBm4YaPCVc2mjd4cmbbo2o4 Awl+QPAyi8JKvHC4nfjEN8jzf3JNBxL93VuUDFlEF86/hE7CZirP7FHF8EIRPqzVyS5i kUnRz7afS4IK9fJK830qCo96tx9zqAazLJPfOJE5A/fsRX/4kvTRLpw145WatKbsMK7e 6OSg== X-Gm-Message-State: APzg51CCIVyvB+hGuNlloCPthuFXxLZdGR3Y9/2Qdmnch0YpOdIO72nD kz6GDu0a4tTXtds3JFYTJswgoMzA X-Google-Smtp-Source: ANB0Vdax8nAo63mnbxhejuv2r8SctH5tekW25Ze80QwavSVnUBZaASlrejZ08WCLrdXkVgk0vtRcgA== X-Received: by 2002:a63:c20:: with SMTP id b32-v6mr2612406pgl.400.1535743267523; Fri, 31 Aug 2018 12:21:07 -0700 (PDT) Received: from raichu (toroon0560w-lp130-09-70-52-224-239.dsl.bell.ca. [70.52.224.239]) by smtp.gmail.com with ESMTPSA id g5-v6sm16874780pfc.77.2018.08.31.12.21.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 12:21:06 -0700 (PDT) Date: Fri, 31 Aug 2018 15:21:03 -0400 From: Mark Johnston To: Eugene Grosbein Cc: Samuel Chow , stable@freebsd.org Subject: Re: Cannot setup dumpdev on glabel disk Message-ID: <20180831192103.GC54904@raichu> References: <19f80f48-5fea-e105-18b2-1a64e06acc79@shaw.ca> <6f6685d0-08c6-dbe2-62b5-3628f91917d9@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6f6685d0-08c6-dbe2-62b5-3628f91917d9@grosbein.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2018 19:21:10 -0000 On Sat, Sep 01, 2018 at 02:09:12AM +0700, Eugene Grosbein wrote: > 31.08.2018 23:08, Samuel Chow wrote: > > > I am running 11-STABLE, and I am experiencing kernel panics when I am destroying a VIMAGE-based jail. Naturally, I flipped to the chapter about 'Kernel Debugging' to learn about 'Obtaining a Kernel Crash Dump'. > > > > However, I am finding that my permanently glabel'ed disk partition cannot be used as dumpdev. Is that true, and why not? I mean, swap can use it just fine. I am unable to find this restriction in the documentation. > > > > > > # grep swap /etc/fstab > > /dev/label/boot01b none swap sw 0 0 > > # swapinfo > > Device 1K-blocks Used Avail Capacity > > /dev/label/boot01b 41943040 0 41943040 0% > > # glabel status | grep boot > > label/boot01 N/A ada4s1 > > label/boot02 N/A ada5s1 > > # dumpon /dev/label/boot01b > > dumpon: ioctl(DIOCSKERNELDUMP): Operation not supported by device > > That's not about label but underlying device that seems to be GEOM_PART_MBR > and it allows kernel dumps only if slice (MBR partition) type is 0xa5 for "freebsd" > or 0x82 ("linux swap"). Please show output of the command "gpart show ada4". Ah, right, please ignore my other reply. When I actually test it myself, dumpon /dev/label/foo seems to work; I assumed the lack of handling for GEOM::kerneldump in the glabel code was a problem. Sorry for the noise.