From owner-freebsd-current@FreeBSD.ORG Sun Sep 23 19:53:24 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 C5B2E1065670 for ; Sun, 23 Sep 2012 19:53:24 +0000 (UTC) (envelope-from jose@compufutura.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7B37A8FC17 for ; Sun, 23 Sep 2012 19:53:24 +0000 (UTC) Received: by pbbrp8 with SMTP id rp8so1773574pbb.13 for ; Sun, 23 Sep 2012 12:53:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:x-mailer:thread-index:content-language :x-gm-message-state; bh=GaCuzT5CDlJz80WsiG0x/H3xwodgl4lP1/NtMUIgHA8=; b=h+aZj0bQaa53MPNVZuUFSdiwt87HV/hl3LNZtPoBcwss1edPmbbLeZSEV47h+YALUL FXyks52NdbrjpKquJEQuHkpDpgn4asYxsOaHBXIpdgBx9Sxr91CK9N1qg6y65DsRsaYl JS4qprmawH+2Z6G1Z0e0oCbttDXPF9Yv1enVW+yE3evxw9715M4PazS9NfY8Itiz1a+F bWuaYQgY8bh/urvDy2651mYku7J83W27JyAAxHguTvVj/8MeoPbRyBC1H53cN7F4MDpK +lkP6R12c7ISrl9H7su5uwWEft7tP2DWljO+T5stofo/9hkPqASY50Ftlawd8VJeurrv MyFw== Received: by 10.68.223.164 with SMTP id qv4mr31401469pbc.20.1348430003712; Sun, 23 Sep 2012 12:53:23 -0700 (PDT) Received: from josebashPC ([2602:304:cff8:66f0:d1a4:3dec:9726:a54d]) by mx.google.com with ESMTPS id kt2sm8433715pbc.73.2012.09.23.12.53.21 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Sep 2012 12:53:23 -0700 (PDT) From: "compufutura -the computer of the future" To: References: <991027C2-2424-4BDD-8183-FD6E37DFF447@lajni.com> In-Reply-To: <991027C2-2424-4BDD-8183-FD6E37DFF447@lajni.com> Date: Sun, 23 Sep 2012 12:53:19 -0700 Message-ID: <004101cd99c5$16212390$42636ab0$@compufutura.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKgaK82pPaQZDV5/s3d02jJfBU8MwIjuVVcleGZpRA= Content-Language: en-us X-Gm-Message-State: ALoCoQkza/yjgnQhxu93RE1iJ+lTV1sVB69Xgc5tQZdekp9LAxKWiFTbW6wVhle1CoghblYDcxdY X-Mailman-Approved-At: Sun, 23 Sep 2012 21:27:56 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:53:24 -0000 Yanegomi, =20 I tried that, as you can see below, freebsd doesn=E2=80=99t have cfgadm Utility to un configure the device, according to, = http://docs.oracle.com/cd/E19253-01/819-5461/gbcet/index.html, I looked = to ports but there is no utility like that. =20 Pardon me, my knowledge is little. =20 Can you please type the command I will need, or if I need cfgadm do I = have to look for that and install it in my freebsd box? =20 Thanks. =20 =20 [root@san1 /usr/home/jose]# zpool offline tank hast/disk2 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]# zpool status -x pool: tank state: DEGRADED status: One or more devices has been taken offline 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: scrub repaired 0 in 12h4m with 0 errors on Sun Sep 23 19:14:19 = 2012 config: =20 NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 hast/disk1 ONLINE 0 0 0 11919832608590631234 OFFLINE 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 =20 errors: No known data errors [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]# zpool replace tank hast/disk2 cannot open 'hast/disk2': no such GEOM provider must be a full path or shorthand device name [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]# cfgadm bash: cfgadm: command not found [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]# zpool offline tank hast/disk2 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]# zpool status -x pool: tank state: DEGRADED status: One or more devices has been taken offline 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: scrub repaired 0 in 12h4m with 0 errors on Sun Sep 23 19:14:19 = 2012 config: =20 NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 hast/disk1 ONLINE 0 0 0 11919832608590631234 OFFLINE 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 =20 errors: No known data errors [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]#=20 [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]#=20 [root@san1 /usr/home/jose]# zpool replace tank hast/disk2 cannot open 'hast/disk2': no such GEOM provider must be a full path or shorthand device name [root@san1 /usr/home/jose]#=20 [root@san1 /usr/home/jose]# =20 From: Garrett Cooper Date: September 23, 2012 12:25:52 PM PDT To: "Jose A. Lombera" Cc: freebsd-current@freebsd.org Subject: Re: zpool can't bring online disk2 On Sun, Sep 23, 2012 at 11:23 AM, Jose A. Lombera = wrote: Hello! all, =20 I hope someone can help me out with this. =20 Recently disk2 when bad, I have used =20 Zpool offline tank hast/disk2 =20 To bring the disk offline. Then I replaced it. =20 =20 =20 And use the command =20 Zpool online tank hast/disk2 =20 But the disk show REMOVE. =20 =20 =20 =20 =20 [root@san1 /usr/home/jose]# zpool status -v pool: tank state: DEGRADED status: One or more devices has been removed by the administrator. =20 Sufficient replicas exist for the pool to continue functioning in = a degraded state. =20 action: Online the device using 'zpool online' or replace the device = with =20 'zpool replace'. =20 scan: resilvered 2.49M in 0h2m with 0 errors on Sat Sep 22 01:03:13 2012 config: =20 NAME STATE READ WRITE CKSUM =20 tank DEGRADED 0 0 0 =20 raidz1-0 DEGRADED 0 0 0 =20 hast/disk1 ONLINE 0 0 0 =20 11919832608590631234 REMOVED 0 0 0 was /dev/hast/disk2 =20 hast/disk3 ONLINE 0 0 0 =20 hast/disk4 ONLINE 0 0 0 =20 hast/disk5 ONLINE 0 0 0 =20 hast/disk6 ONLINE 0 0 0 =20 hast/disk7 ONLINE 0 0 0 =20 hast/disk8 ONLINE 0 0 0 =20 hast/disk9 ONLINE 0 0 0 =20 hast/disk10 ONLINE 0 0 0 =20 [root@san1 /usr/home/jose]# zpool online tank hast/disk2 =20 warning: device 'hast/disk2' onlined, but remains in faulted state =20 use 'zpool replace' to replace devices that are no longer present =20 [root@san1 /usr/home/jose]# =20 I can't bring it back online. =20 Can you guys help me out what to do. =20 This is a production server and I can't afford to bring the server down. =20 I have already swap 3 disks and I got the same result. =20 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