From owner-freebsd-fs@FreeBSD.ORG Tue Jan 29 16:44:53 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 85C4D8C3; Tue, 29 Jan 2013 16:44:53 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) by mx1.freebsd.org (Postfix) with ESMTP id EAA1D888; Tue, 29 Jan 2013 16:44:52 +0000 (UTC) Received: by mail-bk0-f53.google.com with SMTP id j10so394834bkw.26 for ; Tue, 29 Jan 2013 08:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=jiTPKyMmtazJoleQdasofoHQVMUTWO2oBZAxEyP661o=; b=SPFkVH2aw57Y0QTUA0U9yVcGAYvdXWg3WNlmq9dWJdkxm1U2Fto9KDeS7F9+Vz95+m 2feVB5zUVRJGJw62WCSqz3f5FzezkaWHBxZIGnVBdSAPHKa5I2Ob0f34LHaqEUpjHiQ8 WQBEEARUnBwjYah7aT+qomXFywfVVZHQIrdItOapLYGI7tK3IsqN1d7Eaiq3Tgb66CR+ cUrlZmMFfaLOkU+wuoiPpB+jQ5IZlljcNWp2CmVGp1DfZQLOjR3CBbM0Ku9vbK1VT9WX obL/Vbex4EFw8dIsdJmn0689TiX8MCoOGO5Naou19RVng/z9oA/dzTtYba3HgUCuF/JF kNyA== X-Received: by 10.204.150.134 with SMTP id y6mr112305bkv.15.1359477891771; Tue, 29 Jan 2013 08:44:51 -0800 (PST) Received: from mavbook.mavhome.dp.ua ([91.198.175.1]) by mx.google.com with ESMTPS id gy3sm4878528bkc.16.2013.01.29.08.44.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Jan 2013 08:44:50 -0800 (PST) Sender: Alexander Motin Message-ID: <5107FC7E.8070108@FreeBSD.org> Date: Tue, 29 Jan 2013 18:44:46 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130125 Thunderbird/17.0.2 MIME-Version: 1.0 To: Jeremy Chadwick Subject: Re: disk "flipped" - a known problem? References: <20130121221617.GA23909@icarus.home.lan> <50FED818.7070704@FreeBSD.org> <20130125083619.GA51096@icarus.home.lan> <20130125211232.GA3037@icarus.home.lan> In-Reply-To: <20130125211232.GA3037@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org, avg@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 16:44:53 -0000 On 25.01.2013 23:12, Jeremy Chadwick wrote: > Now about cam_periph_alloc -- I wanted to provide proof that I have seen > this message before / proving Andriy isn't crazy. :-) This is from > when I was messing about with this bad disk the day I received it: > > Jan 18 19:54:57 icarus kernel: ada5 at ahcich5 bus 0 scbus5 target 0 lun 0 > Jan 18 19:54:57 icarus kernel: ada5: ATA-7 SATA 1.x device > Jan 18 19:54:57 icarus kernel: ada5: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes) > Jan 18 19:54:57 icarus kernel: ada5: Command Queueing enabled > Jan 18 19:54:57 icarus kernel: ada5: 143089MB (293046768 512 byte sectors: 16H 63S/T 16383C) > Jan 18 19:54:57 icarus kernel: ada5: Previously was known as ad14 > Jan 18 19:54:57 icarus kernel: cam_periph_alloc: attempt to re-allocate valid device pass5 rejected flags 0x18 refcount 1 > Jan 18 19:54:57 icarus kernel: passasync: Unable to attach new device due to status 0x6: CCB request was invalid > Jan 18 19:54:57 icarus kernel: GEOM_RAID: NVIDIA-6: Array NVIDIA-6 created. > Jan 18 19:55:27 icarus kernel: GEOM_RAID: NVIDIA-6: Force array start due to timeout. > Jan 18 19:55:27 icarus kernel: GEOM_RAID: NVIDIA-6: Disk ada5 state changed from NONE to ACTIVE. > Jan 18 19:55:27 icarus kernel: GEOM_RAID: NVIDIA-6: Subdisk RAID 0+1 279.47G:3-ada5 state changed from NONE to REBUILD. > Jan 18 19:55:27 icarus kernel: GEOM_RAID: NVIDIA-6: Array started. > Jan 18 19:55:27 icarus kernel: GEOM_RAID: NVIDIA-6: Volume RAID 0+1 279.47G state changed from STARTING to BROKEN. > Jan 18 19:55:39 icarus kernel: GEOM_RAID: NVIDIA-6: Volume RAID 0+1 279.47G state changed from BROKEN to STOPPED. > Jan 18 19:55:49 icarus kernel: GEOM_RAID: NVIDIA-6: Array NVIDIA-6 destroyed. > > So why didn't I see this message today? On January 20th I rebuild > world/kernel after removing GEOM_RAID from my kernel config. The reason > I removed GEOM_RAID is that, as you can see, that bad disk** was > previously in a system (not my own) with an nVidia SATA chipset with > their RAID option ROM enabled (my system is Intel, hence "array timeout" > since there's no nVidia option ROM, I believe). Array timeout means that within defined timeout GEOM RAID failed to detect all of array components. GEOM RAID doesn't depend on option ROM presence to access the data. Array was finally marked as BROKEN because it was one disk of RAID0+1's four. > I got sick and tired of having to "fight" with the kernel. The last two > messages were a result of me doing "graid stop ada5". And of course "dd > if=/dev/zero of=/dev/ada5 bs=64k" will cause GEOM to re-taste, causing > the RAID metadata to get re-read, "NVIDIA-7" created, rinse lather > repeat. But there's already a thread on this: > > http://lists.freebsd.org/pipermail/freebsd-fs/2013-January/016292.html > > Just easier for me to remove the option, that's all. I would personally prefer to erase unwanted stale metadata with `graid delete NVIDIA-7`. It erases only one sector where metadata stored and doesn't corrupt any other data on the disk. -- Alexander Motin