From owner-freebsd-current@FreeBSD.ORG Fri Apr 16 05:37:43 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF0AA16A4E3; Fri, 16 Apr 2004 05:37:42 -0700 (PDT) Received: from smtp.thilelli.net (jgabel.net1.nerim.net [80.65.226.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADCBE43D54; Fri, 16 Apr 2004 05:37:41 -0700 (PDT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 095E178C50; Fri, 16 Apr 2004 14:37:37 +0200 (CEST) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13040-01; Fri, 16 Apr 2004 14:37:36 +0200 (CEST) Received: from webmail.thilelli.net (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with SMTP id DEE9E78C4B; Fri, 16 Apr 2004 14:37:35 +0200 (CEST) Received: from 192.168.0.105 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Fri, 16 Apr 2004 14:37:35 +0200 (CEST) Message-ID: <50457.192.168.0.105.1082119055.squirrel@webmail.thilelli.net> In-Reply-To: <20040416121416.GG24376@darkness.comp.waw.pl> References: <50267.192.168.0.105.1082054761.squirrel@webmail.thilelli.net> <5236.1082057026@critter.freebsd.dk> <49481.192.168.0.105.1082110471.squirrel@webmail.thilelli.net> <20040416113702.GF24376@darkness.comp.waw.pl> <50219.192.168.0.105.1082116474.squirrel@webmail.thilelli.net> <20040416121416.GG24376@darkness.comp.waw.pl> Date: Fri, 16 Apr 2004 14:37:35 +0200 (CEST) From: "Julien Gabel" To: freebsd-current@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at thilelli.net cc: Pawel Jakub Dawidek Subject: Re: Can't *write* to a hard disk, problem related to GEOM(4)? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 12:37:44 -0000 >>>>>> /dev/ad10 was previously part of a hardware miror (ar(4) device >>>>>> with a HighPoint HPT374 (channel 2+3) UDMA133 controller), but >>>>>> since it was broken for an unknown reason, thid drive is no more >>>>>> usable, even alone. For example, I am not be able to create a new >>>>>> slice on it. >>>>> Could you try to compile a kernel without the ar(4) driver in it ? >>>>> It may still be latching on to this disk... >>>> Since the ar(4) driver is part of ata(4) generic ATA/ATAPI disk >>>> controller driver, I don't think it is possible to do that without >>>> shooting myself on the foot. Any ideas? >>> Could you post output from: >>> # sysctl -b kern.geom.confxml >> Sure. Because the output is 1128 lines long, the output is attached. > It doesn't look like a GEOM problem: > > > r0w0e0 > ad10 > 122942324736 > 512 > > 16 > 63 > > > > As you can see, this provider is not opened (r0w0e0). > > Try to set kern.geom.debugflags to 4. It will show you all access > requests. With kern.geom.debugflags set to 4, here is what I get when I try to: # fdisk -BI ad10 ******* Working on device /dev/ad10 ******* fdisk: can't write fdisk partition table: Operation not permitted # tail -50 /var/log/messages [...] Apr 16 14:27:53 bento kernel: g_dev_open(ad10, 1, 8192, 0xc6f93dc0) Apr 16 14:27:53 bento kernel: g_access_rel(0xc6a8b300(ad10), 1, 0, 0) Apr 16 14:27:53 bento kernel: open delta:[r1w0e0] old:[r0w0e0] provider:[r0w0e0] 0xc6cad980(ad10) Apr 16 14:27:53 bento kernel: g_disk_access(ad10, 1, 0, 0) Apr 16 14:27:53 bento kernel: g_dev_open(ad10s1, 1, 8192, 0xc6f93dc0) Apr 16 14:27:53 bento kernel: g_access_rel(0xc6a76f00(ad10s1), 1, 0, 0) Apr 16 14:27:53 bento kernel: open delta:[r1w0e0] old:[r0w0e0] provider:[r0w0e0] 0xc6cae080(ad10s1) Apr 16 14:27:53 bento kernel: g_access_rel(0xc6a8b380(ad10), 1, 0, 1) Apr 16 14:27:53 bento kernel: open delta:[r1w0e1] old:[r0w0e0] provider:[r1w0e0] 0xc6cad980(ad10) Apr 16 14:27:53 bento kernel: g_disk_access(ad10, 1, 0, 1) Apr 16 14:27:53 bento kernel: g_dev_close(ad10, 1, 8192, 0xc6f93dc0) Apr 16 14:27:53 bento kernel: g_access_rel(0xc6a8b300(ad10), -1, 0, 0) Apr 16 14:27:53 bento kernel: open delta:[r-1w0e0] old:[r1w0e0] provider:[r2w0e1] 0xc6cad980(ad10) Apr 16 14:27:53 bento kernel: g_disk_access(ad10, -1, 0, 0) Apr 16 14:27:53 bento kernel: g_dev_close(ad10s1, 1, 8192, 0xc6f93dc0) Apr 16 14:27:53 bento kernel: g_access_rel(0xc6a76f00(ad10s1), -1, 0, 0) Apr 16 14:27:53 bento kernel: open delta:[r-1w0e0] old:[r1w0e0] provider:[r1w0e0] 0xc6cae080(ad10s1) Apr 16 14:27:53 bento kernel: g_access_rel(0xc6a8b380(ad10), -1, 0, -1) Apr 16 14:27:53 bento kernel: open delta:[r-1w0e-1] old:[r1w0e1] provider:[r1w0e1] 0xc6cad980(ad10) Apr 16 14:27:53 bento kernel: g_disk_access(ad10, -1, 0, -1) # sysctl -b kern.geom.confxml [...] ad10 2 r0w0e0 r0w0e0 ad10s1 122942292480 512 0 122942292480 240121665 32256 63 165 I don't kow how to interpret all of these debug informations. Are something inresting here, or can I give you some other information or command output? Thanks, -- -jpeg.