From owner-freebsd-questions@FreeBSD.ORG Wed Aug 31 08:20:30 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B84EC1065670 for ; Wed, 31 Aug 2011 08:20:30 +0000 (UTC) (envelope-from basarevych@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 718868FC22 for ; Wed, 31 Aug 2011 08:20:30 +0000 (UTC) Received: by qyk4 with SMTP id 4so778210qyk.13 for ; Wed, 31 Aug 2011 01:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=upYfzEenXMfyTcXxj5ex5QshwGXEcpE30v3E8auSvm8=; b=cKYA2Ncywoy9lFCHREfrSOt15qf6f+IUs8H3CvzfNYAcJ0nc/N8StDfhRSdR6Ld5HF /0/wX0nD7StBDIvCn2ps7ohTFq6M4beFSJrPSIpUMV8eBSjib0+nTCHJAt3Z0XCuIVgi nfQ0OwHP7jS2wqqV7abmruyMn7TDBAUCCB1GQ= MIME-Version: 1.0 Received: by 10.229.62.194 with SMTP id y2mr92472qch.4.1314778829410; Wed, 31 Aug 2011 01:20:29 -0700 (PDT) Received: by 10.229.233.144 with HTTP; Wed, 31 Aug 2011 01:20:29 -0700 (PDT) In-Reply-To: <4e5e32f0.9who12387o0moTmx%perryh@pluto.rain.com> References: <4e5e32f0.9who12387o0moTmx%perryh@pluto.rain.com> Date: Wed, 31 Aug 2011 11:20:29 +0300 Message-ID: From: Ross To: perryh@pluto.rain.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Is there way to get filename for specific LBA? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2011 08:20:30 -0000 On Wed, Aug 31, 2011 at 4:11 PM, wrote: > Ross wrote: > >> Aug 31 05:13:24 da kernel: ad6: WARNING - READ_DMA UDMA ICRC error >> (retrying request) LBA=3D107491647 > > That message is reporting a problem in communication between the > drive and the controller (or, perhaps, between the controller and > main memory), not a problem reading the media, so the LBA is likely > not all that useful (esp. since, if you got no other messages, the > retry succeeded so no data was lost). > > What does > > =C2=A0egrep 'ad[0-9]|ata' /var/run/dmesg.boot > > report? > atapci0: port 0x20b8-0x20bf,0x20cc-0x20cf,0x20b0-0x20b7,0x20c8-0x20cb,0x20a0-0x20af mem 0xe0284000-0xe02843ff irq 19 at device 31.2 on pci0 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ad4: 238475MB at ata2-master UDMA100 SATA ad6: 476940MB at ata3-master UDMA100 SATA Trying to mount root from ufs:/dev/ad6s1a >> # =C2=A0dd if=3D/dev/ad6 of=3D/dev/null bs=3D1m seek=3D107491647 count= =3D1 >> dd: /dev/null: Inappropriate ioctl for device >> >> Another question: why does it fail? > > seek=3D applies to the output file, so it tried to do a seek on > /dev/null :) =C2=A0You probably wanted skip=3D (or iseek=3D). > Thank you :) I have read the man page now. smartd also reports this: Aug 31 10:41:04 da smartd[886]: Device: /dev/ad6, Failed SMART usage Attribute: 184 End-to-End_Error. I found this explanation: http://kb.acronis.com/content/9119 So disk is dying? Or is it cable. I have no physical access to the server at the moment. But still, is there a way to get the filename for LBA?