Re: lvm.conf backup section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 28. 11. 18 v 10:51 Far Had napsal(a):
Hi
There are two parameters in lvm.conf which I don't understand the exact meaning of.

1. retain_min
2. retain_days

What do "*the minimum number of archive files you wish to keep*" and "*minimum time you wish to keep an archive file for*" mean?
Is there any auto deletion mechanism for backup archives?

Hi


There is kept history for 'created' VGs, where you can specify how many
and for how long archives for individual VG you want to store.

This works reasonably well if you use 'same VG names' all the time.

However - when you use lvm2 on some testing machine where the VG name is essentially some random hash md5 lengthy string - you will sooner or later end with gazillion archive files in your /etc/lvm/archive directory.

In this case it's admins responsibility to prune VG archive files that are no longer necessary.

lvm2 has no idea if the VG named like: "myvg01320982woicdo8uagcd97wghcd"
will be still ever needed again - so such archives are kept mostly forever....

Every command you run which modifies metadata of particular VG does care only about that particular VG and it's archives.

Hopefully this explains it.

Regards

Zdenek

_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux