From nobody Mon Apr 17 00:07:29 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q06nW0wQ1z44w9L for ; Mon, 17 Apr 2023 00:07:43 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q06nT6Qb7z3ssD for ; Mon, 17 Apr 2023 00:07:41 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=PjG0TorU; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 2001:470:0:19b::b869:801b as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com; dmarc=pass (policy=none) header.from=holgerdanske.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1681690050; bh=JZtisFViZLUHzFZCMxK/+y7MS/f1U/SrBq+VkjZMliw=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=PjG0TorUIzP4kVb/4CqYthVjZKQilATd/78rUqcQSHj6mn4BVaLmGNfcpNqi4WwJ1 qfTYs0EyMTa5gBj4TkuVqmJxaPrcr4M4trVWYhgvAw5zArg8XJTR+PuzLNkkWmWl2q hJTu+2dPNzSB5VnupQcAKsEnbmUWNfn21/w6zZSatAw0momsCOUcNjilnTxHicM1py DOeX0jkHrh5DfeLAqZaXqtBHg7dJPEefNBafUWHEb7HSvq8Acz1rAB2AMMPHlrJsv7 YzD+DWw+wnGKTYl5KhLFgQ9EVuJZe48lwYXXETy6SajeDK25f6lytsVmZciW/eUaXv meMYDq8HGNDZVz8vV9W2giWzollC4IlA8foZvMYDPea2gQy91aDeOO1UAt9vZbQPcJ zezUhUcJMa8YuxKVi9JwDaQRL2DxHM6ISJsXeki/f8wk9OVYwoMCRKW/Rt4th9QjUg RWucnFYkLRLM+YZRQfM75smdeujEBelN3GfKUZaCTvyztNCU2PGPhOzGgVcZ8E2h2q QIeqB1d4r6JKbRI+yQ9766K17O6UJ2pvubCMGGJko+hdX8dwP5Hk1+18IqnYw7yaZC NOqu690avBkM1uTetnlYET1OxNCY3PC1ukv0II8czXkNtun9D81PRqiSO+FUxZPm4J ojlcRnqT1e4Ekuhc7aXDSB4g= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sun, 16 Apr 2023 17:07:30 -0700 Message-ID: <1feeee72-06ab-d514-0f13-14835141715b@holgerdanske.com> Date: Sun, 16 Apr 2023 17:07:29 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: zfs creates mountpoint of (pool)/mountpoint? To: questions@freebsd.org References: <8011d9a5-e8d8-e9e8-2fe1-4baacacd1c10@vernuftiger.nl> Content-Language: en-US From: David Christensen In-Reply-To: <8011d9a5-e8d8-e9e8-2fe1-4baacacd1c10@vernuftiger.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.988]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; R_SPF_ALLOW(-0.20)[+a:november.he.net]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[holgerdanske.com:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Q06nT6Qb7z3ssD X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N On 4/16/23 16:47, ICT builder wrote: > Hello, > > When I do a: > > # zfs create zroot/data > > > > And then a: > > # zfs list|grep data > zroot/data                   96K   898G       96K  /zroot/data > > > > Then I see a mount point of /zroot/data > > I want and would expect it to be mount point /data > > > > Ggogling how to set mount point I found: > > # zfs set mountpoint=/data zroot/data > root@ansible:~ # zfs list | grep data > zroot/data                   96K   898G       96K  /data > > > Can I create zfs datasets so it is mounted on /mountpoint instead of > pool/mountpoint? > > T > > hanks for reading so far, > Cor See zfs(8) -- you can set properties when creating a filesystem: 2023-04-16 17:02:33 toor@vf1 ~ # freebsd-version; uname -a 12.4-RELEASE-p2 FreeBSD vf1.tracy.holgerdanske.com 12.4-RELEASE-p1 FreeBSD 12.4-RELEASE-p1 GENERIC amd64 2023-04-16 17:02:40 toor@vf1 ~ # zfs create -o mountpoint=/foo vf1zpool1/foo 2023-04-16 17:03:21 toor@vf1 ~ # zfs list vf1zpool1/foo NAME USED AVAIL REFER MOUNTPOINT vf1zpool1/foo 96K 830M 96K /foo 2023-04-16 17:03:48 toor@vf1 ~ # mount | grep foo vf1zpool1/foo on /foo (zfs, local, nfsv4acls) 2023-04-16 17:04:08 toor@vf1 ~ # ls -ld /foo drwxr-xr-x 2 root wheel 2 Apr 16 17:02 /foo David