From owner-freebsd-fs@FreeBSD.ORG Mon Sep 17 14:33:11 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 70987106566B for ; Mon, 17 Sep 2012 14:33:11 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id EDFF58FC08 for ; Mon, 17 Sep 2012 14:33:10 +0000 (UTC) Received: by bkcje9 with SMTP id je9so2367918bkc.13 for ; Mon, 17 Sep 2012 07:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=fN2bMV5GyphMiQ/9HcUHSCtvxEHat8/7jG2jkyCEPDM=; b=vLsa3oT64EX94grrKS3RCbTdePJVGFuGgp/lwp+q8QTVToydVKmhRjL6pugf79PNSA 2tMEagmHHxCnKG1VnAdUIKmPDcn9ajnfdjvR4txemQkT8G2p9iF+EIkNR1T2bC+B41n2 M0MQdm3D4DzNbReWiPZb9BwvJj/YEK6Xs6ObZwxvGVz9an9r1uJBbVv1P8UBnvN0Cg8P a+kjYXW46jNAomDQJsnzY0Box/2GoBVwucy7p0QrN/pK/DsYFNNHf1JNIHFAqnRaVAEs M4K7W5N9dwH1WlHU+RaSZ/RSpQR8dMBIFBYXJSKzREcDfX4DgShty7OrwejcpcM06oJ5 E7mQ== Received: by 10.204.11.209 with SMTP id u17mr1977856bku.130.1347892389542; Mon, 17 Sep 2012 07:33:09 -0700 (PDT) Received: from green.local (227-7-132-95.pool.ukrtel.net. [95.132.7.227]) by mx.google.com with ESMTPS id a17sm2555331bkw.5.2012.09.17.07.33.07 (version=SSLv3 cipher=OTHER); Mon, 17 Sep 2012 07:33:08 -0700 (PDT) Message-ID: <505734A1.9000501@gmail.com> Date: Mon, 17 Sep 2012 17:33:05 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: Olivier Smedts References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: zpool add log to root pool 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: Mon, 17 Sep 2012 14:33:11 -0000 17.09.2012 15:34, Olivier Smedts wrote: > Is there anyone here using a separate log device (or "ZIL") on a root pool ? # zpool set bootfs= tank > # zpool add tank log gpt/zil > cannot add to 'tank': root pool can not have multiple vdevs or separate logs > > Under 9-STABLE, using zpool v28. This seems to be a limitation from > OpenSolaris. For example, FreeBSD supports booting from a > multiple-vdev root pool. I found that most people use the "unset > bootfs property, add vdev, set bootfs again" trick to have a working > multiple-vdev root pool under FreeBSD. I think I can do the same for > the log device but don't want to loose my data. > > Is there anyone successfuly using a log device / zil on a root pool > under FreeBSD ? Me. # zpool iostat -v faz0 capacity operations bandwidth pool alloc free read write read write -------------------------------------- ----- ----- ----- ----- ----- ----- faz0 121G 173G 22 149 130K 671K mirror 121G 173G 22 149 130K 659K gptid/b88daece-7a48-11df-8703-0018f36885d5 - - 10 56 111K 660K gptid/23ddb9f0-7b04-11df-8867-0018f36885d5 - - 10 56 111K 660K logs - - - - - - gptid/3592d260-c98e-11e0-9ef6-0018f36885d5 1,86M 1014M 0 0 0 11,6K cache - - - - - - gptid/3809bef7-c98e-11e0-9ef6-0018f36885d5 36,3G 8M 71 8 653K 374K -------------------------------------- ----- ----- ----- ----- ----- ----- # zpool get bootfs faz0 NAME PROPERTY VALUE SOURCE faz0 bootfs - default -- Sphinx of black quartz judge my vow.