From owner-freebsd-fs@FreeBSD.ORG Sat Mar 26 14:42:58 2011 Return-Path: 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 DE8DB106566C for ; Sat, 26 Mar 2011 14:42:58 +0000 (UTC) (envelope-from pipatron@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9F4B18FC0C for ; Sat, 26 Mar 2011 14:42:58 +0000 (UTC) Received: by yxl31 with SMTP id 31so885256yxl.13 for ; Sat, 26 Mar 2011 07:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=l7HZOXhe9ZtZ3rPOJQZJjBLW2JergD0E/6IAGWZYR8E=; b=cgSDP5klwQpiiUr5D8HF180PHGwH0oaJJJ4uKMqFVpgptmNSZ6uiDeO9xMSZgyQ7nr ns9a0waWNQjcs7YwWzIaRrSCF2m8Z6so526K9gMFAu4T0ZZkisJoq9TOi5i144xG96F9 hU1/gQk4kdm+/wJbPoWJ7smOizw5HB7bwE8NE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=l58fwP2Y3dexAtuLcUxU3VDVamDb9cQwDXPDMssCGC1WBUNkfyzGqgxy6HQqytjvca Io0lNcKayh+yv40KnIq77l0fiFRaBzCilWCzokctQmtK3lWb0u+D53o5mJo6/OOaZNfc SyIJ8jGiKVFvGkgGI7IE2XPbyX/osiAMY/Fuc= MIME-Version: 1.0 Received: by 10.236.154.166 with SMTP id h26mr2946430yhk.186.1301150577888; Sat, 26 Mar 2011 07:42:57 -0700 (PDT) Received: by 10.147.35.6 with HTTP; Sat, 26 Mar 2011 07:42:57 -0700 (PDT) Date: Sat, 26 Mar 2011 15:42:57 +0100 Message-ID: From: Anders Andersson To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: RAID-Z in a disk-failure. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2011 14:42:58 -0000 Evening! I have a question about ZFS in a FreeBSD setting, more specifically about RAID-Z. I have never used ZFS so I might have misunderstood something, but imagine this situation: You're using ZFS in RAID-Z with 4 disks. One of these gets a catastrophic failure. You replace the disk with a new one, but when the RAID-Z is rebuilt, the software notices that one sector/block on another disk has become corrupted. It notices this because ZFS keeps a checksum. What happens then? Since the redundancy is temporarily disabled because of the failed disk, this sector/block is nowhere to be found. My hope is that the system will handle this gracefully, so that only the file using this block will be unreadable, but the rest of the data is available and can be rebuilt. The worst that could happen is that the rebuild is refused and the whole pool is gone. Have I missed something in this scenario? // Anders