From owner-freebsd-fs@FreeBSD.ORG Mon Sep 17 20:09:34 2012 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 C72C3106564A for ; Mon, 17 Sep 2012 20:09:34 +0000 (UTC) (envelope-from spork@bway.net) Received: from xena.bway.net (xena.bway.net [216.220.96.26]) by mx1.freebsd.org (Postfix) with ESMTP id 5E6CA8FC15 for ; Mon, 17 Sep 2012 20:09:34 +0000 (UTC) Received: (qmail 89294 invoked by uid 0); 17 Sep 2012 20:02:53 -0000 Received: from smtp.bway.net (216.220.96.25) by xena.bway.net with ESMTPS (DHE-RSA-AES256-SHA encrypted); 17 Sep 2012 20:02:53 -0000 Received: (qmail 89283 invoked by uid 90); 17 Sep 2012 20:02:52 -0000 Received: from unknown (HELO frankentosh.sporklab.com) (spork@96.57.144.66) by smtp.bway.net with ESMTPA; 17 Sep 2012 20:02:52 -0000 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Charles Sprickman In-Reply-To: Date: Mon, 17 Sep 2012 16:02:51 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <9A49FDEB-325E-4A25-8FB9-C4FF8F9BAF67@bway.net> References: To: Olivier Smedts X-Mailer: Apple Mail (2.1084) 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 20:09:34 -0000 On Sep 17, 2012, at 8:34 AM, Olivier Smedts wrote: > Hello ZFS folks, >=20 > Is there anyone here using a separate log device (or "ZIL") on a root = pool ? >=20 > # zpool add tank log gpt/zil > cannot add to 'tank': root pool can not have multiple vdevs or = separate logs >=20 > 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 did that and it seems to work. pool: zroot state: ONLINE scan: scrub repaired 0 in 0h0m with 0 errors on Tue Aug 21 01:28:27 = 2012 config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ada1p3 ONLINE 0 0 0 ada2p3 ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 ada3p3 ONLINE 0 0 0 ada0p3 ONLINE 0 0 0 logs mirror-2 ONLINE 0 0 0 gpt/zil-a ONLINE 0 0 0 gpt/zil-b ONLINE 0 0 0 cache gpt/l2arc-a ONLINE 0 0 0 gpt/l2arc-b ONLINE 0 0 0 errors: No known data errors Lost my /dev/gpt entries for the existing mirror slices in the process = though... > I think I can do the same for > the log device but don't want to loose my data. >=20 > Is there anyone successfuly using a log device / zil on a root pool > under FreeBSD ? Mine works, but I've never been able to find any official confirmation = from the -fs folks as to how "proper" or supported the configuration is. = Not too many other options on 1U boxes though really... Charles > Thanks >=20 > --=20 > Olivier Smedts _ > ASCII ribbon campaign ( ) > e-mail: olivier@gid0.org - against HTML email & vCards X > www: http://www.gid0.org - against proprietary attachments / \ >=20 > "Il y a seulement 10 sortes de gens dans le monde : > ceux qui comprennent le binaire, > et ceux qui ne le comprennent pas." > _______________________________________________ > 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"