From owner-freebsd-stable@FreeBSD.ORG Wed Feb 19 07:20:08 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F9156D9 for ; Wed, 19 Feb 2014 07:20:08 +0000 (UTC) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AA99A12D1 for ; Wed, 19 Feb 2014 07:20:07 +0000 (UTC) Received: from [10.108.28.111] ([1.142.183.139]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id s1J7Jsuc021248 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 19 Feb 2014 17:50:00 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" Content-Type: multipart/signed; boundary="Apple-Mail=_4180D7E4-BC1D-4D08-8226-84FA0986A6C7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Date: Wed, 19 Feb 2014 17:49:54 +1030 Subject: Separate ZIL on Root To: "freebsd-stable@freebsd.org Stable" Message-Id: <743B7655-C13E-425B-96E1-A63611FBA043@gsoft.com.au> Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) X-Mailer: Apple Mail (2.1827) X-Spam-Score: -0.272 () BAYES_00,RDNS_NONE X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 07:20:08 -0000 --Apple-Mail=_4180D7E4-BC1D-4D08-8226-84FA0986A6C7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, I have a FreeBSD 9.2 system with 3 disks in a mirror and I am looking at = adding an SSD as log & cache to improve performance. However I have found that it will refuse to add a log dev due to.. /* * A root pool with concatenated devices is not supported. * Thus, can not add a device to a root pool. * * Intent log device can not be added to a rootpool because * during mountroot, zil is replayed, a seperated log device * can not be accessed during the mountroot time. * * l2cache and spare devices are ok to be added to a rootpool. */ if (spa_bootfs(spa) !=3D 0 && nl2cache =3D=3D 0 && nspares =3D=3D = 0) { nvlist_free(config); spa_close(spa, FTAG); return (SET_ERROR(EDOM)); } in /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c However I don't think this is true in FreeBSD, certainly there are = people working around it, eg.. = http://iamsto.wordpress.com/2013/10/04/howto-freebsd-zfs-add-ssd-as-logzil= -read-cache-to-root-pool/ I understand that if I lose ZIL on root then I will have a fun time = recovering, although I expect this would entail a site visit and boot = off a USB key and then do 'zpool import -m ...'. So, does anyone know if there is a real problem or a hold over from = Solaris? Thanks. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Apple-Mail=_4180D7E4-BC1D-4D08-8226-84FA0986A6C7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iD8DBQFTBFsa5ZPcIHs/zowRArtjAKCeNCS4cY3+OaBdGh2CXpjMLSkoSgCeMmeu IsLB0AqteoyzTc6Hp+I3pwY= =2uvE -----END PGP SIGNATURE----- --Apple-Mail=_4180D7E4-BC1D-4D08-8226-84FA0986A6C7--