From owner-freebsd-geom@FreeBSD.ORG Sun Apr 6 07:04:19 2008 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 080AE1065672; Sun, 6 Apr 2008 07:04:19 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CBB918FC0C; Sun, 6 Apr 2008 07:04:18 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from freefall.freebsd.org (pjd@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3674Is6088062; Sun, 6 Apr 2008 07:04:18 GMT (envelope-from pjd@freefall.freebsd.org) Received: (from pjd@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3674Iit088058; Sun, 6 Apr 2008 07:04:18 GMT (envelope-from pjd) Date: Sun, 6 Apr 2008 07:04:18 GMT Message-Id: <200804060704.m3674Iit088058@freefall.freebsd.org> To: anatoly.borodin@gmail.com, pjd@FreeBSD.org, freebsd-geom@FreeBSD.org From: pjd@FreeBSD.org Cc: Subject: Re: kern/122415: [geom] UFS labels are being constantly created and removed. 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: Sun, 06 Apr 2008 07:04:19 -0000 Synopsis: [geom] UFS labels are being constantly created and removed. State-Changed-From-To: open->feedback State-Changed-By: pjd State-Changed-When: ndz 6 kwi 07:00:00 2008 UTC State-Changed-Why: My guess is that you don't use /dev/ufs/root, but /dev/ad4s1a directly. First removal is probably due to fsck of /dev/ad4s1a and second due mount of /dev/ad4s1a. Try replacing /dev/ad4s1a with /dev/ufs/root in your /etc/fstab and tell me how it goes. http://www.freebsd.org/cgi/query-pr.cgi?pr=122415 From owner-freebsd-geom@FreeBSD.ORG Sun Apr 6 20:12:37 2008 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 244BE1065670 for ; Sun, 6 Apr 2008 20:12:37 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from smtpout21.attiva.biz (smtpout21.attiva.biz [85.37.16.23]) by mx1.freebsd.org (Postfix) with ESMTP id A290B8FC20 for ; Sun, 6 Apr 2008 20:12:36 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from FBCMFE02B14.fbc.local ([192.168.30.160]) by smtpout21.attiva.biz with Microsoft SMTPSVC(6.0.3790.1830); Sun, 6 Apr 2008 22:00:26 +0200 Received: from lap.diff.org ([81.174.26.135]) by FBCMFE02B14.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Sun, 6 Apr 2008 22:00:26 +0200 Message-ID: <47F92BD9.1060207@diff.org> Date: Sun, 06 Apr 2008 22:00:25 +0200 From: Ferruccio Zamuner User-Agent: Thunderbird 2.0.0.6 (X11/20071020) MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Apr 2008 20:00:26.0661 (UTC) FILETIME=[DB5B0550:01C89820] Subject: gmirror on a very slow but new HP architecture 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: Sun, 06 Apr 2008 20:12:37 -0000 on FreeBSD 6 and gmirror usually I get 50-60Mb/s with a pair PATA hds, speed higher than 130Mb/s with gstripe on the same 2 hds. Two weeks ago I've installed the new FreeBSD 7 on a brand new HP Proliant ML110 (G4): FreeBSD 7.0-RELEASE #0: Wed Apr 2 16:00:33 CEST 2008 root@free:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU 3040 @ 1.86GHz (1862.01-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6f2 Stepping = 2 Features=0xbfebfbff Features2=0xe3bd AMD Features=0x20100000 AMD Features2=0x1 Cores per package: 2 real memory = 1609105408 (1534 MB) avail memory = 1563029504 (1490 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 [...] mpt0: port 0x4000-0x40ff mem 0xefc10000-0xefc13fff,0xefc00000-0xefc0ffff irq 18 at device 1.0 on pci10 atapci1: port 0x30c8-0x30cf,0x30bc-0x30bf,0x30c0-0x30c7,0x30b8-0x30bb,0x3090-0x309f mem 0xefd00400-0xefd007ff irq 19 at device 31.2 on pci0 [...] da0 at mpt0 bus 0 target 5 lun 0 da0: Fixed Direct Access SCSI-5 device da0: 300.000MB/s transfers da0: Command Queueing Enabled da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) da1 at mpt0 bus 0 target 6 lun 0 da1: Fixed Direct Access SCSI-5 device da1: 300.000MB/s transfers da1: Command Queueing Enabled da1: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) da2 at mpt0 bus 0 target 7 lun 0 da2: Fixed Direct Access SCSI-5 device da2: 300.000MB/s transfers da2: Command Queueing Enabled da2: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) da3 at mpt0 bus 0 target 8 lun 0 da3: Fixed Direct Access SCSI-5 device da3: 300.000MB/s transfers da3: Command Queueing Enabled da3: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) 1) gmirror gives kernel panic if I try to mirror slices instead of devices I'm used to gmirror disk slices, but it seems not possible on this HP. I had defined the gmirror on slices da1s1,da2s1,da3s1 but when I try to: # gmirror load GEOM_MIRROR: Device mirror/gm launched (3/3) WARNING: Expected rawoffset 0, found 63 Fatal double fault: eip = 0xc0707642 esp = 0xe4d9efd8 ebp = oxe4d9f024 cpuid=1;apicid=01 panic: double fault cpuid: 1 2) Here are instead catastrophic access speed on single drive: free# swapoff /dev/da0s1b free# dd if=/dev/zero of=/dev/da0s1b bs=8192 count=30000 30000+0 records in 30000+0 records out 245760000 bytes transferred in 254.051957 secs (967361 bytes/sec) Look! Lower than 1Mb/s Then I try to do the same write on the gmirror on da1,da2,da3 without soft-update but with journaling: free# dd if=/dev/zero of=/home1/test bs=8192 count=30000 30000+0 records in 30000+0 records out 245760000 bytes transferred in 68.658723 secs (3579443 bytes/sec) It's about 3.5Mb/s More info: /dev/mirror/datag.journal on /home1 (ufs, asynchronous, local, gjournal) free# gmirror list Geom name: data State: COMPLETE Components: 3 Balance: load Slice: 16384 Flags: NONE GenID: 0 SyncID: 1 ID: 106463476 Providers: 1. Name: mirror/data Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r5w5e6 Consumers: 1. Name: da3 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 1 Flags: NONE GenID: 0 SyncID: 1 ID: 3940601321 2. Name: da2 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 1 ID: 30649924 3. Name: da1 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: HARDCODED GenID: 0 SyncID: 1 ID: 1985461154 I'll be glad for any info to make FreeBSD 7 to run faster than actually on this machine. thank you in advance, \fer From owner-freebsd-geom@FreeBSD.ORG Sun Apr 6 22:02:51 2008 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 B661B1065677 for ; Sun, 6 Apr 2008 22:02:51 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [91.103.162.4]) by mx1.freebsd.org (Postfix) with ESMTP id 6C4B08FC13 for ; Sun, 6 Apr 2008 22:02:51 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 858CD19E023; Mon, 7 Apr 2008 00:02:49 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 6219419E019; Mon, 7 Apr 2008 00:02:47 +0200 (CEST) Message-ID: <47F9489C.7040602@quip.cz> Date: Mon, 07 Apr 2008 00:03:08 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: freebsd-geom@freebsd.org References: <47F92BD9.1060207@diff.org> In-Reply-To: <47F92BD9.1060207@diff.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Ferruccio Zamuner Subject: Re: gmirror on a very slow but new HP architecture 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: Sun, 06 Apr 2008 22:02:51 -0000 Ferruccio Zamuner wrote: > on FreeBSD 6 and gmirror usually I get 50-60Mb/s with a pair PATA hds, > speed higher than 130Mb/s with gstripe on the same 2 hds. > > Two weeks ago I've installed the new FreeBSD 7 on a brand new HP > Proliant ML110 (G4): > [...] > 2) Here are instead catastrophic access speed on single drive: > > free# swapoff /dev/da0s1b > free# dd if=/dev/zero of=/dev/da0s1b bs=8192 count=30000 > 30000+0 records in > 30000+0 records out > 245760000 bytes transferred in 254.051957 secs (967361 bytes/sec) > > Look! Lower than 1Mb/s > > Then I try to do the same write on the gmirror on da1,da2,da3 without > soft-update but with journaling: > > free# dd if=/dev/zero of=/home1/test bs=8192 count=30000 > 30000+0 records in > 30000+0 records out > 245760000 bytes transferred in 68.658723 secs (3579443 bytes/sec) > > It's about 3.5Mb/s [...] > I'll be glad for any info to make FreeBSD 7 to run faster than actually > on this machine. Did you tried the same dd test with another OS (with some bootable live CD of Linux)? It may be caused by bad disk controller / bad cables. Miroslav Lachman From owner-freebsd-geom@FreeBSD.ORG Mon Apr 7 07:58:47 2008 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 F30EE1065671 for ; Mon, 7 Apr 2008 07:58:47 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from bene2.itea.ntnu.no (bene2.itea.ntnu.no [IPv6:2001:700:300:3::57]) by mx1.freebsd.org (Postfix) with ESMTP id 403B38FC1C for ; Mon, 7 Apr 2008 07:58:47 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by bene2.itea.ntnu.no (Postfix) with ESMTP id E41E190003; Mon, 7 Apr 2008 09:58:44 +0200 (CEST) Received: from carrot.studby.ntnu.no (unknown [IPv6:2001:700:300:3::184]) by bene2.itea.ntnu.no (Postfix) with ESMTP id 96DEF90001; Mon, 7 Apr 2008 09:58:44 +0200 (CEST) Date: Mon, 7 Apr 2008 09:58:43 +0200 From: Ulf Lilleengen To: "Rick C. Petty" Message-ID: <20080407075843.GA1391@carrot.studby.ntnu.no> Mail-Followup-To: "Rick C. Petty" , freebsd-geom@freebsd.org References: <20080310052711.GA49676@keira.kiwi-computer.com> <20080313153551.82wlu8iio4088c44@webmail.ntnu.no> <20080313182257.GB14969@keira.kiwi-computer.com> <20080316090554.GA1230@carrot.studby.ntnu.no> <20080316185055.GA64920@keira.kiwi-computer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080316185055.GA64920@keira.kiwi-computer.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: Debian amavisd-new at bene2.itea.ntnu.no Cc: freebsd-geom@freebsd.org Subject: Re: [patch] geom_vinum platform fixes X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "..."@carrot.studby.ntnu.no List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 07:58:48 -0000 On søn, mar 16, 2008 at 12:50:55pm -0600, Rick C. Petty wrote: > On Sun, Mar 16, 2008 at 10:05:55AM +0100, Ulf Lilleengen wrote: > > > > I've reviewed the patch and done some modifications to it. I'll need some > > testing first though (I don't have a testbed right now since I'm travelling). > > I've reviewed your patch but haven't had time to test it yet (hopefully > this week..) > Have you been able to test it? I don't have any 64-bit hardware at the moment :) -- Ulf Lilleengen From owner-freebsd-geom@FreeBSD.ORG Mon Apr 7 11:06:59 2008 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C04F1065672 for ; Mon, 7 Apr 2008 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0BCEB8FC12 for ; Mon, 7 Apr 2008 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m37B6wAx048773 for ; Mon, 7 Apr 2008 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m37B6wBb048769 for freebsd-geom@FreeBSD.org; Mon, 7 Apr 2008 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 7 Apr 2008 11:06:58 GMT Message-Id: <200804071106.m37B6wBb048769@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-geom@FreeBSD.org 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: Mon, 07 Apr 2008 11:06:59 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/73177 geom kldload geom_* causes panic due to memory exhaustion o kern/76538 geom [gbde] nfs-write on gbde partition stalls and continue o kern/83464 geom [geom] [patch] Unhandled malloc failures within libgeo o kern/84556 geom [geom] GBDE-encrypted swap causes panic at shutdown o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo s kern/89102 geom [geom_vfs] [panic] panic when forced unmount FS from u o bin/90093 geom fdisk(8) incapable of altering in-core geometry o kern/90582 geom [geom_mirror] [panic] Restore cause panic string (ffs_ o kern/98034 geom [geom] dereference of NULL pointer in acd_geom_detach o kern/104389 geom [geom] [patch] sys/geom/geom_dump.c doesn't encode XML o kern/113419 geom [geom] geom fox multipathing not failing back o kern/113957 geom [gmirror] gmirror is intermittently reporting a degrad o kern/115572 geom [gbde] [patch] gbde partitions fail at 28bit/48bit LBA o kern/120021 geom net-p2p/qbittorrent crashes system when it works thoug o kern/120231 geom [geom] GEOM_CONCAT error adding second drive f kern/121364 geom [gmirror] Removing all providers create a "zombie" mir o kern/122067 geom [panic]: Geom crashed during boot f kern/122415 geom [geom] UFS labels are being constantly created and rem 18 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/78131 geom gbde "destroy" not working. o kern/79251 geom [2TB] newfs fails on 2.6TB gbde device o kern/94632 geom [geom] Kernel output resets input while GELI asks for o kern/107707 geom [geom] [patch] [request] add new class geom_xbox360 to p bin/110705 geom gmirror control utility does not exit with correct exi o kern/113837 geom [geom] unable to access 1024 sector size storage o kern/113885 geom [gmirror] [patch] improved gmirror balance algorithm o kern/114532 geom [geom] GEOM_MIRROR shows up in kldstat even if compile o kern/115547 geom [geom] [patch] [request] let GEOM Eli get password fro o kern/119743 geom [geom] geom label for cds is keeped after dismount and o kern/120044 geom [msdosfs] [geom] incorrect MSDOSFS label fries adminis f kern/120091 geom [geom] [geli] [gjournal] geli does not prompt for pass o kern/121559 geom [patch] [geom] geom label class allows to create inacc f kern/121907 geom [request] [geom] geom output to console obscures other 14 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Apr 7 14:27:17 2008 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 1EF391065673 for ; Mon, 7 Apr 2008 14:27:17 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 9C8A38FC35 for ; Mon, 7 Apr 2008 14:27:16 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 62610 invoked by uid 2001); 7 Apr 2008 14:27:13 -0000 Date: Mon, 7 Apr 2008 09:27:13 -0500 From: "Rick C. Petty" To: freebsd-geom@freebsd.org Message-ID: <20080407142713.GA62578@keira.kiwi-computer.com> References: <20080310052711.GA49676@keira.kiwi-computer.com> <20080313153551.82wlu8iio4088c44@webmail.ntnu.no> <20080313182257.GB14969@keira.kiwi-computer.com> <20080316090554.GA1230@carrot.studby.ntnu.no> <20080316185055.GA64920@keira.kiwi-computer.com> <20080407075843.GA1391@carrot.studby.ntnu.no> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080407075843.GA1391@carrot.studby.ntnu.no> User-Agent: Mutt/1.4.2.3i Subject: Re: [patch] geom_vinum platform fixes X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 14:27:17 -0000 On Mon, Apr 07, 2008 at 09:58:43AM +0200, Ulf Lilleengen wrote: > On søn, mar 16, 2008 at 12:50:55pm -0600, Rick C. Petty wrote: > > On Sun, Mar 16, 2008 at 10:05:55AM +0100, Ulf Lilleengen wrote: > > > > > > I've reviewed the patch and done some modifications to it. I'll need some > > > testing first though (I don't have a testbed right now since I'm travelling). > > > > I've reviewed your patch but haven't had time to test it yet (hopefully > > this week..) > > > Have you been able to test it? I don't have any 64-bit hardware at the > moment :) Sorry, I've been busy with other projects. I'll try to get to it this week, although I can't see why your patch would break anything. -- Rick C. Petty From owner-freebsd-geom@FreeBSD.ORG Mon Apr 7 16:00:12 2008 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D008D1065672 for ; Mon, 7 Apr 2008 16:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A78708FC12 for ; Mon, 7 Apr 2008 16:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m37G0ClI076808 for ; Mon, 7 Apr 2008 16:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m37G0Cdn076807; Mon, 7 Apr 2008 16:00:12 GMT (envelope-from gnats) Date: Mon, 7 Apr 2008 16:00:12 GMT Message-Id: <200804071600.m37G0Cdn076807@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: Dennis Berger Cc: Subject: Re: kern/122067: [panic]: Geom crashed during boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dennis Berger List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 16:00:12 -0000 The following reply was made to PR kern/122067; it has been noted by GNATS. From: Dennis Berger To: bug-followup@FreeBSD.org, jcigar@ulb.ac.be Cc: Subject: Re: kern/122067: [panic]: Geom crashed during boot Date: Mon, 07 Apr 2008 17:29:08 +0200 I experienced the same error today after an upgrade from 7.0BETA4 to 7.0RELEASE :-( Any idea how to avoid this? regards, dennis From owner-freebsd-geom@FreeBSD.ORG Mon Apr 7 20:05:08 2008 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 6513D106566B for ; Mon, 7 Apr 2008 20:05:08 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from smtpi1.ngi.it (smtpi1.ngi.it [88.149.128.20]) by mx1.freebsd.org (Postfix) with ESMTP id EB0D18FC1E for ; Mon, 7 Apr 2008 20:05:07 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from k7.diff.org (81-174-26-135.static.ngi.it [81.174.26.135]) by smtpi1.ngi.it (8.13.8/8.13.8) with ESMTP id m37Ilp2w007496 for ; Mon, 7 Apr 2008 20:47:52 +0200 Received: from k7.diff.org (localhost [127.0.0.1]) by k7.diff.org (8.14.1/8.14.1) with ESMTP id m37Im5Gm012575 for ; Mon, 7 Apr 2008 20:48:06 +0200 (CEST) (envelope-from nonsolosoft@diff.org) Message-ID: <47FA6C65.1010007@diff.org> Date: Mon, 07 Apr 2008 20:48:05 +0200 From: Ferruccio Zamuner Organization: NonSoLoSoft - Italy - http://www.nonsolosoft.com/ User-Agent: Thunderbird 2.0.0.9 (X11/20080123) MIME-Version: 1.0 CC: freebsd-geom@freebsd.org References: <47F92BD9.1060207@diff.org> <47F9489C.7040602@quip.cz> In-Reply-To: <47F9489C.7040602@quip.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: gmirror on a very slow but new HP architecture 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: Mon, 07 Apr 2008 20:05:08 -0000 Miroslav Lachman ha scritto: > Did you tried the same dd test with another OS (with some bootable > live CD of Linux)? > > It may be caused by bad disk controller / bad cables. > > Miroslav Lachman With Ubuntu kernel 2.6.20 it transfer 6-7 Mb/s, still very slow for a sata. Then I've drop the HP LSI Logic SATA/RAID controller and I've connected hds on the mainboard controller and on a Promise TX2 SATA300 that finally it's supported by FreeBSD 7. Results are better but still non good as they should be: free# gmirror list Geom name: gm0 State: COMPLETE Components: 3 Balance: split Slice: 8192 Flags: NONE GenID: 0 SyncID: 2 ID: 3991481480 Providers: 1. Name: mirror/gm0 Mediasize: 237291069952 (221G) Sectorsize: 512 Mode: r6w6e6 Consumers: 1. Name: ad6s1 Mediasize: 237291070464 (221G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 2 ID: 3276824044 2. Name: ad10s1 Mediasize: 237291070464 (221G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 2 ID: 1289844737 3. Name: ad12s1 Mediasize: 237291070464 (221G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 2 ID: 1706660870 free# swapoff /dev/mirror/gm0b free# dd if=/dev/zero of=/dev/mirror/gm0b bs=8192 count=10000 10000+0 records in 10000+0 records out 81920000 bytes transferred in 2.443927 secs (33519822 bytes/sec) free# dd if=/dev/mirror/gm0b of=/dev/null bs=8192 count=20000 20000+0 records in 20000+0 records out 163840000 bytes transferred in 7.773088 secs (21077852 bytes/sec) free# dd if=/dev/mirror/gm0b of=/dev/null bs=8192 count=20000 20000+0 records in 20000+0 records out 163840000 bytes transferred in 7.444171 secs (22009167 bytes/sec) free# dd if=/dev/zero of=/dev/mirror/gm0b bs=8192 count=20000 20000+0 records in 20000+0 records out 163840000 bytes transferred in 5.668771 secs (28902208 bytes/sec) free# dd if=/dev/mirror/gm0b of=/dev/null bs=8192 count=20000 20000+0 records in 20000+0 records out 163840000 bytes transferred in 8.050144 secs (20352430 bytes/sec) Why are there so poor performances? Any idea? More info from dmesg: atapci0: port 0x4400-0x447f,0x4000-0x40ff mem 0xefa20000-0xefa20fff,0xefa00000-0xefa 1ffff irq 18 at device 1.0 on pci10 atapci0: [ITHREAD] atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] [..] atapci2: port 0x30c8-0x30cf,0x30bc-0x30bf,0x30c0-0x30c7,0x30b8-0x30bb,0x3090-0x309f mem 0xefd00400-0xefd007ff irq 19 at device 31.2 on pci0 atapci2: [ITHREAD] ata5: on atapci2 ata5: [ITHREAD] ata6: on atapci2 ata6: [ITHREAD] [..] ad6: 238475MB at ata3-master SATA150 ad10: 238475MB at ata5-master SATA150 ad12: 238475MB at ata6-master SATA150 From owner-freebsd-geom@FreeBSD.ORG Mon Apr 7 21:06:41 2008 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 4431E106566B for ; Mon, 7 Apr 2008 21:06:41 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [91.103.162.4]) by mx1.freebsd.org (Postfix) with ESMTP id F0AF28FC15 for ; Mon, 7 Apr 2008 21:06:40 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id AEEAC19E027; Mon, 7 Apr 2008 23:06:39 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 3ED5719E023; Mon, 7 Apr 2008 23:06:37 +0200 (CEST) Message-ID: <47FA8CF2.6090700@quip.cz> Date: Mon, 07 Apr 2008 23:06:58 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Ferruccio Zamuner References: <47F92BD9.1060207@diff.org> <47F9489C.7040602@quip.cz> <47FA6C65.1010007@diff.org> In-Reply-To: <47FA6C65.1010007@diff.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: gmirror on a very slow but new HP architecture 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: Mon, 07 Apr 2008 21:06:41 -0000 Ferruccio Zamuner wrote: > Miroslav Lachman ha scritto: > >> Did you tried the same dd test with another OS (with some bootable >> live CD of Linux)? >> >> It may be caused by bad disk controller / bad cables. >> >> Miroslav Lachman > > With Ubuntu kernel 2.6.20 it transfer 6-7 Mb/s, still very slow for a sata. > > Then I've drop the HP LSI Logic SATA/RAID controller and I've connected > hds on the mainboard controller > and on a Promise TX2 SATA300 that finally it's supported by FreeBSD 7. [...] > Any idea? > > More info from dmesg: > > atapci0: port > 0x4400-0x447f,0x4000-0x40ff mem 0xefa20000-0xefa20fff,0xefa00000-0xefa > 1ffff irq 18 at device 1.0 on pci10 > atapci0: [ITHREAD] > atapci0: [ITHREAD] > ata2: on atapci0 > ata2: [ITHREAD] > ata3: on atapci0 > ata3: [ITHREAD] > ata4: on atapci0 > ata4: [ITHREAD] > [..] > atapci2: port > 0x30c8-0x30cf,0x30bc-0x30bf,0x30c0-0x30c7,0x30b8-0x30bb,0x3090-0x309f > mem 0xefd00400-0xefd007ff irq 19 at device 31.2 on pci0 > atapci2: [ITHREAD] > ata5: on atapci2 > ata5: [ITHREAD] > ata6: on atapci2 > ata6: [ITHREAD] > [..] > ad6: 238475MB at ata3-master SATA150 > ad10: 238475MB at ata5-master SATA150 > ad12: 238475MB at ata6-master SATA150 As you can see - both controllers are SATA300 capable and AFAIK the drivers too. So you can try to switch of the jumper on the drive or change settings in hdd firmware to allow SATA300 instead of SATA150. Maybe it will help. For drives on SATA300 I will expect speed about 70MB/s for reading and not less then 50MB/s for writing for single drive. Can you test single drive not in gmirror? (dd if=/dev/zero of=/dev/ad10 bs=1m count=1000) Miroslav Lachman From owner-freebsd-geom@FreeBSD.ORG Tue Apr 8 07:30:05 2008 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16A3A1065673 for ; Tue, 8 Apr 2008 07:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0558B8FC18 for ; Tue, 8 Apr 2008 07:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m387U4s3074312 for ; Tue, 8 Apr 2008 07:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m387U4iT074309; Tue, 8 Apr 2008 07:30:04 GMT (envelope-from gnats) Date: Tue, 8 Apr 2008 07:30:04 GMT Message-Id: <200804080730.m387U4iT074309@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: Julien Cc: Subject: Re: kern/122067: [panic]: Geom crashed during boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Julien List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2008 07:30:05 -0000 The following reply was made to PR kern/122067; it has been noted by GNATS. From: Julien To: Dennis Berger Cc: bug-followup@FreeBSD.org Subject: Re: kern/122067: [panic]: Geom crashed during boot Date: Tue, 08 Apr 2008 11:32:56 +0200 - boot in single user mode - mount filesystems (mount -a) - recompile kernel - reboot This is my custom file if it can help http://pastebin.com/f145def72 Regards, Julien On Mon, 2008-04-07 at 17:29 +0200, Dennis Berger wrote: > I experienced the same error today after an upgrade from 7.0BETA4 to > 7.0RELEASE :-( > Any idea how to avoid this? > regards, > dennis -- Julien Cigar Belgian Biodiversity Platform http://www.biodiversity.be Université Libre de Bruxelles (ULB) Campus de la Plaine CP 257 Bâtiment NO, Bureau 4 N4 115C (Niveau 4) Boulevard du Triomphe, entrée ULB 2 B-1050 Bruxelles Mail: jcigar@ulb.ac.be @biobel: http://biobel.biodiversity.be/person/show/471 Tel : 02 650 57 52 From owner-freebsd-geom@FreeBSD.ORG Tue Apr 8 10:22:09 2008 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 9DBF11065676 for ; Tue, 8 Apr 2008 10:22:09 +0000 (UTC) (envelope-from jcigar@ulb.ac.be) Received: from smtp.vub.ac.be (mxout.vub.ac.be [134.184.129.111]) by mx1.freebsd.org (Postfix) with ESMTP id 033C38FC27 for ; Tue, 8 Apr 2008 10:22:08 +0000 (UTC) (envelope-from jcigar@ulb.ac.be) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar4AAJLh+kekD30E/2dsb2JhbAAIq1k Received: from bebif01.ulb.ac.be (HELO [10.0.0.194]) ([164.15.125.4]) by smtp.vub.ac.be with ESMTP; 08 Apr 2008 12:08:43 +0200 From: Julien To: Dennis Berger In-Reply-To: <47FB41D0.3090301@nipsi.de> References: <200804080730.m387U4iT074309@freefall.freebsd.org> <47FB41D0.3090301@nipsi.de> Content-Type: text/plain; charset=utf-8 Date: Tue, 08 Apr 2008 14:15:30 +0200 Message-Id: <1207656930.2957.6.camel@frodon.be-bif.ulb.ac.be> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 8bit Cc: freebsd-geom@FreeBSD.org Subject: Re: kern/122067: [panic]: Geom crashed during boot 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, 08 Apr 2008 10:22:09 -0000 In fact I suspect that the problem is either in INET6 or SCTP ... but I'm not a kernel developer too.. On Tue, 2008-04-08 at 11:58 +0200, Dennis Berger wrote: > I did exactly that and it worked. > It looked like a race but I'm not a kernel developer. At least the > g_event and g_consumer is a NULL pointer. I can provide a vmcore.0 for > the interesting party. > regards, > dennis > > Julien schrieb: > > The following reply was made to PR kern/122067; it has been noted by GNATS. > > > > From: Julien > > To: Dennis Berger > > Cc: bug-followup@FreeBSD.org > > Subject: Re: kern/122067: [panic]: Geom crashed during boot > > Date: Tue, 08 Apr 2008 11:32:56 +0200 > > > > - boot in single user mode > > - mount filesystems (mount -a) > > - recompile kernel > > - reboot > > > > This is my custom file if it can help http://pastebin.com/f145def72 > > > > Regards, > > Julien > > > > > > On Mon, 2008-04-07 at 17:29 +0200, Dennis Berger wrote: > > > I experienced the same error today after an upgrade from 7.0BETA4 to > > > 7.0RELEASE :-( > > > Any idea how to avoid this? > > > regards, > > > dennis > > -- > > Julien Cigar > > Belgian Biodiversity Platform > > http://www.biodiversity.be > > Université Libre de Bruxelles (ULB) > > Campus de la Plaine CP 257 > > Bâtiment NO, Bureau 4 N4 115C (Niveau 4) > > Boulevard du Triomphe, entrée ULB 2 > > B-1050 Bruxelles > > Mail: jcigar@ulb.ac.be > > @biobel: http://biobel.biodiversity.be/person/show/471 > > Tel : 02 650 57 52 > > > > _______________________________________________ > > freebsd-geom@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" > > -- Julien Cigar Belgian Biodiversity Platform http://www.biodiversity.be Université Libre de Bruxelles (ULB) Campus de la Plaine CP 257 Bâtiment NO, Bureau 4 N4 115C (Niveau 4) Boulevard du Triomphe, entrée ULB 2 B-1050 Bruxelles Mail: jcigar@ulb.ac.be @biobel: http://biobel.biodiversity.be/person/show/471 Tel : 02 650 57 52 From owner-freebsd-geom@FreeBSD.ORG Tue Apr 8 10:31:01 2008 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 D4A4A1065673 for ; Tue, 8 Apr 2008 10:31:01 +0000 (UTC) (envelope-from db@nipsi.de) Received: from fop.bsdsystems.de (mx.bsdsystems.de [88.198.57.43]) by mx1.freebsd.org (Postfix) with ESMTP id 9A2938FC22 for ; Tue, 8 Apr 2008 10:31:01 +0000 (UTC) (envelope-from db@nipsi.de) Received: from [172.16.1.13] (e176115050.adsl.alicedsl.de [85.176.115.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by fop.bsdsystems.de (Postfix) with ESMTP id EB6D92C222; Tue, 8 Apr 2008 11:58:43 +0200 (CEST) Message-ID: <47FB41D0.3090301@nipsi.de> Date: Tue, 08 Apr 2008 11:58:40 +0200 From: Dennis Berger User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Julien References: <200804080730.m387U4iT074309@freefall.freebsd.org> In-Reply-To: <200804080730.m387U4iT074309@freefall.freebsd.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-geom@FreeBSD.org Subject: Re: kern/122067: [panic]: Geom crashed during boot 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, 08 Apr 2008 10:31:01 -0000 I did exactly that and it worked. It looked like a race but I'm not a kernel developer. At least the g_event and g_consumer is a NULL pointer. I can provide a vmcore.0 for the interesting party. regards, dennis Julien schrieb: > The following reply was made to PR kern/122067; it has been noted by GNATS. > > From: Julien > To: Dennis Berger > Cc: bug-followup@FreeBSD.org > Subject: Re: kern/122067: [panic]: Geom crashed during boot > Date: Tue, 08 Apr 2008 11:32:56 +0200 > > - boot in single user mode > - mount filesystems (mount -a) > - recompile kernel > - reboot > > This is my custom file if it can help http://pastebin.com/f145def72 > > Regards, > Julien > > > On Mon, 2008-04-07 at 17:29 +0200, Dennis Berger wrote: > > I experienced the same error today after an upgrade from 7.0BETA4 to > > 7.0RELEASE :-( > > Any idea how to avoid this? > > regards, > > dennis > -- > Julien Cigar > Belgian Biodiversity Platform > http://www.biodiversity.be > Université Libre de Bruxelles (ULB) > Campus de la Plaine CP 257 > Bâtiment NO, Bureau 4 N4 115C (Niveau 4) > Boulevard du Triomphe, entrée ULB 2 > B-1050 Bruxelles > Mail: jcigar@ulb.ac.be > @biobel: http://biobel.biodiversity.be/person/show/471 > Tel : 02 650 57 52 > > _______________________________________________ > freebsd-geom@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" > From owner-freebsd-geom@FreeBSD.ORG Tue Apr 8 21:55:58 2008 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 648CF1065680 for ; Tue, 8 Apr 2008 21:55:58 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from smtpout30.attiva.biz (smtpout30.attiva.biz [85.37.16.8]) by mx1.freebsd.org (Postfix) with ESMTP id EDCA68FC14 for ; Tue, 8 Apr 2008 21:55:48 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from FBCMFE02B06.fbc.local ([192.168.30.94]) by smtpout30.attiva.biz with Microsoft SMTPSVC(6.0.3790.1830); Tue, 8 Apr 2008 23:55:27 +0200 Received: from lap.diff.org ([79.38.40.19]) by FBCMFE02B06.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 8 Apr 2008 23:55:27 +0200 Message-ID: <47FBE9CC.6050903@diff.org> Date: Tue, 08 Apr 2008 23:55:24 +0200 From: Ferruccio Zamuner User-Agent: Thunderbird 2.0.0.6 (X11/20071020) MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Apr 2008 21:55:27.0136 (UTC) FILETIME=[412F7200:01C899C3] Subject: disklabel and gm0 (gmirror) 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, 08 Apr 2008 21:55:58 -0000 # disklabel /dev/mirror/gm0 # /dev/mirror/gm0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2089984 79 4.2BSD 0 0 0 b: 2910000 2090063 unused 0 0 c: 463459122 63 unused 0 0 # "raw" part, don't edit d: 10000000 5000063 4.2BSD 0 0 0 e: 10000000 15000063 4.2BSD 0 0 0 f: 15000000 25000063 4.2BSD 0 0 0 g: 423459058 40000063 4.2BSD 0 0 0 partition c: partition extends past end of unit disklabel: partition c doesn't start at 0! disklabel: partition c doesn't cover the whole unit! disklabel: An incorrect partition c may cause problems for standard system utilities # gmirror list Geom name: gm0 State: COMPLETE Components: 3 Balance: split Slice: 8192 Flags: NONE GenID: 0 SyncID: 2 ID: 3991481480 Providers: 1. Name: mirror/gm0 Mediasize: 237291069952 (221G) Sectorsize: 512 Mode: r5w5e6 Consumers: 1. Name: ad6s1 Mediasize: 237291070464 (221G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 2 ID: 3276824044 2. Name: ad10s1 Mediasize: 237291070464 (221G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 2 ID: 1289844737 3. Name: ad12s1 Mediasize: 237291070464 (221G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 2 ID: 1706660870 237291069952 / 512 (mirror/gm0 Mediasize / sector size) 463459121 (the size that gm0c should be) 423459058 + 40000063 (gm0g size + gm0g offset) 463459121 (gm0 size) How can I fix it? disklabel -e /dev/mirror/gm0 setting gm0c offset = 0 setting gm0c size = 463459121 gives following warning and not change these values: partition c: partition extends past end of unit disklabel: partition c doesn't start at 0! disklabel: partition c doesn't cover the whole unit! disklabel: An incorrect partition c may cause problems for standard system utilities Thank you in advance, \fer From owner-freebsd-geom@FreeBSD.ORG Tue Apr 8 22:33:21 2008 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 A4C431065678 for ; Tue, 8 Apr 2008 22:33:21 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [91.103.162.4]) by mx1.freebsd.org (Postfix) with ESMTP id 662D48FC24 for ; Tue, 8 Apr 2008 22:33:21 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id AE9D319E023; Wed, 9 Apr 2008 00:33:19 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 78F4B19E019; Wed, 9 Apr 2008 00:33:17 +0200 (CEST) Message-ID: <47FBF2C1.4040806@quip.cz> Date: Wed, 09 Apr 2008 00:33:37 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Ferruccio Zamuner References: <47FBE9CC.6050903@diff.org> In-Reply-To: <47FBE9CC.6050903@diff.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: disklabel and gm0 (gmirror) 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, 08 Apr 2008 22:33:21 -0000 Ferruccio Zamuner wrote: > # disklabel /dev/mirror/gm0 > # /dev/mirror/gm0: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 2089984 79 4.2BSD 0 0 0 > b: 2910000 2090063 unused 0 0 c: 463459122 > 63 unused 0 0 # "raw" part, don't edit > d: 10000000 5000063 4.2BSD 0 0 0 > e: 10000000 15000063 4.2BSD 0 0 0 > f: 15000000 25000063 4.2BSD 0 0 0 > g: 423459058 40000063 4.2BSD 0 0 0 > partition c: partition extends past end of unit > disklabel: partition c doesn't start at 0! > disklabel: partition c doesn't cover the whole unit! > disklabel: An incorrect partition c may cause problems for standard > system utilities > > # gmirror list > Geom name: gm0 > State: COMPLETE > Components: 3 > Balance: split > Slice: 8192 > Flags: NONE > GenID: 0 > SyncID: 2 > ID: 3991481480 > Providers: > 1. Name: mirror/gm0 > Mediasize: 237291069952 (221G) > Sectorsize: 512 > Mode: r5w5e6 > Consumers: > 1. Name: ad6s1 > Mediasize: 237291070464 (221G) > Sectorsize: 512 > Mode: r1w1e1 > State: ACTIVE > Priority: 0 > Flags: NONE > GenID: 0 > SyncID: 2 > ID: 3276824044 > 2. Name: ad10s1 > Mediasize: 237291070464 (221G) > Sectorsize: 512 > Mode: r1w1e1 > State: ACTIVE > Priority: 0 > Flags: NONE > GenID: 0 > SyncID: 2 > ID: 1289844737 > 3. Name: ad12s1 > Mediasize: 237291070464 (221G) > Sectorsize: 512 > Mode: r1w1e1 > State: ACTIVE > Priority: 0 > Flags: NONE > GenID: 0 > SyncID: 2 > ID: 1706660870 > > 237291069952 / 512 (mirror/gm0 Mediasize / sector size) > 463459121 (the size that gm0c should be) > 423459058 + 40000063 (gm0g size + gm0g offset) > 463459121 (gm0 size) > > How can I fix it? > > disklabel -e /dev/mirror/gm0 > > setting gm0c offset = 0 > setting gm0c size = 463459121 > > gives following warning and not change these values: > partition c: partition extends past end of unit > disklabel: partition c doesn't start at 0! > disklabel: partition c doesn't cover the whole unit! > disklabel: An incorrect partition c may cause problems for standard Backup all your data (if gm0 is not empty) and start with new standard label: bsdlabel -w /dev/mirror/gm0 Then open the label for editing: bsdlabel -e /dev/mirror/gm0 and add you new partitions, but don't touch the line with c: partition You can use wildcards, so bsdlabel automaticaly calculate correct values: a: 2089984 * 4.2BSD b: 2910000 * unused c: #### there will be your defaults for c: #### d: 10000000 * 4.2BSD e: 10000000 * 4.2BSD f: 15000000 * 4.2BSD g: * * 4.2BSD Then newfs new partitions and restore your data. Miroslav Lachman From owner-freebsd-geom@FreeBSD.ORG Wed Apr 9 09:47:31 2008 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 C3E6B106564A for ; Wed, 9 Apr 2008 09:47:31 +0000 (UTC) (envelope-from hv@tuebingen.mpg.de) Received: from mailgw.tuebingen.mpg.de (mailgw.tuebingen.mpg.de [192.124.27.5]) by mx1.freebsd.org (Postfix) with ESMTP id 0E5E08FC38 for ; Wed, 9 Apr 2008 09:47:30 +0000 (UTC) (envelope-from hv@tuebingen.mpg.de) X-IronPort-AV: E=Sophos;i="4.25,628,1199660400"; d="scan'208,217";a="2200398" Received: from cmh.local (HELO tuebingen.mpg.de) ([10.3.6.123]) by mailgate.local with ESMTP; 09 Apr 2008 11:36:55 +0200 Received: from adminx.local (account henry.vogt [10.3.7.25] verified) by tuebingen.mpg.de (CommuniGate Pro SMTP 5.1.12) with ESMTPSA id 3346670 for freebsd-geom@freebsd.org; Wed, 09 Apr 2008 11:36:55 +0200 Message-Id: <76AE05BD-B56F-4811-8F6B-64A20F02CBF7@tuebingen.mpg.de> From: hv To: freebsd-geom@freebsd.org In-Reply-To: <47FBF2C1.4040806@quip.cz> Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 9 Apr 2008 11:36:55 +0200 References: <47FBE9CC.6050903@diff.org> <47FBF2C1.4040806@quip.cz> X-Mailer: Apple Mail (2.919.2) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: disklabel and gm0 (gmirror) 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: Wed, 09 Apr 2008 09:47:31 -0000 Am 09.04.2008 um 00:33 schrieb Miroslav Lachman: > Ferruccio Zamuner wrote: > >> # disklabel /dev/mirror/gm0 >> # /dev/mirror/gm0: >> 8 partitions: >> # size offset fstype [fsize bsize bps/cpg] >> a: 2089984 79 4.2BSD 0 0 0 >> b: 2910000 2090063 unused 0 0 c: =20 >> 463459122 63 unused 0 0 # "raw" part, =20 >> don't edit >> d: 10000000 5000063 4.2BSD 0 0 0 >> e: 10000000 15000063 4.2BSD 0 0 0 >> f: 15000000 25000063 4.2BSD 0 0 0 >> g: 423459058 40000063 4.2BSD 0 0 0 >> partition c: partition extends past end of unit >> disklabel: partition c doesn't start at 0! >> disklabel: partition c doesn't cover the whole unit! >> disklabel: An incorrect partition c may cause problems for standard =20= >> system utilities >> ... > > Backup all your data (if gm0 is not empty) and start with new =20 > standard label: > bsdlabel -w /dev/mirror/gm0 > Then open the label for editing: > bsdlabel -e /dev/mirror/gm0 > and add you new partitions, but don't touch the line with c: partition > ... why not just using gmirror to break and recreate the mirror, something =20= like this: 1) remove one disk (it's a mirror!) 2) recreate the label on this disk, newfs it and copy everything over =20= from the remaining mirror disk. 3) if you booted off the mirror, you need to adjust fstab to boot from =20= the disk 1) and reboot, then destroy the mirror. 4 recreate the mirror on the disk from 1), if you want to boot from =20 the mirror, re-adjust the fstab and reboot 5) insert the second disk into the recreated mirror in 4) see gmirror(8), hope this helps. Regards -- Henry Vogt (Fon: ++49-7071-601-511, Fax: -826) Campus Max-Planck-Institute, Spemannstr. 32-41, T=FCbingen, Germany From owner-freebsd-geom@FreeBSD.ORG Wed Apr 9 10:41:09 2008 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 235AC1065675 for ; Wed, 9 Apr 2008 10:41:09 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [91.103.162.4]) by mx1.freebsd.org (Postfix) with ESMTP id D7D8E8FC27 for ; Wed, 9 Apr 2008 10:41:08 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id DDA2519E023; Wed, 9 Apr 2008 12:41:07 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 4267619E019; Wed, 9 Apr 2008 12:41:01 +0200 (CEST) Message-ID: <47FC9D51.5080107@quip.cz> Date: Wed, 09 Apr 2008 12:41:21 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: hv References: <47FBE9CC.6050903@diff.org> <47FBF2C1.4040806@quip.cz> <76AE05BD-B56F-4811-8F6B-64A20F02CBF7@tuebingen.mpg.de> In-Reply-To: <76AE05BD-B56F-4811-8F6B-64A20F02CBF7@tuebingen.mpg.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: disklabel and gm0 (gmirror) 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: Wed, 09 Apr 2008 10:41:09 -0000 hv wrote: [...] > why not just using gmirror to break and recreate the mirror, something > like this: > > 1) remove one disk (it's a mirror!) > 2) recreate the label on this disk, newfs it and copy everything over > from the remaining mirror disk. > 3) if you booted off the mirror, you need to adjust fstab to boot from > the disk 1) and reboot, then destroy the mirror. > 4 recreate the mirror on the disk from 1), if you want to boot from > the mirror, re-adjust the fstab and reboot > 5) insert the second disk into the recreated mirror in 4) > > see gmirror(8), hope this helps. Yes, it is one of the possible ways of "backup all your data"... :) And another way could be - remove one drive (provider) from gmirror, data remains on it. Recreate the label on gmirror gm0 + newfs Copy data from previously removed provider Reinsert provider in to new gmirror [and do some steps with fstab + reboot if needed] I feel myself safer if data is backuped off the machine where I play with disks / newfs / gmirror etc. Miroslav Lachman From owner-freebsd-geom@FreeBSD.ORG Sat Apr 12 06:50:15 2008 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 213DF1065670 for ; Sat, 12 Apr 2008 06:50:15 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206046210.chello.pl [87.206.46.210]) by mx1.freebsd.org (Postfix) with ESMTP id A65C38FC1D for ; Sat, 12 Apr 2008 06:50:14 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 23F4845C98; Wed, 9 Apr 2008 08:58:13 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 4447845B36; Wed, 9 Apr 2008 08:58:09 +0200 (CEST) Date: Wed, 9 Apr 2008 08:58:11 +0200 From: Pawel Jakub Dawidek To: Ferruccio Zamuner Message-ID: <20080409065811.GA20138@garage.freebsd.pl> References: <47F92BD9.1060207@diff.org> <47F9489C.7040602@quip.cz> <47FA6C65.1010007@diff.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <47FA6C65.1010007@diff.org> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: gmirror on a very slow but new HP architecture 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: Sat, 12 Apr 2008 06:50:15 -0000 --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 07, 2008 at 08:48:05PM +0200, Ferruccio Zamuner wrote: > free# swapoff /dev/mirror/gm0b > free# dd if=3D/dev/zero of=3D/dev/mirror/gm0b bs=3D8192 count=3D10000 > 10000+0 records in > 10000+0 records out > 81920000 bytes transferred in 2.443927 secs (33519822 bytes/sec) > free# dd if=3D/dev/mirror/gm0b of=3D/dev/null bs=3D8192 count=3D20000 > 20000+0 records in > 20000+0 records out > 163840000 bytes transferred in 7.773088 secs (21077852 bytes/sec) > free# dd if=3D/dev/mirror/gm0b of=3D/dev/null bs=3D8192 count=3D20000 > 20000+0 records in > 20000+0 records out > 163840000 bytes transferred in 7.444171 secs (22009167 bytes/sec) > free# dd if=3D/dev/zero of=3D/dev/mirror/gm0b bs=3D8192 count=3D20000 > 20000+0 records in > 20000+0 records out > 163840000 bytes transferred in 5.668771 secs (28902208 bytes/sec) > free# dd if=3D/dev/mirror/gm0b of=3D/dev/null bs=3D8192 count=3D20000 > 20000+0 records in > 20000+0 records out > 163840000 bytes transferred in 8.050144 secs (20352430 bytes/sec) Your test is too short and you are using too small block size. Try something like this: # dd if=3D/dev/zero of=3D/dev/mirror/gm0b bs=3D128k count=3D10000 # dd if=3D/dev/mirror/gm0b of=3D/dev/null bs=3D128k count=3D10000 Also, please provide the output of: # bsdlabel /dev/mirror/gm0 so we know 'b' partition is not placed at the end of the disk. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFH/GkAForvXbEpPzQRAqq7AJ0TKBO7QkdlKhTY7i89d5sC32fQnQCfQYrX HIXqohhoZ6XQcGvhUe2e99M= =12zY -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--