Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 May 2009 23:10:32 GMT
From:      Andrzej Chabierski <bugger@langusta.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/134922: kernel panic when use fdisk on disk who been removed from gmirror
Message-ID:  <200905242310.n4ONAWDW065471@www.freebsd.org>
Resent-Message-ID: <200905242320.n4ONK1dF020233@freefall.freebsd.org>

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

>Number:         134922
>Category:       kern
>Synopsis:       kernel panic when use fdisk on disk who been removed from gmirror
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 24 23:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Andrzej Chabierski
>Release:        7.2
>Organization:
>Environment:
FreeBSD bsdtest.outsider.pl 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009     root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
~:>gmirror status
      Name    Status  Components
mirror/gm0  COMPLETE  ad4
                      ad6

~:>gmirror remove -v gm0 ad6
Done.

~:>gmirror status
      Name    Status  Components
mirror/gm0  COMPLETE  ad4

~:>fdisk -BI /dev/ad6
******* Working on device /dev/ad6 *******
fdisk: Geom not found: "ad6"

Now - one more time: 
---
~:>fdisk -BI /dev/ad6
******* Working on device /dev/ad6 *******
---
and I get kernel panic.
 
On the console:
---
GEOM_LABEL: Label ufsid/4a0aa286db37b22c removed.
Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address  = 0x14
fault code              = supervisor read, page not present
instruction pointer    = 0x20:0xc0788b33
stack pointer          = 0x28:0xe571dc5c
frame pointer          = 0x28:0xe571dc90
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process        = 2 (g_event)
trap number            = 12
panic: page fault
cpuid = 1
Uptime: 20h32m28s
Physical memory: 2035 MB
Dumping 72 MB:ata2: FAILURE - oversized DMA transfer attempt 65536 > 32768
ad4: setting up DMA failed
** DUMP FAILED (ERROR 5) **
Automatic reboot in 15 seconds - press a key on the console to abort
Rebooting...
---
>How-To-Repeat:
1. remove disk from gmirror
2. run twice "fdisk -BI" on this disk

>Fix:
when
---
dd if=/dev/zero of=/dev/ad6 bs=1M count1
---
kernel not panic on the fdisk.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905242310.n4ONAWDW065471>