Re: zfs creates mountpoint of (pool)/mountpoint?
- In reply to: ICT builder : "zfs creates mountpoint of (pool)/mountpoint?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Apr 2023 00:07:29 UTC
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