I have managed to edit and restore the metadata for vm-pool
and change its transaction ID from 39358 to 39360.
vgcfgbackup qubes_dom0
# Then edit the backup with vim and replace transaction ID for the vm-pool logical volume
# Restore the new metadata
vgcfgrestore qubes_dom0 --file /etc/lvm/backup/qubes_dom0
# Need --force
vgcfgrestore qubes_dom0 --file /etc/lvm/backup/qubes_dom0 --force
# Need to deactivate vm-pool_tmeta and vm-pool_tdata before activating vm-pool
lvchange -a n qubes_dom0/vm-pool_tmeta
lvchange -a n qubes_dom0/vm-pool_tdata
# Finally activate vm-pool
lvchange -a y qubes_dom0/vm-pool
Unfortunately, the activation of vm-pool
gave an error:
Thin pool qubes_dom0-vm--pool-tpool (253:9) transaction_id is 39358, while expected 39360.
And vm-pool
is still deactivated as per lvscan
.
But I just changed the ID of vm-pool
to
39360??? How are vm-pool
and qubes_dom0-vm--pool-tpool
different? Where can I find qubes_dom0-vm--pool-tpool
in dom0?