From owner-freebsd-questions@FreeBSD.ORG Thu Dec 26 12:39:14 2013 Return-Path: Delivered-To: freebsd-questions@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 E2455402 for ; Thu, 26 Dec 2013 12:39:13 +0000 (UTC) Received: from anny.lostinspace.de (anny.lostinspace.de [IPv6:2a01:138:a006::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 857EA1D13 for ; Thu, 26 Dec 2013 12:39:13 +0000 (UTC) Received: from server.idefix.lan (ppp-93-104-83-247.dynamic.mnet-online.de [93.104.83.247]) (authenticated bits=0) by anny.lostinspace.de (8.14.7/8.14.7) with ESMTP id rBQCd4wV043528 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 26 Dec 2013 13:39:08 +0100 (CET) (envelope-from idefix@fechner.net) Received: from server.idefix.lan (localhost [IPv6:::1]) by server.idefix.lan (Postfix) with ESMTP id 4D0466DD2A for ; Thu, 26 Dec 2013 13:39:04 +0100 (CET) X-Virus-Scanned: amavisd-new at fechner.net Received: from server.idefix.lan ([127.0.0.1]) by server.idefix.lan (server.idefix.lan [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SauJhh2nlG-x for ; Thu, 26 Dec 2013 13:39:03 +0100 (CET) Received: from matthias-fechners-macbook.local (p54A774B6.dip0.t-ipconnect.de [84.167.116.182]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.idefix.lan (Postfix) with ESMTPSA id 8D8A56DD23 for ; Thu, 26 Dec 2013 13:39:03 +0100 (CET) Message-ID: <52BC2366.8070204@fechner.net> Date: Thu, 26 Dec 2013 13:39:02 +0100 From: Matthias Fechner User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Convert existing ZFS structure to beadm required structure X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (anny.lostinspace.de [0.0.0.0]); Thu, 26 Dec 2013 13:39:08 +0100 (CET) X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on anny.lostinspace.de X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 12:39:14 -0000 Dear all, I have a normal ZFS boot system, like it was described some years ago in the freebsd wiki. I rebuild now an equal system in a virtual environment to test the new tool beadm. My current system looks like: zfs list: NAME USED AVAIL REFER MOUNTPOINT zroot 1.34G 1.60G 345M legacy zroot/tmp 58K 1.60G 37K /tmp zroot/usr 939M 1.60G 306M /usr zroot/usr/home 57.5K 1.60G 38.5K /usr/home zroot/usr/local 630K 1.60G 606K /usr/local zroot/usr/ports 283M 1.60G 283M /usr/ports zroot/usr/ports/distfiles 63.5K 1.60G 45.5K /usr/ports/distfiles zroot/usr/ports/packages 81K 1.60G 46.5K /usr/ports/packages zroot/usr/src 348M 1.60G 348M /usr/src zroot/var 86.8M 1.60G 126K /var zroot/var/crash 31.5K 1.60G 31.5K /var/crash zroot/var/db 86.4M 1.60G 86.3M /var/db zroot/var/db/pkg 57K 1.60G 38K /var/db/pkg zroot/var/empty 31K 1.60G 31K /var/empty zroot/var/log 100K 1.60G 58.5K /var/log zroot/var/mail 31K 1.60G 31K /var/mail zroot/var/run 73K 1.60G 50.5K /var/run zroot/var/tmp 52K 1.60G 32K /var/tmp It has the partitions: gpart show => 34 8388541 ada0 GPT (4.0G) 34 6 - free - (3.0k) 40 128 1 freebsd-boot (64k) 168 2097152 2 freebsd-swap (1.0G) 2097320 6291248 3 freebsd-zfs (3G) 8388568 7 - free - (3.5k) => 34 8388541 ada1 GPT (4.0G) 34 6 - free - (3.0k) 40 128 1 freebsd-boot (64k) 168 2097152 2 freebsd-swap (1.0G) 2097320 6291248 3 freebsd-zfs (3G) 8388568 7 - free - (3.5k) The pool looks like: # zpool status pool: zroot state: ONLINE scan: resilvered 1.28G in 0h1m with 0 errors on Thu Dec 26 12:05:59 2013 config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/disk0 ONLINE 0 0 0 gpt/disk1 ONLINE 0 0 0 errors: No known data errors I tried now to get my zfs system to a structure beadm is requiring: zfs create -o mountpoint=none zroot/ROOT zfs snapshot -r zroot@be zfs clone zroot@be zroot/ROOT/default But if I execute now beadm, I always get the error message: ERROR: This system is not configured for boot environments Has maybe anyone an idea why? Thanks a lot. Gruß, Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook