From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 2 04:03:24 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 627E3106566C for ; Tue, 2 Mar 2010 04:03:24 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1185A8FC0A for ; Tue, 2 Mar 2010 04:03:23 +0000 (UTC) Received: by vws14 with SMTP id 14so1433966vws.13 for ; Mon, 01 Mar 2010 20:03:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Sd0U3caDpQHvHIIA4d5Cq976kyqg+kGciSB6TCPmTCw=; b=AqQRd8iwTU1xuVoXpY2E+MUuIl33OQrB0YESTJcvKzbCSAI/aojXGSEkNBjlMbamaR QFU7C4CHgAthuf8qlHoEdZ/BMeCQjWKwitrizRWLeyIMUUdTRCOi208nDjaDsF5912Au aJGXPiZzH8b+kRwSG5gKQmhwU2NZTP/qeZXBc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Eg0bsD7OsRCgodp9OPzLPdcBYhaODuReZTiveuhIfDeokGc+2BtaKsJ6x/kivbf/Us 1BtS4oHD3y+C865yHyJXW+kkoXcXlzK4fnXNZ1OBLZqGVEcUAw1FmJVMhQnrvhNgw8Um GtW6f2iKHx9l1nyOLrwUBrQLrzEaHWYzbKVpI= Received: by 10.220.107.104 with SMTP id a40mr3743560vcp.187.1267502591339; Mon, 01 Mar 2010 20:03:11 -0800 (PST) Received: from aryeh-desktop.istudentunion.com (ool-44c0cd7a.dyn.optonline.net [68.192.205.122]) by mx.google.com with ESMTPS id 42sm34195020vws.8.2010.03.01.20.03.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 01 Mar 2010 20:03:09 -0800 (PST) Message-ID: <4B8C8DFE.3010100@gmail.com> Date: Mon, 01 Mar 2010 23:03:10 -0500 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.23 (X11/20100120) MIME-Version: 1.0 To: Dan Nelson References: <20100302034519.GW70798@dan.emsphone.com> In-Reply-To: <20100302034519.GW70798@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Garrett McNeill Subject: Re: unable to offline a failing drive in a zfs RAIDZ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 04:03:24 -0000 Dan Nelson wrote: > In the last episode (Mar 01), Aryeh Friedman said: > >> I have a raidz setup as per the handbook but when I attempt to "offline" a >> failing drive it will not let me: >> >> kate# zpool status -c >> invalid option 'c' >> usage: >> status [-vx] [pool] ... >> kate# zpool status -v >> pool: storage >> state: ONLINE >> scrub: resilver completed with 0 errors on Mon Mar 1 17:36:48 2010 >> config: >> >> NAME STATE READ WRITE CKSUM >> storage ONLINE 0 0 0 >> raidz1 ONLINE 0 0 0 >> ad7 ONLINE 0 0 0 >> ad8 ONLINE 0 0 0 >> ad9 ONLINE 0 0 0 >> ad10 ONLINE 0 0 0 >> ad12 ONLINE 0 0 0 >> >> errors: No known data errors >> kate# zpool offline storage ad12 >> cannot offline ad12: no valid replicas >> > > What version of FreeBSD are you running? This looks like a known bug. It > originally worked for mirrors but not RAIDZ vdevs - "zpool offline is a bit > too conservative": > FreeBSD kate.istudentunion.com 7.2-RELEASE-p1 FreeBSD 7.2-RELEASE-p1 #0: Tue Jun 9 21:30:43 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 > http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=2171359 , and > works for me on a 7-stable kernel: > > (root@studio) /root># uname -a > FreeBSD studio.evoy.net 7.3-PRERELEASE FreeBSD 7.3-PRERELEASE #53: Tue Feb 2 17:19:46 CST 2010 zsh@studio.evoy.net:/usr/src-7/sys/amd64/compile/STUDIO amd64 > (root@studio) /root># mdconfig -a -t swap -s 1g ; mdconfig -a -t swap -s 1g ; mdconfig -a -t swap -s 1g > md1 > md2 > md3 > (root@studio) /root># zpool create dummy raidz md1 md2 md3 > (root@studio) /root># zpool offline dummy md2 > (root@studio) /root># zpool status dummy > pool: dummy > 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'. > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > dummy DEGRADED 0 0 0 > raidz1 DEGRADED 0 0 0 > md1 ONLINE 0 0 0 > md2 OFFLINE 0 0 0 > md3 ONLINE 0 0 0 > > >