rear / rear

Relax-and-Recover - Linux bare metal disaster recovery and system migration solution (cfr. mksysb, ignite)
http://relax-and-recover.org/
GNU General Public License v3.0
929 stars 252 forks source link

Restoring Btrfs file system fails if a snapshot has been used for rollback #2067

Closed OliverO2 closed 5 years ago

OliverO2 commented 5 years ago

Versions

Scenario

Background

Suggestions

jsmeix commented 5 years ago

@OliverO2 only a short initial notice:

The current btrfs support in ReaR is basically an add-on hack as needed for SLES and RHEL. In particular for SLES: ReaR works with the btrfs snapshotting as it is done there (via snapper).

I think 90% of what can be done individually with btrfs is currently not supported in ReaR.

Cf. https://github.com/rear/rear/issues/2028 in particular see https://github.com/rear/rear/issues/2028#issuecomment-463193378 and follow the links therein and see the "FYI" part in https://github.com/rear/rear/issues/791#issuecomment-406513969

Because of newest storage features in SLES like https://github.com/rear/rear/issues/2057 we may need to completely overhaul the layout code rather sonner than later...

jsmeix commented 5 years ago

@OliverO2 I assume since your https://github.com/rear/rear/pull/2079 is merged this issue was fixed for your use case and I hope it still works for you since my https://github.com/rear/rear/pull/2080 is merged so that I can close this issue hereby for now regardless that btrfs_subvolumes_setup_generic() needs some enhancements to make it work everywhere, cf. https://github.com/rear/rear/pull/2080#issuecomment-472448686 and subsequent comments - but that is something for the future.

jsmeix commented 5 years ago

@OliverO2 thank you for continuously testing ReaR on current Ubuntu versions and for your enhancements that make things work on new Ubuntu versions!