Looking around the installation, we find references to rpool/data. But creating the pool using commandline causes an error....
I did
/sbin/zpool create -f -o ashift=12 rpool mirror /dev/sda4 /dev/sdb4
pvesm add zfspool pve$(hostname -s)-data -pool rpool/data
pvesm set pve$(hostname -s)-data -sparse
pvesm set pve$(hostname -s)-data -content images,rootdir
zpool list gives some info:
# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
rpool 3.56T 456K 3.56T - 0% 0% 1.00x ONLINE -
# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content rootdir,iso,vztmpl,images
maxfiles 0
zfspool: pvex0720-data
pool rpool/data
content rootdir,images
sparse 1
but pvesm status fails:
# pvesm status
zfs error: cannot open 'rpool/data': dataset does not exist
Name Type Status Total Used Available %
local dir active 1998672 252060 1625372 12.61%
pvex0720-data zfspool inactive 0 0 0 0.00%
How can I get it active?
I did
/sbin/zpool create -f -o ashift=12 rpool mirror /dev/sda4 /dev/sdb4
pvesm add zfspool pve$(hostname -s)-data -pool rpool/data
pvesm set pve$(hostname -s)-data -sparse
pvesm set pve$(hostname -s)-data -content images,rootdir
zpool list gives some info:
# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
rpool 3.56T 456K 3.56T - 0% 0% 1.00x ONLINE -
# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content rootdir,iso,vztmpl,images
maxfiles 0
zfspool: pvex0720-data
pool rpool/data
content rootdir,images
sparse 1
but pvesm status fails:
# pvesm status
zfs error: cannot open 'rpool/data': dataset does not exist
Name Type Status Total Used Available %
local dir active 1998672 252060 1625372 12.61%
pvex0720-data zfspool inactive 0 0 0 0.00%
How can I get it active?