From owner-freebsd-geom@FreeBSD.ORG Tue Jan 11 13:18:39 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D906106566B; Tue, 11 Jan 2011 13:18:39 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id F0DAD8FC1E; Tue, 11 Jan 2011 13:18:38 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id AC15C19E039; Tue, 11 Jan 2011 14:00:32 +0100 (CET) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 9E77819E038; Tue, 11 Jan 2011 14:00:29 +0100 (CET) Message-ID: <4D2C546D.8010604@quip.cz> Date: Tue, 11 Jan 2011 14:00:29 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.16) Gecko/20101123 SeaMonkey/2.0.11 MIME-Version: 1.0 To: Steve Price References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: gmirror panic on RELENG_8 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2011 13:18:39 -0000 Steve Price wrote: > I installed 8.2-RC1 on a machine with 3 identical drives and got a > kernel panic when trying to load geom_mirror on boot. Try as I > might I've been unable to get a coredump so I can investigate further. > > Minimum required to reproduce the error here is to install 8.2-RC1 > from CD and on reboot, drop to the boot loader prompt and type: > > load geom_mirror > boot > > da0 contains all of the installed files, da1 was to be a mirror of da0 > so was left alone, and da2 was created as one big partition. > > I first noticed this when I installed 8.1-RC1 and then ran the following > commands after rebooting from the initial install: > > sysctl kern.geom.debugflags=17 > gmirror label -vb round-robin gm0 /dev/da0 > echo 'geom_mirror_load="YES"'>> /boot/loader.conf > sed -i.bak -e's,da0,mirror/gm0,g' /etc/fstab > reboot > > When the box came back up I got a panic. I've tried various combos > to figure out what the minimum was to reproduce this. I've verified > that 8.0-RELEASE, and 8.1-RELEASE don't exhibit this same behavior. > > If further info is required, please let me know. There must be some odd problem in your case. I am running 8.2-RC1 with gmirror on production machine without any panic. The system was upgraded from 7.2. root@cage ~/# uname -srmi FreeBSD 8.2-RC1 amd64 GENERIC root@cage ~/# gmirror status Name Status Components mirror/gms1 COMPLETE ad4s1 ad6s1 root@cage ~/# gmirror list Geom name: gms1 State: COMPLETE Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 3764583301 Providers: 1. Name: mirror/gms1 Mediasize: 21451497472 (20G) Sectorsize: 512 Mode: r5w5e9 Consumers: 1. Name: ad4s1 Mediasize: 21451497984 (20G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 1 ID: 1333090696 2. Name: ad6s1 Mediasize: 21451497984 (20G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 1 ID: 1584887928 root@cage ~/# kldstat Id Refs Address Size Name 1 21 0xffffffff80100000 da0458 kernel 2 1 0xffffffff80ea1000 21068 geom_mirror.ko 3 1 0xffffffff81022000 104a7a zfs.ko 4 1 0xffffffff81127000 1a22 opensolaris.ko 5 1 0xffffffff81129000 57d7 if_bridge.ko 6 1 0xffffffff8112f000 3536 bridgestp.ko 7 1 0xffffffff81133000 264e if_tap.ko 8 1 0xffffffff81136000 2bd81 pf.ko 9 1 0xffffffff81162000 1fde nullfs.ko gmirror is loaded from loader.conf root@cage ~/# grep -v ^# /boot/loader.conf hw.bge.allow_asf="1" geom_mirror_load="YES" vm.kmem_size="1280M" vm.kmem_size_max="1280M" kern.maxvnodes="400000" vfs.zfs.prefetch_disable="1" vfs.zfs.arc_min="64M" vfs.zfs.arc_max="512M" kern.ipc.semmni=100 kern.ipc.semmns=1000 kern.ipc.semmnu=300 Miroslav Lachman