From owner-freebsd-hardware@FreeBSD.ORG Mon Oct 18 16:55:20 2010 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D505106566B; Mon, 18 Oct 2010 16:55:20 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2724C8FC08; Mon, 18 Oct 2010 16:55:19 +0000 (UTC) Received: by qwe4 with SMTP id 4so719051qwe.13 for ; Mon, 18 Oct 2010 09:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=/Egxh4ntALxs13W3Rl9IJZ+o8Q9wORd4C1XCmRoh3WY=; b=oyejy4c9Ze1C2/NXBh4zk7E/QFRoBREwF7+F7fR1PVdOQE8NZ64MAFci7bJJQwaYpy jaL900bO+L8vb1Ff0UykqpkeiBysgEL5RO/7NBONdUj5LT3t0LXhHnDDUXrClQk7GsCe CVTANWXNVXwdtDmwUN1bdo64XcXrSDD00Xqr0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=V6LcnmDjPfMiOMGeM1vuPBJ2ixhClTDSZBJU9y7lA3zDnUvo6mx2Hs9QVB53JUtc4S ZkgLWkZliioG2yB4/+mM+XBA675fWKH8NXgRagCvaNUDdIhFtcOQPI2+iluwxXl8LVcv uOQ0+a2NqHxZWPJjwm582VFwucdwtBxhXimLg= MIME-Version: 1.0 Received: by 10.224.182.3 with SMTP id ca3mr2862969qab.313.1287420918922; Mon, 18 Oct 2010 09:55:18 -0700 (PDT) Received: by 10.229.61.29 with HTTP; Mon, 18 Oct 2010 09:55:18 -0700 (PDT) In-Reply-To: References: <4CB8A614.6000707@greatbaysoftware.com> <4CB8BED6.8040204@greatbaysoftware.com> Date: Mon, 18 Oct 2010 20:55:18 +0400 Message-ID: From: Sergey Kandaurov To: Charles Owens Content-Type: multipart/mixed; boundary=20cf30363f838c7da20492e70aab Cc: FreeBSD Current , Scott Long , freebsd-hardware@freebsd.org Subject: Re: mfiutil reports "PSTATE 0x0020" new drive state X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 16:55:20 -0000 --20cf30363f838c7da20492e70aab Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 16 October 2010 02:18, Sergey Kandaurov wrote: > On 16 October 2010 00:51, Charles Owens wro= te: >> =A0Hmm... the problem appears to have resolved itself. =A0After a few ho= urs the >> new drive seems to have gone back into the array, and the original hot s= pare >> drive put back into hot-spare state. >> >> So I'm interpreting state 0x0020 to therefore mean something like "hang = on >> while I use this new drive to automatically put everything back as it wa= s >> before the failure". =A0Is this correct? >> >> Thanks, >> Charles >> >> [root@Bsvr ~]# mfiutil show drives >> mfi0 Physical Drives: >> ( =A0149G) ONLINE =A0SATA enclosure = 1, slot 0 >> ( =A0149G) ONLINE =A0SATA enclosure = 1, slot 1 >> ( =A0149G) ONLINE =A0SATA enclosure = 1, slot 2 >> ( =A0149G) HOT SPARE =A0SATA enclosu= re 1, slot >> 3 >> ( =A0149G) ONLINE =A0SATA enclosure = 1, slot 4 >> >> >>> [...] >>> [root@svr ~]# mfiutil show drives >>> mfi0 Physical Drives: >>> ( =A0149G) ONLINE =A0SATA enclosure= 1, slot >>> 0 >>> ( =A0149G) ONLINE =A0SATA enclosure= 1, slot >>> 1 >>> ( =A0149G) ONLINE =A0SATA enclosure= 1, slot >>> 2 >>> ( =A0149G) ONLINE =A0SATA enclosure= 1, slot >>> 3 >>> ( =A0149G) PSTATE 0x0020 =A0SATA en= closure >>> 1, slot 4 >>> >>> mfi0: =A0port 0x1000-0x10ff mem >>> ... >>> > > Hi, Charles Owens. > > 0x20 is much likely to be the copyback physical state, > which is missing in enum mfi_pd_state. > And what you've experienced is copyback feature in action :) > Your array has been rebuilt with HSP as its ordinal PD, then you > switched failed drive > with good one, and HSP came into copyback mode to move all its data back > to good disk. That prevents reordering of disk numbers in array and > double rebuilding. > So, it no one objects, I'd like to commit this change. --=20 wbr, pluknet --20cf30363f838c7da20492e70aab Content-Type: application/octet-stream; name="mfi.diff" Content-Disposition: attachment; filename="mfi.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gffl5tic0 SW5kZXg6IHN5cy9kZXYvbWZpL21maXJlZy5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9kZXYvbWZpL21m aXJlZy5oCShyZXZpc2lvbiAyMTQwMjUpCisrKyBzeXMvZGV2L21maS9tZmlyZWcuaAkod29ya2lu ZyBjb3B5KQpAQCAtOTc1LDcgKzk3NSw4IEBACiAJTUZJX1BEX1NUQVRFX09GRkxJTkUgPSAweDEw LAogCU1GSV9QRF9TVEFURV9GQUlMRUQgPSAweDExLAogCU1GSV9QRF9TVEFURV9SRUJVSUxEID0g MHgxNCwKLQlNRklfUERfU1RBVEVfT05MSU5FID0gMHgxOAorCU1GSV9QRF9TVEFURV9PTkxJTkUg PSAweDE4LAorCU1GSV9QRF9TVEFURV9DT1BZQkFDSyA9IDB4MjAKIH07CiAKIHVuaW9uIG1maV9s ZF9yZWYgewpJbmRleDogdXNyLnNiaW4vbWZpdXRpbC9tZmlfZHJpdmUuYwo9PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0t LSB1c3Iuc2Jpbi9tZml1dGlsL21maV9kcml2ZS5jCShyZXZpc2lvbiAyMTQwMjUpCisrKyB1c3Iu c2Jpbi9tZml1dGlsL21maV9kcml2ZS5jCSh3b3JraW5nIGNvcHkpCkBAIC02NSw2ICs2NSw4IEBA CiAJCXJldHVybiAoIlJFQlVJTEQiKTsKIAljYXNlIE1GSV9QRF9TVEFURV9PTkxJTkU6CiAJCXJl dHVybiAoIk9OTElORSIpOworCWNhc2UgTUZJX1BEX1NUQVRFX0NPUFlCQUNLOgorCQlyZXR1cm4g KCJDT1BZQkFDSyIpOwogCWRlZmF1bHQ6CiAJCXNwcmludGYoYnVmLCAiUFNUQVRFIDB4JTA0eCIs IHN0YXRlKTsKIAkJcmV0dXJuIChidWYpOwo= --20cf30363f838c7da20492e70aab--