xcp icon indicating copy to clipboard operation
xcp copied to clipboard

LVM: set archive=1 in /etc/lvm/lvm.conf

Open DSJ2 opened this issue 1 year ago • 4 comments

From /etc/lvm/lvm.conf:

backup {
        # Configuration option backup/archive.
        # Maintain an archive of old metadata configurations.
        # Think very hard before turning this off. 
        archive = 0

think very hard before turning this off Why is archive off in xcp-ng?

DSJ2 avatar Aug 28 '23 02:08 DSJ2

This comes from XenServer's packaging of lvm. It's explicitly disabled with:

sed -i 's/archive = .*/archive = 0/' $RPM_BUILD_ROOT/%{_sysconfdir}/lvm/lvm.conf

So there is a reason, but I don't see any comments or changelog entries which explains why, and there is no public repository whose history we could look at.

There is no XenServer public bugtracker for these package sources, but you may try to reach the main people involved in this decision on the repository for Storage Manager: https://github.com/xapi-project/sm/issues

stormi avatar Aug 28 '23 08:08 stormi

Also CCing @Wescoeur in case he knows something I don't.

stormi avatar Aug 28 '23 08:08 stormi

I don't know what the real reason for this change is, but it may prevent rollback to a specific position to ensure there is no problem on the sm side (e.g. LVHDSR).

Wescoeur avatar Aug 28 '23 08:08 Wescoeur

Opened https://github.com/xapi-project/sm/issues/635

DSJ2 avatar Aug 28 '23 19:08 DSJ2