Project

General

Profile

Demande #4810

[Hyperviseur] Faire le ménage des snapshots inutiles

Added by Christian P. Momon about 1 month ago. Updated about 1 month ago.

Status:
Nouveau
Priority:
Normale
Assignee:
-
Target version:
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.

History

#1

Updated by Christian P. Momon about 1 month ago

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

Also available in: Atom PDF