Date: Sun, 16 Apr 2023 17:07:29 -0700 From: David Christensen <dpchrist@holgerdanske.com> To: questions@freebsd.org Subject: Re: zfs creates mountpoint of (pool)/mountpoint? Message-ID: <1feeee72-06ab-d514-0f13-14835141715b@holgerdanske.com> In-Reply-To: <8011d9a5-e8d8-e9e8-2fe1-4baacacd1c10@vernuftiger.nl> References: <8011d9a5-e8d8-e9e8-2fe1-4baacacd1c10@vernuftiger.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1feeee72-06ab-d514-0f13-14835141715b>