From owner-freebsd-questions@freebsd.org Tue Apr 18 09:21:23 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0416ED43B7A for ; Tue, 18 Apr 2017 09:21:23 +0000 (UTC) (envelope-from chardon.frederic@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C3BB336 for ; Tue, 18 Apr 2017 09:21:22 +0000 (UTC) (envelope-from chardon.frederic@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id r190so9147449wme.1 for ; Tue, 18 Apr 2017 02:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BpP56rULUF6NKHgjshnczX1zv40l6SihwTFyQea3rlM=; b=ez5RPF/gjawVKRPRhp2QWYtlkxbbUDDJo3jZmv/RIU5op/vvqKp48nP6n5x4ziFnbq FfPoq/73UCxmFNouJrse/+kmMfAx9LVC//2BqWLDx5JWoX9lZndLgZMWVKNLuoC63oVg k8sIZb6dzVNTPJg60IUmDEzw5/NHA2mKw7nuRKbmaWEjTtTjSkxGj9BcesWC7YXKQBBH hVmPBBwmRRXRv6knYQMphli74HVJf3tQbwPIbArYSEbbzb391skwNtvSkCzJYZJsstH4 NsECgQiBaqzMB1n98UTZBysPLIZJ+LaNM7Cjm5/WmIOjcUKZzz2/Fk9RgqeoY7EnpWvI Dxjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BpP56rULUF6NKHgjshnczX1zv40l6SihwTFyQea3rlM=; b=Pc6LRno/CHrHE6/aLmlNgalrdgVnUNf4q1Z1cxrvMIcPgOfSeidDchUmSslMeRMA+B OBA/ta/6fnEJW3IAS2sSXGH3G5yLUP2FEHTx23biojtYXls4PJqOJBx6nMyAGPsJTG6a g8CmuxgqW2pZwtaPXxAwrHgOKHQRmWuXchOo4V68YZ6j7EkTp240WKnOX7rLUIlM5hmW 6JtL7xrjQKvKUMlTkDHW5iqd7OlER9loTcrJiG9ZDtvdsmg0mdKbeoIEL6Y/KEM07iYA jPCYE9RhtTRkzQcUPoKEUz6X1s19ruepZYRRFhy3CLzVVNRCJYa1WdoyI6AoNe69cfMA utSg== X-Gm-Message-State: AN3rC/7Vu3uoz5XnZVlX/gmRvSeT4Hx4Oq5r7z6m9PTm6dEeDleFO3RM ZXtpZcydVfdiKkdPxgpENEL9UVwp2w== X-Received: by 10.28.64.212 with SMTP id n203mr12549823wma.69.1492507280050; Tue, 18 Apr 2017 02:21:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.176.20 with HTTP; Tue, 18 Apr 2017 02:21:19 -0700 (PDT) Received: by 10.223.176.20 with HTTP; Tue, 18 Apr 2017 02:21:19 -0700 (PDT) In-Reply-To: References: From: Frederic Chardon Date: Tue, 18 Apr 2017 11:21:19 +0200 Message-ID: Subject: Re: Some ZFS questions To: Andrea Venturoli Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2017 09:21:23 -0000 Hi Le 17 avr. 2017 20:42, "Andrea Venturoli" a =C3=A9crit : zroot 781M 93.2G 144K none > zroot/ROOT 777M 93.2G 144K none > zroot/ROOT/default 777M 93.2G 777M / > zroot/tmp 176K 93.2G 176K /tmp > zroot/usr 616K 93.2G 144K /usr > zroot/usr/home 184K 93.2G 184K /usr/home > zroot/usr/ports 144K 93.2G 144K /usr/ports > zroot/usr/src 144K 93.2G 144K /usr/src > zroot/var 1.20M 93.2G 608K /var > zroot/var/crash 148K 93.2G 148K /var/crash > zroot/var/log 178K 93.2G 178K /var/log > zroot/var/mail 144K 93.2G 144K /var/mail > zroot/var/tmp 152K 93.2G 152K /var/tmp > What puzzles me is "zroot/ROOT": why do we need that? Why do we mount "zroot/ROOT/default" as root instead of simply mounting "zroot" at /? It's a setup for Boot Environment (just google that ;)). If you install sysutils/beadm you can then have in parallel several root fs. It's not mandatory but so useful that's is enabled by default. The boot menu allow you to choose from which root you want to boot. Personnaly I make a new BE after each installworld and/or big port update (I put /usr/local and some of /var inside the BE as well). If something break I have always a working system. But it's really up to you. > This times I manually created the following structure: > #zfs list > NAME ... MOUNTPOINT > zroot ... / > zroot/usr ... /usr > zroot/var ... /var > In fact, from a Live USB key, I can now simply issue "zpool import -R /mnt/ -f zroot" and I'll see all of my filesystems on /mnt. Anything wrong with this setup? Nothing wrong.