ReaR: cannot restore a system that has Thin volumes
Issue
-
With
rear-1.17.2
andrear-2.00
, the following log can be found when trying to restore the disk layout+++ lvm vgcfgrestore -f /var/lib/rear/layout/lvm/rhel.cfg vgroot Consider using option --force to restore Volume Group rhel with thin volumes. Restore failed.
-
After adding the option "--force" to the
/usr/lib/rear/layout/diskrestore.sh
recovery script, the recovery process fails because of a missing binary/usr/sbin/thin_check
-
With
rear-2.4-1
and later, one of the following log can be found when trying to restore the disk layout+++ lvm lvremove -q -f -y vg_root/pool00 Logical volume "lvswap" successfully removed [...] Logical volume "pool00" successfully removed +++ lvm lvremove -q -f -y vg_root/pool00 Failed to find logical volume "vg_root/pool00"
or
+++ lvm lvremove -q -f -y rhel/pool00 Thin pool rhel-pool00-tpool (253:2) transaction_id is 10, while expected 6. Failed to update pool rhel/pool00.
Environment
- Red Hat Enterprise Linux (RHEL) 6
- rear-1.17.2
- Red Hat Enterprise Linux 7
- rear-2.00
- Red Hat Enterprise Linux 7 and 8
- rear-2.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.