[SOLVED] Replication not working because of not existent disk

llinty

Member
Sep 15, 2022
25
4
8
Hello,

I have created a replication task for my VM with only two hard disks.

root@server:~# qm config 100
boot: order=scsi0;ide2;net0
cores: 4
ide2: none,media=cdrom
memory: 20480
meta: creation-qemu=6.1.0,ctime=1663345612
name: cloud
net0: virtio=6A:CB:91:F7:34:2D,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: l26
scsi0: vm-storage:vm-100-disk-0,size=20G
scsi2: vm-storage:vm-100-disk-2,size=2T
scsihw: virtio-scsi-pci
smbios1: uuid=df911ecc-3247-49f5-a902-e998e14cef45
sockets: 1
unused0: vm-storage:vm-100-disk-1
vmgenid: 2eedb0ec-1610-4ebe-80a1-747a6a780d04
vmstatestorage: vm-storage

A third disk has been removed some times ago with dataset name 'vm-100-disk-1'. So now there is a gap between the disk with dataset number 0 and 2.

Replication job is failing with the message : zfs error : cannot open 'vm-storage:/vm-100-disk-1' does not exists.

Is it possible to rename the dataset 'vm-100-disk-2' by 'vm-100-disk-1' in a ZFS Volume ?

Regards
 
Hi,

Is it possible to rename the dataset 'vm-100-disk-2' by 'vm-100-disk-1' in a ZFS Volume ?
No. I would remove the unused disk `unused0: vm-storage:vm-100-disk-1` and re-run the replication.

make sure that you have a valid backup of the VM before.
 
  • Like
Reactions: llinty
Hi,


No. I would remove the unused disk `unused0: vm-storage:vm-100-disk-1` and re-run the replication.

make sure that you have a valid backup of the VM before.
Hi,

yes I didn't see that I have an unused disk in VM configuration. So I have simply removed it from the GUI. However the replication process was still stuck after that. So it is not working if you have a gap between so disks. I have created a new disk associated with scsi1and changed the filesystem partitioning after that in the VM to use it. Now replication is working!
 
  • Like
Reactions: Moayad
Great! Glad to hear that you solved the issue yourself!

I will go ahead and set your thread as [SOLVED] in order to help the other people who have the same issue.
 
  • Like
Reactions: llinty