Unable to create ZVOL (error=6)

Nikolay Denev ndenev at gmail.com
Sun Oct 5 18:48:04 UTC 2014


On Sun, Oct 5, 2014 at 8:38 PM, Steven Hartland <killing at multiplay.co.uk> wrote:
> ----- Original Message ----- From: "Steven Hartland"
>
>
>> ----- Original Message ----- From: "Nikolay Denev" <ndenev at gmail.com>
>>
>>> I'm not taking other steps, and I'm running "FreeBSD nas.home.lan
>>> 10.0-STABLE FreeBSD 10.0-STABLE #13 r270295M: Thu Aug 21 22:05:37 UTC
>>> 2014     root at nas.home.lan:/usr/obj/usr/src/sys/NAS  amd64"
>>>
>>> Can you try to set volmode back to "geom", so that you can create a
>>> snapshot that creates a cdev in /dev/zvol, and then set it to "dev"
>>> again, and try a new snapshot?
>>
>>
>> No change, still no /dev/zvol
>
>
> Are you sure you didn't create the volumes with a -V? As thats what
> should triggers zvol creation.
>
> Can you try updating to the latest stable/10 to see if its still
> present?
>
>    Regards
>    Steve

Yes, they were created with -V. I seem to have missed that from your
first email that you didn't use -V, sorry about that.

So I have a zfs/bhyve_volumes dataset, which is with "legacy"
mountpoint so it's not mounted anywhere.
and below it I'm creating the zvols with -V.
The purpose of this dataset was to be used as a parent, so I can do
recursive snapshots, etc.

It's interesting that I do have some zvols that are snapshots in
/dev/zvol, however I'm trying to remember if they were created with
older revision, or before I've started fiddling with "volmode"
property.

I will try to update and see is something changes.


--Nikolay

Here is the output of the zfs get -r type zfs (but slightly trimmed as
it's several screens otherwise):

zfs/bhyve_master
               type      volume      -

zfs/bhyve_master at snap-vm0
               type      snapshot    -

zfs/bhyve_volumes
               type      filesystem  -

zfs/bhyve_volumes at 19:46:05_31-08-2014
               type      snapshot    -

zfs/bhyve_volumes at 01:15:06_01-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 11:36:54_03-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 11:04:30_07-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_08-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_09-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_10-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_11-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_12-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_13-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_14-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_15-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_16-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_17-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_18-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_19-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_20-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_21-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_22-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_23-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_24-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_25-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_26-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_27-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_28-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_29-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_30-09-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_01-10-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_02-10-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_03-10-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_04-10-2014
               type      snapshot    -

zfs/bhyve_volumes at 00:00:00_05-10-2014
               type      snapshot    -

zfs/bhyve_volumes at 12-13-04_05-10-2014
               type      snapshot    -

zfs/bhyve_volumes at 12-13-59-05-10-2014
               type      snapshot    -

zfs/bhyve_volumes at test-snap
               type      snapshot    -

zfs/bhyve_volumes/benchmark
               type      volume      -

zfs/bhyve_volumes/benchmark at 11:04:30_07-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_08-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_09-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_10-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_11-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_12-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_13-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_14-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_15-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_16-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_17-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_18-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_19-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_20-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_21-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_22-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_23-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_24-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_25-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_26-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_27-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_28-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_29-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_30-09-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_01-10-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_02-10-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_03-10-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_04-10-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 00:00:00_05-10-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 12-13-04_05-10-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at 12-13-59-05-10-2014
               type      snapshot    -

zfs/bhyve_volumes/benchmark at test-snap
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable
               type      volume      -

zfs/bhyve_volumes/freebsd_amd64_10_stable at FreeBSD-10.1-PRERELEASE-r270843-30-08-2014
 type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 19:46:05_31-08-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 01:15:06_01-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 11:36:54_03-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 11:04:30_07-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_08-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_09-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_10-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_11-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_12-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_13-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_14-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_15-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_16-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_17-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_18-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_19-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_20-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_21-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_22-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_23-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_24-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_25-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_26-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_27-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_28-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_29-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_30-09-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_01-10-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_02-10-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_03-10-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_04-10-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 00:00:00_05-10-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 12-13-04_05-10-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at 12-13-59-05-10-2014
               type      snapshot    -

zfs/bhyve_volumes/freebsd_amd64_10_stable at test-snap
               type      snapshot    -


More information about the freebsd-fs mailing list