From owner-freebsd-current@FreeBSD.ORG Wed Sep 1 20:59:25 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FB311065675; Wed, 1 Sep 2010 20:59:25 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id CF3C78FC12; Wed, 1 Sep 2010 20:59:24 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id EE90AA68247; Thu, 2 Sep 2010 04:59:23 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id yQDwnh-lnYjb; Thu, 2 Sep 2010 04:59:17 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 98878A67CC9; Thu, 2 Sep 2010 04:59:14 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=ozLKEqsiH+ZnpDr+oAgjge/RGOYClZoTbnT3dvXZTQgQa0cqSlaIypC4d1YpxVWnS 8o4VJN6TasnX4wPaqpAhQ== Message-ID: <4C7EBE9F.8000406@delphij.net> Date: Wed, 01 Sep 2010 13:59:11 -0700 From: Xin LI Organization: The Geek China Organization User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.11) Gecko/20100721 Thunderbird/3.0.6 ThunderBrowse/3.3.2 MIME-Version: 1.0 To: Josh Paetzel References: <20100831215915.GE1932@garage.freebsd.pl> <201009010928.59725.josh@tcbug.org> In-Reply-To: <201009010928.59725.josh@tcbug.org> X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org, Pawel Jakub Dawidek Subject: Re: ZFS v28 is ready for wider testing. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 20:59:25 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2010/09/01 07:28, Josh Paetzel wrote: > On Tuesday 31 August 2010 16:59:15 Pawel Jakub Dawidek wrote: >> Hello. >> >> I'd like to give you ZFS v28 for testing. If you are neither brave nor >> mad, you can stop here. >> >> The patchset is very experimental. It can eat your cookie and hurt your >> teddy bear, so be warned. Don't try it for anything except testing. >> >> This patchset is also a message we, as the FreeBSD project, would like >> to send to our users: Eventhough OpenSolaris is dead, the ZFS file >> system is going to stay in FreeBSD. At this point we have quite a few >> developers involved in ZFS on FreeBSD as well as serveral companies. >> We are also looking forward to work with IllumOS. >> >> So, what this new ZFS brings? >> >> - Data deduplication. Read more here: >> >> http://blogs.sun.com/bonwick/entry/zfs_dedup >> >> - Triple parity RAIDZ (RAIDZ3). Read more here: >> >> http://dtrace.org/blogs/ahl/2009/07/21/triple-parity-raid-z/ >> >> - zfs diff. Read more here: >> >> http://arc.opensolaris.org/caselog/PSARC/2010/105/20100328_tim.haley >> >> - zpool split. Read more here: >> >> http://arc.opensolaris.org/caselog/PSARC/2009/511/20090924_mark.musante >> >> - Snapshot holds. Read more here: >> >> http://arc.opensolaris.org/caselog/PSARC/2009/297/20090511_chris.kirby >> >> - zpool import -F. Allows to rewind corrupted pool to earlier >> transaction group. >> >> - Possibility to import pool in read-only mode. >> >> And much, much more, including plenty of preformance improvements and bug >> fixes. >> >> So test whatever you can and report back. Look for regressions, strange >> behaviour, missing features, deadlocks, livelocks, preformance >> degradation, etc. >> >> The boot code is not updated at all, so booting off of ZFS doesn't >> currently work. >> >> The patch is against today's FreeBSD HEAD. >> >> The patch enables (in sys/modules/zfs/Makefile) ZFS internal debugging, >> please don't turn it off. Also, compile your kernel with the following >> options: >> >> options KDB >> options DDB >> options INVARIANTS >> options INVARIANT_SUPPORT >> options WITNESS >> options WITNESS_SKIPSPIN >> options DEBUG_LOCKS >> options DEBUG_VFS_LOCKS >> >> Ignore all the LOR (Lock Order Reversal) reports from WITNESS. There will >> be plenty of those, and you'll desperately want to report them, but please >> don't. >> >> The best way to report a problem is to answer to this e-mail with as short >> as possible procedure of how to reproduce it and debugging info. I'd >> prefer textdump if possible. Below you can find quick procedure how to >> setup textdumps: >> >> Choose spare/swap disk/partition in your system, let's say it is >> /dev/ad0s1b. >> >> Add the following line to /etc/fstab: >> >> /dev/ad0s1b none swap sw 0 0 >> >> Add the following line to /etc/rc.conf: >> >> ddb_enable="YES" >> >> Run the following commands: >> >> # /etc/rc.d/swap1 start >> # /etc/rc.d/dumpon start >> # /etc/rc.d/ddb start >> >> This will setup swap, mark it as dump device and setup some DDB >> scripts. Or you can just reboot. >> >> Now when your system panic or deadlock, enter DDB and call the >> following command: >> >> ddb> run kdb.enter.panic >> >> It will execute all the commands I need, dump them in text format to >> your swap device and reboot machine. >> >> After the reboot, you should find textdump.tar.0 file in /var/crash/ >> directory. This is the debug info I need. >> >> End of textdumps procedure. >> >> Ok, now that I know you read everything carefully, here is the patch: >> >> http://people.freebsd.org/~pjd/patches/zfs_20100831.patch.bz2 >> >> Good luck! >:> > > I get the following error from make buildworld after applying the patch. I > checked twice to make sure the patch applied cleanly, which it did. > > cc -O2 -pipe - > I/usr/src/cddl/usr.bin/ctfconvert/../../../sys/cddl/compat/opensolaris - > I/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/compat/opensolaris/include - > I/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris - > I/usr/src/cddl/usr.bin/ctfconvert/../../../sys/cddl/contrib/opensolaris - > I/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/head - > I/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ctf/common > - > I/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ctf/cvt > - > I/usr/src/cddl/usr.bin/ctfconvert/../../../sys/cddl/contrib/opensolaris/uts/common > -DNEED_SOLARIS_BOOLEAN -g -std=gnu89 -Wno-unknown-pragmas - > I/usr/obj/usr/src/tmp/legacy/usr/include -static - > L/usr/obj/usr/src/tmp/legacy/usr/lib -o ctfconvert alist.o ctf.o ctfconvert.o > dwarf.o fixup_tdescs.o hash.o iidesc.o input.o list.o memory.o merge.o > output.o st_parse.o stabs.o stack.o strtab.o symbol.o tdata.o traverse.o > util.o -lctf -ldwarf -lelf -lz -lpthread -legacy > strtab.o(.text+0x109): In function `strtab_print': > /usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ctf/cvt/strtab.c:249: > undefined reference to `MIN' > strtab.o(.text+0x28d): In function `strtab_insert': > /usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ctf/cvt/strtab.c:119: > undefined reference to `MIN' > strtab.o(.text+0x3a1):/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ctf/cvt/strtab.c:145: > undefined reference to `MIN' > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error Try compiling without -j perhaps? Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJMfr6eAAoJEATO+BI/yjfBQfgH/i2uvAqIbnkoljBs9ADJAev1 3Ea/xCU/cIeUjJaftVh5ORYHiC2eT/bYFmNevVBb5oJ+UFB52WmB6/iECqn2IFsp QGWwKdS6M6g1FKWmYON4rgrB9EpX+TLOKGiql1pOtQ+25n8rGAXGOdfl0qvbkkms trK3EyKLIIn+30DisUKDGk+RICs0jof25GZ1g/CZNUm66kP8GhRlnJncYP0J0SGN TOD+IKVya8OPG13nfQY5k1DyDL9xG+fmOoDvbU7YyGh7Sf94IYUL0VTm3CF1aGY1 I51Nqj+dP6HO0uop8XL2FMwaZ85Y2Pr6HYCpvl31jkuwhDVEcGL2roxJ9yORGrc= =VE+N -----END PGP SIGNATURE-----