ZFS How to use "gpart" on devices created on ZFS with "volmode=dev"?

Hi,
Following along and run into a snag. I already have a 'Zroot/bhyve' zfs file system with default setup parameters. Trying to add a sparse disk image or create one like this:

zfs create -V 400G -s -o volmode=dev zroot/bhyve/winsparse

Then I try:

gpart create -s GPT /dev/zvol/zroot/bhyve/winsparse

and I get an 'gpart: arg0 'zvol/zroot/bhyve/winsparse': Invalid argument' error.

Note: My intention is to create a zfs sparse volume to migrate one of my vm's into.

thanks

EDIT: I CANT READ. Set volmode to full fixed it. Sorry.
 
Back
Top