Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2020 12:13:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 246750] ZFS: Confusing error message when creating ZFS pool on vdev
Message-ID:  <bug-246750-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246750

            Bug ID: 246750
           Summary: ZFS: Confusing error message when creating ZFS pool on
                    vdev
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: kwiat3k@panic.pl

On default FreeBSD configuration (vfs.zfs.vol.recursive =3D=3D 0) it's impo=
ssible
to create ZFS pools on vdevs. When users try to do this they see generic and
confusing error message:

```
# zfs create -V 1G -s zroot/kwiat
# zpool create -f kwiat /dev/zvol/zroot/kwiat
cannot create 'kwiat': no such pool or dataset
```

For someone not experienced in ZFS it will take some time to learn how to
workaround this as it seems it's not documented anywhere. What's more, on L=
inux
it just works.

My ideas how to improve this:

1) Better error message when vfs.zfs.vol.recursive=3D=3D0 and backing devic=
e is
zvol.
Example: "cannot create 'kwiat': creating pool on zvol is dangerous. See man
zpool(8) for more info."

2) Document it in the zpool(8) manpage in "zpool create" section

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246750-227>