Project

General

Profile

Actions

Demande #4810

closed

[Hyperviseur] Faire le ménage des snapshots inutiles

Added by Christian P. Momon almost 4 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normale
Category:
Hypervision
Start date:
10/21/2020
Due date:
% Done:

0%

Estimated time:

Description

Sur le SI April, il a été mis en évidence que la charge I/O est proportionnelle au nombre de snapshots des vm.

Actuellement, sur le SI Chapril :

=(^-^)=root@maine:~# cat listsnapshot2
#!/bin/bash
vmlist=$( virsh list | tail +3 | head -n -1 | awk '{ print $2 }' )
printf "VM              Name                    Creation Time               State\n" 
echo "-------------------------------------------------------------------------" 
for vm in $vmlist; do
    #echo "== $vm";
    while read line; do
          printf "$vm\t\t$line\n";
    done < <(virsh snapshot-list $vm | tail +3 | head -n -1)
done

=(^-^)=root@maine:~# ./listsnapshot2
VM              Name                                           Creation Time               State
--------------------------------------------------------------------------------------------------
allo            2020-03-20-mumble-server                       2020-03-20 19:27:03 +0100   running
allo            2020-03-23-mumble_ok                           2020-03-23 02:24:43 +0100   running
allo            justavantmumbleweb                             2020-03-27 15:52:54 +0100   running
ludo            FreshInstall                                   2020-06-09 02:54:14 +0200   running
pad             2019-10-03-avanttmigrationbuster               2019-10-31 23:01:11 +0100   shutoff
pad             2019-11-01-avantpassagedepotnodejs             2019-11-01 11:21:38 +0100   running
pouet           avant_upgrade_buster                           2019-10-31 22:46:44 +0100   running
valise          Après màj buster - avant reinstall NextCloud   2019-07-04 14:41:35 +0200   running

=(^-^)=root@coon:~# ./listsnapshot2 
VM              Name                              Creation Time               State
-------------------------------------------------------------------------------------
lamp            20191008-premajbuster             2019-10-08 19:22:37 +0200   shutoff
libreoffice     2019-10-03-avantmigrationbuster   2019-10-03 12:52:37 +0200   shutoff
mail            20191009-premajbuster             2019-10-09 21:48:36 +0200   shutoff
sympa           20101009-premajbuster             2019-10-09 21:49:12 +0200   shutoff

Donc, effectivement, il existe des snapshots devenus inutiles dont on pourrait se passer.

Demande : identifier les snapshots inutiles et les supprimer.

Actions #1

Updated by Christian P. Momon almost 4 years ago

  • Subject changed from [Hyperviseur] Faire le ménage des snapshot inutiles to [Hyperviseur] Faire le ménage des snapshots inutiles
Actions #2

Updated by Christian P. Momon almost 4 years ago

  • Category set to Hypervision
Actions #3

Updated by François Poulain over 3 years ago

Amha on peut tous les virer.

Actions #4

Updated by François Poulain over 3 years ago

Je les ait tous virés avec succès ; sauf pour le dernier qui a pris un temps de ouf et qui a paralysé la VM pouet :

virsh snapshot-delete pouet --snapshotname avant_upgrade_buster

J'ai mis une annonce sur status.chapril.org

Actions #5

Updated by François Poulain over 3 years ago

  • Status changed from Nouveau to Résolu
  • Assignee set to François Poulain
Actions #6

Updated by Quentin Gibeaux over 3 years ago

  • Status changed from Résolu to Fermé
Actions #7

Updated by Christian P. Momon over 3 years ago

  • Target version changed from Backlog to Sprint 2021 janvier
Actions

Also available in: Atom PDF