arquivo lvm e arquivos de backup não removendo

2

Eu faço backups de hora em hora fazendo snapshots, e toda vez que faço isso cria arquivos em /etc/lvm/archive . Mas lvm não parece prestar atenção ao parâmetro "retain_days" em "backup" em /etc/lvm/lvm.conf , porque eu tenho mais de 9000 arquivos lá, voltando para 2012. Devo configurar um cron job para limpá-los eu mesmo?

Aqui está a seção de backup do arquivo de configuração:

# Configuration of metadata backups and archiving.  In LVM2 when we
# talk about a 'backup' we mean making a copy of the metadata for the
# *current* system.  The 'archive' contains old metadata configurations.
# Backups are stored in a human readeable text format.
backup {

    # Should we maintain a backup of the current metadata configuration ?
    # Use 1 for Yes; 0 for No.
    # Think very hard before turning this off!
    backup = 1

    # Where shall we keep it ?
    # Remember to back up this directory regularly!
    backup_dir = "/etc/lvm/backup"

    # Should we maintain an archive of old metadata configurations.
    # Use 1 for Yes; 0 for No.
    # On by default.  Think very hard before turning this off.
    archive = 1

    # Where should archived files go ?
    # Remember to back up this directory regularly!
    archive_dir = "/etc/lvm/archive"

    # What is the minimum number of archive files you wish to keep ?
    retain_min = 10

    # What is the minimum time you wish to keep an archive file for ?
    retain_days = 30
}
    
por Paul Tomblin 17.12.2014 / 17:51

1 resposta

2

O parâmetro config é para uma retenção de dias mínimo . Não há configuração para retenção máxima. Eu configurei uma entrada crontab para remover os antigos.

    
por 19.04.2016 / 16:43

Tags