From owner-freebsd-questions@FreeBSD.ORG Wed Oct 16 08:34:58 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 ESMTP id 4BD949B5 for ; Wed, 16 Oct 2013 08:34:58 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-qa0-x22a.google.com (mail-qa0-x22a.google.com [IPv6:2607:f8b0:400d:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0E2162AA3 for ; Wed, 16 Oct 2013 08:34:57 +0000 (UTC) Received: by mail-qa0-f42.google.com with SMTP id w8so4283381qac.15 for ; Wed, 16 Oct 2013 01:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=h6KHcQfosn1Fzeab8n/w9QQsTZ/WUd4AK/3gAwF7dUY=; b=FF7dvz89NLXFf+volIytLvpkGNfcm4TSY/GTG42fpWZTpxg73+mKKVEHaXKq1LLqaj czS8FH/Q+sX+R3Dwwy7PmDHH6OntuNQvTCUIv56CEn0tG/u4VYDtpyaidX/pYgDfXAtW B6pM1TJCkOnV2xzCq/NaS/8i1vCXKYG9f7g4pB5QWDoE0icCHol4XgxYemEVAa3PaiKX K9TrN9qTyhv4U050Wtl5BJ1IQxLw6UJtO9ALH/VM1PUAwdZT1/Sk5Qqm47fXVFQzPpby CEwIVndX9bpUGSi1/BtkBL6tI9JPAIBo4NvqGFwo9I5hnUOQl6a6Hq6K8RXyT1UgXuoL YCSQ== MIME-Version: 1.0 X-Received: by 10.49.35.144 with SMTP id h16mr1993610qej.35.1381912497247; Wed, 16 Oct 2013 01:34:57 -0700 (PDT) Received: by 10.224.55.77 with HTTP; Wed, 16 Oct 2013 01:34:57 -0700 (PDT) In-Reply-To: References: Date: Wed, 16 Oct 2013 09:34:57 +0100 Message-ID: Subject: Re: [zfs] root mountpoint From: krad To: Anton Sayetsky Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Oct 2013 08:34:58 -0000 legacy is better if you want boot environments, or multiple os installations on the pool. Which gets mounted as root is controled by the bootfs property of the pool. You can work it another way, by setting the mountpoint as / and fiddling with the canmount property (solaris 11 uses this in its boot envs) Below is a test installation of a freebsd vm im playing with [root@f10 /home/krad]# zfs list NAME USED AVAIL REFER MOUNTPOINT rpool 5.07G 25.0G 32K /rpool rpool/ROOT 4.00G 25.0G 31K legacy rpool/ROOT/2013101601 1K 27.0G 937M legacy rpool/ROOT/root 937M 26.0G 937M legacy rpool/system 1.07G 25.0G 31K /rpool/system rpool/system/home 39K 25.0G 39K /home rpool/system/obj 18.8M 25.0G 18.8M /usr/obj rpool/system/ports 31K 25.0G 31K /usr/ports rpool/system/src 870M 25.0G 870M /usr/src rpool/system/tmp 35K 25.0G 35K /tmp rpool/system/usr-local 97.7M 25.0G 97.7M /usr/local rpool/system/var 105M 25.0G 105M /var On 15 October 2013 12:31, Anton Sayetsky wrote: > Hello, > I decided to install FreeBSD on ZFS root. In almost all guides i saw > the following recommendation: > zpool create -o altroot=/mnt zroot /dev/${device} > zfs create zroot/var > zfs create ... > ... > zfs set mountpoint=legacy zroot > zfs set mountpoint=/var zroot/var > zfs set mountpount=... > ... > reboot > > So we're setting mountpoins for all first-level childs of zroot. > > Why just don't use the following simpler setup, when mountpoint set only > once: > zpool create -o altroot=/mnt zroot /dev${device} > zfs set mountpoint=/ zroot > zfs create zroot/var > zfs create ... > ... > reboot > > I've tested both ways, the second also works perfectly but requires > less commands to enter. Can anybody explain me why I can't see > recommendations to set mountpoint=/ for zroot instead of > mountpoint=legacy? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >