pvesm add - ZFS error: dataset does not exist (500)

Koleon

New Member
Jun 9, 2023
7
0
1
Hello Proxmox team,

Recently, I've been learning more about the Proxmox VE Storage Manager and other Proxmox internal commands.
I was curious about how to create a dataset using the pvesm command instead of WebUI.

Firstly, I created a dataset on my ZFS pool, added it via Datacenter > Storage > Add > ZFS, and filled in all the details. Then I checked the /etc/pve/storage.cfg showing:
Code:
zfspool: nc-data
        pool rpool/ncdata
        blocksize 12k
        content rootdir,images
        mountpoint /rpool/nc-data
        sparse 1

On the other hand, adding the same storage using pvesm add zfspool nc-data --pool rpool/ncdata --content rootdir,images --sparse true --blocksize 12k creates:
Code:
zfspool: nc-data
        pool rpool/ncdata
        blocksize 12k
        content rootdir,images
        sparse 1

The missing mountpoint settings cause "zfs error: cannot open 'rpool/ncdata': dataset does not exist (500)" in WebUI. Is this a bug or feature? As the first method - creating the storage via WebUI does not ask for a mountpoint path.
1727836203668.png
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!