From owner-freebsd-hackers@freebsd.org Mon Dec 19 21:27:13 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3DEF5C88152 for ; Mon, 19 Dec 2016 21:27:13 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt0-x22c.google.com (mail-qt0-x22c.google.com [IPv6:2607:f8b0:400d:c0d::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E28721586; Mon, 19 Dec 2016 21:27:12 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt0-x22c.google.com with SMTP id w33so159558308qtc.3; Mon, 19 Dec 2016 13:27:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=J6qkXDw7mt+LpldZJKdLCUElIZn1yLJLqILzNJxM2SU=; b=O0DWqOOOZfO0Mjool0Aw4TqwBRdAls9hz+zbHByGCNJNnaljAQnKvxUhRMcXKtijX+ Nx9SwIoFxO0MOZxG9Z1PyhkXk34d87uetATdL6uzVkdKszc5ZayRCqEXl7bf+PUCA5Tq om+m7Q56PizLdDout4SWb/yoOz7SPoTIHbdKKewPWClyhc1/UiIa+/eoJ8K711Q+NBob 5qGFZT3BJvT4O3BrLkclHVcW/kllGykNB7qIFFIX50n5gDpV52lDBX1kv1HgXyqHiTkk 508JWjz4rGZL9U1cfh1cJz5h357w0cmZWDNfwu/5igSHpJEJJ5Tvy+7GmQV+SetsAmca Levw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=J6qkXDw7mt+LpldZJKdLCUElIZn1yLJLqILzNJxM2SU=; b=g6I5zF8hcimsBU6tXbuEEpHy88SE7wep/CtUKrNxKr9jn2boN67ho2TA0tl2J9N9Zr 3CnlWiyPieBEj5Mr90PYx8QC1RlIyi3UOB0aKx8OvQNMXx804X8XaiCN+Y9FcAkLAXOC qrwlPoWtKbk7XGLCG+KWM+1RU7OhDSVLwz9jrAhixMO8oM2N/Qy3l+lCJIKafu1SrU7w KfeD8euFXnTVr6Wps1sXwKwnYN8xYn7dvx7ZhnjAV3zF+2qymOI4TjflDcNnsnJVrlAx YPvH8nRBavtti+UgohlAOcJipV6pppDkJKUuYQCe4sP9anDafaDLOfneP8kxwk0CaDO7 K/Uw== X-Gm-Message-State: AIkVDXKOJoaZoN20LfZMd3ldXYLH8PxtF52mVd8nqdOmo0cPtVFJRHwdCX0buUln5dwBBw== X-Received: by 10.237.37.196 with SMTP id y4mr19323138qtc.8.1482182832043; Mon, 19 Dec 2016 13:27:12 -0800 (PST) Received: from wkstn-mjohnston.west.isilon.com (c-76-104-201-218.hsd1.wa.comcast.net. [76.104.201.218]) by smtp.gmail.com with ESMTPSA id 29sm11409426qtu.21.2016.12.19.13.27.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Dec 2016 13:27:11 -0800 (PST) Sender: Mark Johnston Date: Mon, 19 Dec 2016 13:33:08 -0800 From: Mark Johnston To: Alan Somers Cc: "freebsd-hackers@freebsd.org" Subject: Re: Setting a dump device from db> ? Message-ID: <20161219213308.GA55919@wkstn-mjohnston.west.isilon.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 21:27:13 -0000 On Mon, Dec 19, 2016 at 02:16:25PM -0700, Alan Somers wrote: > Is it possible to set a dump device from loader.conf or from the db> > prompt? I'm trying to investigate a panic in mpr(4), but I can only > reproduce it during the boot, before rc(8) has set my dump device. It > looks like ada(4) initializes before mpr(4), so I should be able to > dump to an ada device, if only I can figure out how. If not, I > suppose I'll have to try gdb over firewire. You can set "dumpdev=ada0p1" or so in loader.conf. See g_dev_init() and init_dumpdev(). This should probably be documented in loader.conf(5).