From owner-freebsd-scsi@FreeBSD.ORG Tue Jun 24 13:08:47 2014 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 951B0A4 for ; Tue, 24 Jun 2014 13:08:47 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7270E26FB for ; Tue, 24 Jun 2014 13:08:47 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s5OD8exv020019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 24 Jun 2014 06:08:40 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s5OD8eCZ020018; Tue, 24 Jun 2014 06:08:40 -0700 (PDT) (envelope-from jmg) Date: Tue, 24 Jun 2014 06:08:40 -0700 From: John-Mark Gurney To: Sumit Saxena Subject: Re: Kernel panic: message secondary GPT header is not in the last LBA Message-ID: <20140624130840.GK1560@funkthat.com> Mail-Followup-To: John-Mark Gurney , Sumit Saxena , freebsd-scsi@freebsd.org, Kashyap Desai References: <559aba5a124ee1e32ddffb1380399e28@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <559aba5a124ee1e32ddffb1380399e28@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Tue, 24 Jun 2014 06:08:40 -0700 (PDT) Cc: freebsd-scsi@freebsd.org, Kashyap Desai X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2014 13:08:47 -0000 Sumit Saxena wrote this message on Tue, Jun 24, 2014 at 18:27 +0530: > Hi All, > > > > While doing some testing on driver, I am facing kernel panic > inside GEOM module. I am using FreeBSD10.0 64bit, installed on Virtual > drive connected behind LSI MegaRAID SAS 9361 controller and two Enclosures- > Dell MD1220 with total 39 drives are connected to the controller. As I > convert unconfigured drives(connected to Enclosures) to JBOD(plain drive > without any RAID configuration exposed to OS), kernel panic is observed > inside GEOM module with below traces- > > > > =================================================== > > ses1: phy 0: protocols: Initiator( None ) Target( SSP ) > > ses1: phy 0: parent 50080e5223c0f03f addr 5000c5001afebe51 > > ses1: pass30,da26: Element descriptor: 'SLOT 20 ' > > ses1: pass30,da26: SAS Device Slot Element: 1 Phys at Slot 20, Not All Phys > > ses1: phy 0: SAS device type 1 id 0 > > ses1: phy 0: protocols: Initiator( None ) Target( SSP ) > > ses1: phy 0: parent 50080e5223c0f03f addr 5000c5004cf152f1 > > ses1: pass37,da33: Element descriptor: 'SLOT 21 ' > > ses1: pass37,da33: SAS Device Slot Element: 1 Phys at Slot 21, Not All Phys > > ses1: phy 0: SAS device type 1 id 0 > > ses1: phy 0: protocols: Initiator( None ) Target( SSP ) > > ses1: phy 0: parent 50080e5223c0f03f addr 5000c5001afd3659 > > ses1: pass21,da17: Element descriptor: 'SLOT 22 ' > > ses1: pass21,da17: SAS Device Slot Element: 1 Phys at Slot 22, Not All Phys > > ses1: phy 0: SAS device type 1 id 0 > > ses1: phy 0: protocols: Initiator( None ) Target( SSP ) > > ses1: phy 0: parent 50080e5223c0f03f addr 5000cca00baf22c1 > > GEOM: da12: the secondary GPT header is not in the last LBA. > > > > > > Fatal trap 18: integer divide fault while in kernel mode > > cpuid = 4; apic id = 10 > > instruction pointer = 0x20:0xffffffff80805045 > > stack pointer = 0x28:0xfffffe0c23ded9e0 > > frame pointer = 0x28:0xfffffe0c23deda30 > > code segment = base 0x0, limit 0xfffff, type 0x1b > > = DPL 0, pres 1, long 1, > def32 0, gran 1 > > processor eflags = interrupt enabled, resume, IOPL = 0 > > current process = 13 (g_event) > > trap number = 18 > > panic: integer divide fault > > cpuid = 4 > > KDB: stack backtrace: > > #0 0xffffffff808cb220 at kdb_backtrace+0x60 > > #1 0xffffffff80892d05 at panic+0x155 > > #2 0xffffffff80c71ae2 at trap_fatal+0x3a2 > > #3 0xffffffff80c7171f at trap+0x7bf > > #4 0xffffffff80c587e2 at calltrap+0x8 > > #5 0xffffffff80803574 at g_label_taste+0x3a4 > > #6 0xffffffff80802106 at g_new_provider_event+0xb6 > > #7 0xffffffff807fe1d6 at g_run_events+0x166 > > #8 0xffffffff80864dda at fork_exit+0x9a > > #9 0xffffffff80c58d1e at fork_trampoline+0xe > > Uptime: 4m48s > > kernel trap 12 with interrupts disabled Can you run w/ DDB enabled and get a dump? an integer divide makes me think of a divide by zero error... Are you sure things like sector size are set properly? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."