[SOLVED] weird storage issue

AxelTwin

Well-Known Member
Oct 10, 2017
138
6
58
40
Hi there,
I have a weird storage issue. some of my vm/pct have 2 disks, 1 unused and the other one is size=0

Code:
root@proxmox-3 ~ # cat /etc/pve/lxc/102.conf
arch: amd64
cores: 4
features: nesting=1
hostname: srvmail.danobat.fr
memory: 6144
nameserver: 127.0.0.1 192.168.6.11 8.8.8.8
net0: name=vmbr11,bridge=vmbr6,firewall=1,gw=192.168.6.3,hwaddr=F2:F6:74:92:7C:81,ip=192.168.6.11/24,type=veth
onboot: 1
ostype: ubuntu
parent: after_ssl
rootfs: bkp-storage:subvol-102-disk-0,size=0T
searchdomain: danobat.fr
swap: 6144
unprivileged: 1
unused0: data:subvol-102-disk-0

If I delete the unused disk
the vm won't start anymore

here are my pools:
Code:
root@proxmox-3 ~ # zfs list | grep 102
rpool/data/subvol-102-disk-0   126G  77.1G      123G  /rpool/data/subvol-102-disk-0

how can I recover 1 disk with all the datas ?
 
Found the solution by renaming
rootfs: bkp-storage:subvol-102-disk-0,size=0T
by real storage:
rootfs: data:subvol-102-disk-0,size=0T