From owner-freebsd-fs@FreeBSD.ORG Thu Jan 17 03:11:10 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1D319244; Thu, 17 Jan 2013 03:11:10 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by mx1.freebsd.org (Postfix) with ESMTP id 8DD893E6; Thu, 17 Jan 2013 03:11:09 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id hn14so4101003wib.16 for ; Wed, 16 Jan 2013 19:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:reply-to:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=wVrXJfBtsd1/lgHlaf9PnL68rxnZfEQzXcncALh97Ys=; b=saP0H4k9Gt73kzoXbjEdZWHqNWYM12tTa1q9eV6cUvdar3SuX3pHvlMDR/bY8Qg6V1 Eehqa/G+/Pio58HZyoeA9dCJnzu0QC3VTboGwlu8Zf5RMijPeQLm9feH+4aNLBKIsK9I dh3NqrOKW2nQq0B821kTonkl6E7FiUZD/ukz8wh6EtQZDBMzZ+PzIahQQNVuD8Hc1wkq RasY7E0tFBeY7eySQ9ARj+yQMncV6Nmeg/zD9TquFI1SylyqLJ+4wO/Fqeoea9OJ3ToM 48CajaYaPkiyO2bUisMEXmqz17R2X6pgqWLIRSf037ZG8N0EOTq7lXfwdS0/Lxi37Q9Y S/sQ== MIME-Version: 1.0 X-Received: by 10.180.85.103 with SMTP id g7mr5597769wiz.29.1358392268419; Wed, 16 Jan 2013 19:11:08 -0800 (PST) Received: by 10.180.145.44 with HTTP; Wed, 16 Jan 2013 19:11:08 -0800 (PST) In-Reply-To: <20130109023327.GA1888@FreeBSD.org> References: <20130109023327.GA1888@FreeBSD.org> Date: Thu, 17 Jan 2013 11:11:08 +0800 Message-ID: Subject: Re: rc.d script for memory based zfs intent log From: Marcelo Araujo To: John Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Filesystems X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: araujo@FreeBSD.org List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2013 03:11:10 -0000 2013/1/9 John > http://people.freebsd.org/~jwd/memzil.txt Hello John, In my point of view this script seems be very useful, and I probably will use it in my product. As an example, I faced out few problems on system reboot/shutdown, I use Ramdisk as ZIL, when normal reboot/shutdown the ramdisk will disappear, because right now there is nothing to detach the ramdisk safely. I do believe with this script I can attache a new ZIL in every boot and detach it safely when perform a reboot/shutdown. I use some tricks with my ZIL, it is mirrored using RAM and the RAM has its own battery to protect the data, my main problem is what I described above. I don't think sync=disable is a good option, regards you can loose data. Nice script! Thanks! -- Marcelo Araujo araujo@FreeBSD.org