From owner-freebsd-fs@FreeBSD.ORG Sat Jan 21 23:02:24 2012 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DEBB106566B for ; Sat, 21 Jan 2012 23:02:24 +0000 (UTC) (envelope-from fjwcash@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 C2B408FC15 for ; Sat, 21 Jan 2012 23:02:23 +0000 (UTC) Received: by vbbey12 with SMTP id ey12so1795212vbb.13 for ; Sat, 21 Jan 2012 15:02:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=X60VeD+V0uZz+vcwLP0LrCJRTckxkzeFsH7g/HGylYA=; b=x6mHwoEQSPjQ66QSsMCJtRcTNvvhli/p6+eGsc99f6QOFUGohSucBLInw9c5FXz8nf CTVZOhQsIhB3GcSp/xBfAqTERb6SLgVV6lJcX03ObjOkJRp/juBIyzc5wlMj7NoMyUhs 3QJvrW0HUDhnL8TevzV8PId2D5kmxfMoZM7Ic= MIME-Version: 1.0 Received: by 10.52.24.70 with SMTP id s6mr1379260vdf.32.1327185383431; Sat, 21 Jan 2012 14:36:23 -0800 (PST) Received: by 10.220.117.11 with HTTP; Sat, 21 Jan 2012 14:36:23 -0800 (PST) Received: by 10.220.117.11 with HTTP; Sat, 21 Jan 2012 14:36:23 -0800 (PST) In-Reply-To: <20120121230616.00006267@unknown> References: <4F193D90.9020703@digiware.nl> <20120121162906.0000518c@unknown> <4F1B0177.8080909@digiware.nl> <20120121230616.00006267@unknown> Date: Sat, 21 Jan 2012 14:36:23 -0800 Message-ID: From: Freddie Cash To: Alexander Leidinger Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: fs@freebsd.org Subject: Re: Question about ZFS with log and cache on SSD with GPT 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, 21 Jan 2012 23:02:24 -0000 On Jan 21, 2012 2:06 PM, "Alexander Leidinger" wrote: > > On Sat, 21 Jan 2012 19:18:31 +0100 Willem Jan Withagen > wrote: > > Our are you more concerned out losing the the LOG en thus possible > > losing data. > > Yes. If one piece of the involved hardware dies, you lose data. To clarify this a bit. You will only lose data is: - data is written to ZIL device - entire system crashes before the data in the ZIL is written to disk - ZIL device is not available at pool import time If you write data to the ZIL, then the system crashes *but all data in ZIL is already written to the pool*, and the ZIL device is not available at pool import time, then no data is lost, and the pool import will continue without the separate ZIL. ZFS pools prior to ZFSv19 could not cope with a missing ZIL device at pool import time, so those pools were effectively lost. The only way to recover data was through some finicky zdb stuff. Thus, you had to use a mirrored log device to mitigate this risk. Since ZFSv19, though, a pool can be imported with a faulted ZIL device, and carry on. Only data that's only in the ZIL, not written to the pool, is lost.