From owner-freebsd-geom@FreeBSD.ORG Sun Oct 23 17:42:23 2005 Return-Path: X-Original-To: geom@freebsd.org Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94FD916A41F for ; Sun, 23 Oct 2005 17:42:23 +0000 (GMT) (envelope-from cpressey@catseye.mine.nu) Received: from priv-edmwes25.telusplanet.net (defout.telus.net [204.209.205.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2896643D49 for ; Sun, 23 Oct 2005 17:42:22 +0000 (GMT) (envelope-from cpressey@catseye.mine.nu) Received: from catseye.biscuit.boo ([154.20.76.195]) by priv-edmwes25.telusplanet.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with SMTP id <20051023174222.BWDW28339.priv-edmwes25.telusplanet.net@catseye.biscuit.boo> for ; Sun, 23 Oct 2005 11:42:22 -0600 Date: Sun, 23 Oct 2005 10:49:00 -0700 From: Chris Pressey To: geom@freebsd.org Message-Id: <20051023104900.46836c55.cpressey@catseye.mine.nu> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; i386-portbld-freebsd4.11) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: fdisk(8) can't alter in-core geometry on unintialized disk anymore? 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, 23 Oct 2005 17:42:23 -0000 Hello, Unless I'm mistaken, it's no longer possible for fdisk(8) to change "our idea of what the BIOS thinks" for an uninitialized disk, under recent FreeBSD-CURRENT (as of 7 days ago - and probably for the last few months, by the look of the CVS logs.) The reasons for this seem to be twofold, and they seem to both be related to GEOM. On the "get the current geometry" side: - fdisk now asks GEOM when it wants to find out the geometry of a disk. - An uninitialized disk has no MBR, so no geom_mbr is created for it. - GEOM reports the geometry of a disk without a geom_mbr provider by passing the request through to the ATA layer(?) - The ATA layer reports only the geometry detected at boot(?) And on the "set a new geometry" side: - fdisk now asks GEOM when it wants to change the MBR and the geometry of a disk. - Because the uninitialized disk has no geom_mbr, this fails. - fdisk falls back to writing an updated MBR to the right place on the raw disk device, with a call to pwrite(2). - This, however, does not affect the in-core geometry. This can be evidenced by: - running fdisk -u adX - changing the geometry - telling fdisk to write out changes - running fdisk adX and observing that the geometry did not change. As for a possible solution: this is largely a shot in the dark since I don't know anything about GEOM, but it seems to me that it would be most appropriate for fdisk to trigger the creation of a geom_mbr provider on the disk when it doesn't have one yet. Since the geom_mbr presumably requires a valid MBR, this would have to happen after the raw pwrite() of the MBR to the disk. And after that, the GEOM verb to alter the MBR would have to be repeated, so that the in-core geometry gets updated. Does this analysis seem reasonable? At any rate, if someone could confirm that this really is a regression, and not just something that is happening on my system and/or some intentional new behaviour(?), that would be great. Thanks in advance, -Chris From owner-freebsd-geom@FreeBSD.ORG Mon Oct 24 07:26:46 2005 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 042FF16A41F; Mon, 24 Oct 2005 07:26:46 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B450C43D49; Mon, 24 Oct 2005 07:26:45 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9O7Qjtm026201; Mon, 24 Oct 2005 07:26:45 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9O7QjpW026197; Mon, 24 Oct 2005 07:26:45 GMT (envelope-from linimon) Date: Mon, 24 Oct 2005 07:26:45 GMT From: Mark Linimon Message-Id: <200510240726.j9O7QjpW026197@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org Cc: Subject: Re: kern/84556: [geom] GBDE-encrypted swap causes panic at shutdown 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, 24 Oct 2005 07:26:46 -0000 Old Synopsis: GBDE-encrypted swap causes panic at shutdown New Synopsis: [geom] GBDE-encrypted swap causes panic at shutdown Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Mon Oct 24 07:26:26 GMT 2005 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=84556 From owner-freebsd-geom@FreeBSD.ORG Mon Oct 24 09:09:13 2005 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B8DE16A41F; Mon, 24 Oct 2005 09:09:13 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F215443D55; Mon, 24 Oct 2005 09:09:12 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9O99Cvm045111; Mon, 24 Oct 2005 09:09:12 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9O99C6Q045107; Mon, 24 Oct 2005 09:09:12 GMT (envelope-from linimon) Date: Mon, 24 Oct 2005 09:09:12 GMT From: Mark Linimon Message-Id: <200510240909.j9O99C6Q045107@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org Cc: Subject: Re: kern/87544: [gbde] mmaping large files on a gbde filesystem deadlocks the system 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, 24 Oct 2005 09:09:13 -0000 Synopsis: [gbde] mmaping large files on a gbde filesystem deadlocks the system Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Mon Oct 24 09:08:59 GMT 2005 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=87544 From owner-freebsd-geom@FreeBSD.ORG Mon Oct 24 11:02:05 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ADD916A41F for ; Mon, 24 Oct 2005 11:02:05 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4244E43D46 for ; Mon, 24 Oct 2005 11:02:05 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9OB25xZ061935 for ; Mon, 24 Oct 2005 11:02:05 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9OB24qr061929 for freebsd-geom@freebsd.org; Mon, 24 Oct 2005 11:02:04 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 24 Oct 2005 11:02:04 GMT Message-Id: <200510241102.j9OB24qr061929@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 24 Oct 2005 11:02:05 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/08/04] kern/84556 geom [geom] GBDE-encrypted swap causes panic a o [2005/10/16] kern/87544 geom [gbde] mmaping large files on a gbde file 2 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/02/26] bin/78131 geom gbde "destroy" not working. o [2005/03/26] kern/79251 geom [2TB] newfs fails on 2.6TB gbde device 2 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Oct 24 20:47:59 2005 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C80F16A41F; Mon, 24 Oct 2005 20:47:59 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 407FC43D4C; Mon, 24 Oct 2005 20:47:59 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9OKlx6J051624; Mon, 24 Oct 2005 20:47:59 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9OKlxLn051620; Mon, 24 Oct 2005 20:47:59 GMT (envelope-from linimon) Date: Mon, 24 Oct 2005 20:47:59 GMT From: Mark Linimon Message-Id: <200510242047.j9OKlxLn051620@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org Cc: Subject: Re: kern/76538: [gbde] nfs-write on gbde partition stalls and continues much later 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, 24 Oct 2005 20:47:59 -0000 Old Synopsis: nfs-write on gbde partition stalls and continues much later New Synopsis: [gbde] nfs-write on gbde partition stalls and continues much later Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Mon Oct 24 20:47:16 GMT 2005 Responsible-Changed-Why: Over to mailing list for evaluation. http://www.freebsd.org/cgi/query-pr.cgi?pr=76538 From owner-freebsd-geom@FreeBSD.ORG Tue Oct 25 22:32:17 2005 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AE4C16A41F; Tue, 25 Oct 2005 22:32:17 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBAFF43D5F; Tue, 25 Oct 2005 22:32:16 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9PMWGpX071091; Tue, 25 Oct 2005 22:32:16 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9PMWGUB071085; Tue, 25 Oct 2005 22:32:16 GMT (envelope-from linimon) Date: Tue, 25 Oct 2005 22:32:16 GMT From: Mark Linimon Message-Id: <200510252232.j9PMWGUB071085@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org Cc: Subject: Re: kern/87986: [geom] [hang] gmirror and quota will hang the OS 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, 25 Oct 2005 22:32:17 -0000 Synopsis: [geom] [hang] gmirror and quota will hang the OS Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Tue Oct 25 22:32:06 GMT 2005 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=87986 From owner-freebsd-geom@FreeBSD.ORG Wed Oct 26 02:02:25 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BBCF16A41F; Wed, 26 Oct 2005 02:02:25 +0000 (GMT) (envelope-from sudakov@sibptus.tomsk.ru) Received: from relay2.tomsk.ru (relay2.tomsk.ru [212.73.124.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B10D43D48; Wed, 26 Oct 2005 02:02:23 +0000 (GMT) (envelope-from sudakov@sibptus.tomsk.ru) X-Virus-Scanned: by Dr.Web (R) daemon for FreeBSD, version 4.32.1 (2004-08-30) at relay2.tomsk.ru Received: from [172.16.138.125] (account sudakovva@sibptus.tomsk.ru HELO admin.sibptus.tomsk.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 4.3.8) with ESMTPSA id 1460970; Wed, 26 Oct 2005 09:02:21 +0700 Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.12.9p2/8.12.9/Submit) id j9Q22KSM022799; Wed, 26 Oct 2005 09:02:20 +0700 (OMSST) (envelope-from sudakov@sibptus.tomsk.ru) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to sudakov@sibptus.tomsk.ru using -f Date: Wed, 26 Oct 2005 09:02:20 +0700 From: Victor Sudakov To: Mark Linimon Message-ID: <20051026020220.GA22749@admin.sibptus.tomsk.ru> References: <200510252232.j9PMWGUB071085@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200510252232.j9PMWGUB071085@freefall.freebsd.org> User-Agent: Mutt/1.4.2.1i Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://vas.tomsk.ru/vas.asc Cc: freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: kern/87986: [geom] [hang] gmirror and quota will hang the OS 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, 26 Oct 2005 02:02:25 -0000 Mark Linimon wrote: > Synopsis: [geom] [hang] gmirror and quota will hang the OS > > http://www.freebsd.org/cgi/query-pr.cgi?pr=87986 How do I reproduce the problem? I am using gmirror on a rather busy file server on 5.4-RELEASE-p7 with user quotas enabled and have not experienced any problems so far. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru From owner-freebsd-geom@FreeBSD.ORG Thu Oct 27 19:48:20 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D3C416A41F for ; Thu, 27 Oct 2005 19:48:20 +0000 (GMT) (envelope-from rudy@monkeybrains.net) Received: from mail.monkeybrains.net (mail1.monkeybrains.NET [207.7.142.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 219BB43D48 for ; Thu, 27 Oct 2005 19:48:20 +0000 (GMT) (envelope-from rudy@monkeybrains.net) Received: from [192.168.0.111] (dsl092-187-117.sfo1.dsl.speakeasy.net [66.92.187.117]) (authenticated bits=0) by mail.monkeybrains.net (8.13.4/8.13.4) with ESMTP id j9RJmJwC015182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 27 Oct 2005 12:48:19 -0700 (PDT) (envelope-from rudy@monkeybrains.net) Message-ID: <43612F07.6070603@monkeybrains.net> Date: Thu, 27 Oct 2005 12:48:23 -0700 From: Rudy Rucker User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051010 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.87, clamav-milter version 0.87 on mail.monkeybrains.net X-Virus-Status: Clean Subject: Will fdisk work on a gmirror device? 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: Thu, 27 Oct 2005 19:48:20 -0000 Pardon me if you saw this post on freebsd-current, but I just found this -geom list and realized this is the place to post. ------------------------------------------------------------------------ I have a 200 GB mirrored gm0. I have one slice with 6 partitions. I would like to delete the 6th 100GB large partition on slice one, run fdisk, and make a second 100GB slice. Will this not mangle my system (if reasonable values are entered, of course)? fdisk -u /dev/mirror/gm0 I am running FreeBSD 6.0-RC1. (fdisk seems to see the gm0 better than in 5.4...). Rudy Geom name: gm0 State: COMPLETE Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 2988355435 Providers: 1. Name: mirror/gm0 Mediasize: 200049647104 (186G) Sectorsize: 512 Mode: r6w6e7 Consumers: 1. Name: ad0 Mediasize: 200049647616 (186G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 1 ID: 2584972746 2. Name: ad2 Mediasize: 200049647616 (186G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 1 ID: 3791733936