From owner-freebsd-questions@FreeBSD.ORG Thu Mar 27 17:08:14 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E90737B401 for ; Thu, 27 Mar 2003 17:08:14 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8671243F93 for ; Thu, 27 Mar 2003 17:08:12 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 6FBB851A71; Fri, 28 Mar 2003 11:38:10 +1030 (CST) Date: Fri, 28 Mar 2003 11:38:10 +1030 From: Greg 'groggy' Lehey To: james Message-ID: <20030328010810.GE72254@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2hMgfIw2X+zgXrFs" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 X-Spam-Status: No, hits=-38.3 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: freebsd-questions@freebsd.org Subject: Re: PANIC: vinum / atacontrol (5.0-STABLE) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2003 01:08:15 -0000 --2hMgfIw2X+zgXrFs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline [Format recovered--see http://www.lemis.com/email/email-format.html] Computer output wrapped. On Thursday, 27 March 2003 at 14:18:43 +0000, james wrote: > Hi > > I am trying to configure hotswap-raid and vinum on my machine, and have found I > can cause the kernel to panic at will. > > Ideally I would like to be able to stop a plex, use atacontrol attach/detach to > replace the disk, and rebuild the plex. Would this work in theory? Apparently. There was a time when people claimed that ATA drives couldn't be hot swapped, but that seems to be incorrect nowadays. > Now I stop and unload vinum, and try to run atacontrol: > > eddie# vinum stop > vinum unloaded > eddie# kldstat | grep vinum > eddie# > eddie# atacontrol detach 3 > > > I have built a debug kernel, and have a core. The backtrace is below. > > If you need any more info please let me know! > > James > > Now follows the gdb-output: > > (kgdb) bt > #9 0xc01a9223 in panic () at /usr/src/sys/kern/kern_shutdown.c:517 > #10 0xc02e311e in trap_fatal (frame=0xc0b94e00, eva=0x0) at /usr/src/sys/i386/i386/trap.c:844 > #11 0xc02e2e32 in trap_pfault (frame=0xc873fa74, usermode=0x0, eva=0x24) at /usr/src/sys/i386/i386/trap.c:758 > #12 0xc02e2a1d in trap (frame= > {tf_fs = 0xc0380018, tf_es = 0xc0b90010, tf_ds = 0x10, tf_edi = 0x0, > tf_esi = 0xc1857530, tf_ebp = 0xc873fab4, tf_isp = 0xc873faa0, tf_ > ebx = 0xc19a6c00, tf_edx = 0xe7, tf_ecx = 0xc032a340, tf_eax = 0x0, tf_trapno = > 0xc, tf_err = 0x0, tf_eip = 0xc01c6de6, tf_cs = 0x8, tf_eflag > s = 0x10292, tf_esp = 0xc873faf0, tf_ss = 0xc01296ae}) > at /usr/src/sys/i386/i386/trap.c:445 > #13 0xc02d44f8 in calltrap () at {standard input}:98 > #14 0xc01296ae in ata_command (atadev=0xc1857530, command=0xe7, lba=0x0, count=0x0, feature=0x0, flags=0x4) > at bus_at386.h:526 > #15 0xc01396df in adclose (dev=0x0, flags=0x3, fmt=0x0, td=0x0) at /usr/src/sys/dev/ata/ata-disk.c:292 (etc) The trap occurred between frames 12 and 13 at address 0xc873faa0, in the ATA code. Depending on your prowess with kernel code, you may be able to find out what has gone wrong. I'd be inclined to look at frame 13: (gdb) f 13 select frame (gdb) l list the code (gdb) i loc show local variables My guess is that something has not been initialized. It's probably worth submitting a bug report. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers --2hMgfIw2X+zgXrFs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+g6B6IubykFB6QiMRAuiEAKCgD48++OQ7exq/bfyAf8go1W+hLgCfZ4h1 nhh96GBxJ5YglW0iieVRKgc= =oyon -----END PGP SIGNATURE----- --2hMgfIw2X+zgXrFs--