From owner-freebsd-current@FreeBSD.ORG Sun Sep 23 19:25:53 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 939D7106564A for ; Sun, 23 Sep 2012 19:25:53 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 53FF88FC16 for ; Sun, 23 Sep 2012 19:25:53 +0000 (UTC) Received: by obcwo10 with SMTP id wo10so247298obc.13 for ; Sun, 23 Sep 2012 12:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Z74ppUUsA9d/jgR/1AW9UaLFn6SN0s3XKrYKVrhd3R8=; b=aoifnlR5hyLJt7Z2crEaFZdDOhtILJijWFcKZHlrkAaw9dwhFkIdKobPX56l7hEzXe 68RIQpaImDJmO+xuZkZkparhxvzUiNt4z+BYEgfKbB/OBl0paFWfz7EF4ZTBvaqLd0sD hrzD05FQGRQSQi1inJa8YRWiTgfYxrbay00zOgIr+x4gBiy1/JQRR1owKaetTrS/oUcY +AyPm9a9Z9dNH75L3YmEJQSfkGCMZ7+OvE7zaSxT5MxZ8JAAD1VBiHDTxpy3Lc6J8wI+ jomL/FtpXSLFmICGCKl65eqUtdDzaA0rVf94l2FnzcTbZXuvgf/8bkUcGrjNKcRwKTwU ycww== MIME-Version: 1.0 Received: by 10.182.218.37 with SMTP id pd5mr8267752obc.24.1348428352642; Sun, 23 Sep 2012 12:25:52 -0700 (PDT) Received: by 10.76.142.201 with HTTP; Sun, 23 Sep 2012 12:25:52 -0700 (PDT) In-Reply-To: <003901cd99b8$97288620$c5799260$@lajni.com> References: <003901cd99b8$97288620$c5799260$@lajni.com> Date: Sun, 23 Sep 2012 12:25:52 -0700 Message-ID: From: Garrett Cooper To: "Jose A. Lombera" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org Subject: Re: zpool can't bring online disk2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 23 Sep 2012 19:25:53 -0000 On Sun, Sep 23, 2012 at 11:23 AM, Jose A. Lombera wrote: > Hello! all, > > I hope someone can help me out with this. > > Recently disk2 when bad, I have used > > Zpool offline tank hast/disk2 > > To bring the disk offline. > Then I replaced it. > > > > And use the command > > Zpool online tank hast/disk2 > > But the disk show REMOVE. > > > > > > [root@san1 /usr/home/jose]# zpool status -v > pool: tank > state: DEGRADED > status: One or more devices has been removed by the administrator. > > Sufficient replicas exist for the pool to continue functioning in a > degraded state. > > action: Online the device using 'zpool online' or replace the device with > > 'zpool replace'. > > scan: resilvered 2.49M in 0h2m with 0 errors on Sat Sep 22 01:03:13 2012 > config: > > NAME STATE READ WRITE CKSUM > > tank DEGRADED 0 0 0 > > raidz1-0 DEGRADED 0 0 0 > > hast/disk1 ONLINE 0 0 0 > > 11919832608590631234 REMOVED 0 0 0 was > /dev/hast/disk2 > > hast/disk3 ONLINE 0 0 0 > > hast/disk4 ONLINE 0 0 0 > > hast/disk5 ONLINE 0 0 0 > > hast/disk6 ONLINE 0 0 0 > > hast/disk7 ONLINE 0 0 0 > > hast/disk8 ONLINE 0 0 0 > > hast/disk9 ONLINE 0 0 0 > > hast/disk10 ONLINE 0 0 0 > > [root@san1 /usr/home/jose]# zpool online tank hast/disk2 > > warning: device 'hast/disk2' onlined, but remains in faulted state > > use 'zpool replace' to replace devices that are no longer present > > [root@san1 /usr/home/jose]# > > I can't bring it back online. > > Can you guys help me out what to do. > > This is a production server and I can't afford to bring the server down. > > I have already swap 3 disks and I got the same result. > > Thank you guys in advance. You forgot to call zpool replace as the last step in the process of replacing your faulted disk: http://docs.oracle.com/cd/E19253-01/819-5461/gbcet/index.html . Cheers, -Garrett