From owner-freebsd-fs@FreeBSD.ORG Tue Mar 16 08:23:08 2010 Return-Path: <owner-freebsd-fs@FreeBSD.ORG> Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B5A4106564A for <freebsd-fs@freebsd.org>; Tue, 16 Mar 2010 08:23:08 +0000 (UTC) (envelope-from randy@psg.com) Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:1::36]) by mx1.freebsd.org (Postfix) with ESMTP id 20D9E8FC0A for <freebsd-fs@freebsd.org>; Tue, 16 Mar 2010 08:23:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=rmac.psg.com.psg.com) by ran.psg.com with esmtp (Exim 4.71 (FreeBSD)) (envelope-from <randy@psg.com>) id 1NrS3P-000Ejj-C8; Tue, 16 Mar 2010 08:23:07 +0000 Date: Tue, 16 Mar 2010 01:23:07 -0700 Message-ID: <m21vfkr7ys.wl%randy@psg.com> From: Randy Bush <randy@psg.com> To: Dan Naumov <dan.naumov@gmail.com> In-Reply-To: <cf9b1ee01003150409j6f2d23dbr62ede32f0551102a@mail.gmail.com> References: <cf9b1ee01003150409j6f2d23dbr62ede32f0551102a@mail.gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-fs@freebsd.org Subject: Re: degraded zfs slowdown X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems <freebsd-fs.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-fs>, <mailto:freebsd-fs-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-fs> List-Post: <mailto:freebsd-fs@freebsd.org> List-Help: <mailto:freebsd-fs-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-fs>, <mailto:freebsd-fs-request@freebsd.org?subject=subscribe> X-List-Received-Date: Tue, 16 Mar 2010 08:23:08 -0000 >> as the ghostly bad drive does not have a unique name, [how] can i tell >> zfs to remove it for the moment? > Have you tried running a scrub on the pool and THEN trying to offline > and detach (zpool commands, not physical actions) the ghost drive? psg.com:/root# zpool scrub tank psg.com:/root# zpool status pool: tank state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'. see: http://www.sun.com/msg/ZFS-8000-4J scrub: scrub in progress for 0h0m, 0.00% done, 169h12m to go config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 mirror DEGRADED 0 0 0 twed1 FAULTED 0 3 0 corrupted data twed1 ONLINE 0 0 0 errors: No known data errors still do not know how to detach bad drive as it does not have a unique name randy > Note: when adding the replacement drive, remember to ATTACH the drives > together. If you ADD the new drive, you will end up with a stripe, not > a mirror. ack. thanks. randy