From owner-freebsd-fs@FreeBSD.ORG Sat Apr 13 18:10:37 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A7133271 for ; Sat, 13 Apr 2013 18:10:37 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 424E7EAB for ; Sat, 13 Apr 2013 18:10:37 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UR4uC-00055P-KK; Sat, 13 Apr 2013 20:10:29 +0200 Received: from dhcp-077-251-158-153.chello.nl ([77.251.158.153] helo=pinky) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1UR4uC-0000VP-8A; Sat, 13 Apr 2013 20:10:28 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "freebsd-fs@freebsd.org" , mxb Subject: Re: ZFS: ZIL device export/import References: <5A2824CA-2A67-47FA-AB27-20C6EBD2C501@alumni.chalmers.se> <51699B8E.7050003@platinum.linux.pl> Date: Sat, 13 Apr 2013 20:10:29 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.15 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: 0.8 X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.1 X-Scan-Signature: f0d5e446bfc5bbd6ce781899a390d841 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Apr 2013 18:10:37 -0000 On Sat, 13 Apr 2013 20:03:47 +0200, mxb wrote: > > Yes, will this require some additional interactions. > > The big question is WHY export/import works fine for L2ARC device > (cache), but not for log (ZIL device) ? > > Well, I tried to partition and then label (via glabel) slices on both > ZIL and L2ARC, the created a new pool with labels. > Result is the same - L2ARC gets attached upon import, but not ZIL. > GUID reported by 'zdb' is the same for ZIL-partitions on both HU (as > well as for L2ARC). The size of cause is the same. The L2ARC is considered empty on startup/import. The ZIL might contain valuable data after a crash. So your setup is wrong. The ZIL is supposed to be one-on-one with the pool. You should move the ZILs to the JBOD. You can make a mirror of the ZIL devices to improve failsafe operation by redundancy. Ronald. > //mxb > > > On 13 apr 2013, at 19:53, Adam Nowacki wrote: > >> On 2013-04-13 19:33, mxb wrote: >>> >>> Hello list, >>> >>> I'm currently have 2x Head Units (HU) [FreeBSD 9.1] connected to the >>> same JBOD via SAS Expander. >>> Each HU has separate ZIL and L2ARC devices. Hardware on both HU (inc. >>> SSD disks for ZIL/L2ARC) is identical. >>> >>> This is basically a HA-setup. >>> >>> The I do an 'zpool export tank' on the first HU and do 'zpool import >>> tank' on the second one, only L2ARC device appears usable. >>> Import fails, complaining about ZIL device not present. >>> >>> According to the man page zpool(8) ZIL device can be imported and >>> exported. >>> >>> "… Log devices can be added, replaced, attached, detached, imported and >>> exported as part of the larger pool. …". >>> >>> Do I miss something here? Yes. >>> This feature not implemented yet? >>> Any way to work around this, except that moving ZIL into JBOD? >> >> From the same man page: >> -m Enables import with missing log devices. >> >> ... but that won't be HA since on unclean shutdown of one the other >> won't be able to replay the log and some recent writes (or worse) will >> be lost. >> >> _______________________________________________ >> freebsd-fs@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-fs >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"