Projet

Général

Profil

Demande #5166

Problème de place sur maine

Ajouté par François Poulain il y a environ 3 ans. Mis à jour il y a environ 3 ans.

Statut:
Fermé
Priorité:
Normale
Assigné à:
Catégorie:
Hypervision
Début:
30/01/2021
Echéance:
% réalisé:

0%

Temps estimé:

Description

On a maine qui voit rouge :

Sys. de fichiers             Taille Utilisé Dispo Uti% Monté sur
/dev/drbd0                    1007G    885G   71G  93% /var/lib/libvirt/maine

Les données stockées deviennent effectivement trop grosses pour le volume :

=(^-^)=root@maine:~# du -sch /var/lib/libvirt/maine/* | sort -h
[...]
43G    /var/lib/libvirt/maine/pad.qcow2
99G    /var/lib/libvirt/maine/drop-data.qcow2
191G    /var/lib/libvirt/maine/valise-data.qcow2
319G    /var/lib/libvirt/maine/pouet.qcow2
885G    total

NB: comme c'est du sparse, il ne faut pas regarder la sortie d'un ls -h.

Historique

#1

Mis à jour par François Poulain il y a environ 3 ans

L'espace provisionné sur maine par les VM se rapproche de 1500Go :

ls -l /var/lib/libvirt/maine/ | awk '{s+=$5}END{print s/1024^3}' 
1428.28

Je propose de passer vg_maine de 1024Go à 1536Go en suivant la procédure « April » d'augmentation de DRBD, en la backportant dans la doc chapril.

#2

Mis à jour par Christian P. Momon il y a environ 3 ans

J'approuve, go \o/

#4

Mis à jour par François Poulain il y a environ 3 ans

Les LV sont élargis mais drbd n'a pas l'air de s'élargir.

april@renard:~$ ssh coon

=(^-^)=root@coon:~# lvextend -L +512G /dev/vg_coon/maine 
  /dev/drbd0: open failed: Mauvais type de médium
  Size of logical volume vg_coon/maine changed from 1,00 TiB (262144 extents) to 1,50 TiB (393216 extents).
  Logical volume vg_coon/maine successfully resized.
=(^-^)=root@coon:~# déconnexion
Shared connection to 94.130.8.3 closed.

april@renard:~$ ssh maine

=(^-^)=root@maine:~# lvextend -L +512G /dev/vg_maine/maine 
  /dev/drbd1: open failed: Mauvais type de médium
  Size of logical volume vg_maine/maine changed from 1,00 TiB (262144 extents) to 1,50 TiB (393216 extents).
  Logical volume vg_maine/maine successfully resized.

=(^-^)=root@maine:~# drbdadm -- --assume-clean resize maine

=(^-^)=root@maine:~# drbd-overview
NOTE: drbd-overview will be deprecated soon.
Please consider using drbdtop.

 0:maine/0  Connected Primary/Secondary UpToDate/UpToDate /var/lib/libvirt/maine ext4 1007G 886G 71G 93% 
 1:coon/0   Connected Secondary/Primary UpToDate/UpToDate 
#5

Mis à jour par François Poulain il y a environ 3 ans

Pourtant au syslog :

Jan 30 12:10:53 maine kernel: [4454340.070407] block drbd0: Writing the whole bitmap, md moved
Jan 30 12:10:54 maine kernel: [4454341.010500] block drbd0: drbd_bm_resize called with capacity == 3221127096
Jan 30 12:10:54 maine kernel: [4454341.014452] block drbd0: resync bitmap: bits=402640887 words=6291264 pages=12288
Jan 30 12:10:54 maine kernel: [4454341.014457] block drbd0: size = 1536 GB (1610563548 KB)
Jan 30 12:10:54 maine kernel: [4454341.170311] block drbd0: Writing the whole bitmap, size changed
Jan 30 12:10:54 maine kernel: [4454341.286214] block drbd0: bitmap WRITE of 4097 pages took 116 ms
Jan 30 12:10:54 maine kernel: [4454341.286219] block drbd0: 0 KB (0 bits) marked out-of-sync by on disk bit-map.
Jan 30 12:10:54 maine kernel: [4454341.320419] block drbd0: Resync of new storage suppressed with --assume-clean
#6

Mis à jour par François Poulain il y a environ 3 ans

Confiant, je poursuis.

=(^-^)=root@maine:~# resize2fs /dev/drbd0
resize2fs 1.44.5 (15-Dec-2018)
Filesystem at /dev/drbd0 is mounted on /var/lib/libvirt/maine; on-line resizing required
old_desc_blocks = 128, new_desc_blocks = 192
The filesystem on /dev/drbd0 is now 402640887 (4k) blocks long.

Et c'est bon :

# df -h
Sys. de fichiers             Taille Utilisé Dispo Uti% Monté sur
[...]
/dev/drbd0                     1,5T    886G  555G  62% /var/lib/libvirt/maine
#7

Mis à jour par François Poulain il y a environ 3 ans

  • Statut changé de Nouveau à Résolu
#8

Mis à jour par Christian P. Momon il y a environ 3 ans

  • Catégorie mis à Hypervision
  • Assigné à mis à François Poulain
#9

Mis à jour par Christian P. Momon il y a environ 3 ans

  • Statut changé de Résolu à Fermé
#10

Mis à jour par Christian P. Momon il y a environ 3 ans

  • Version cible changé de Backlog à Sprint 2021 janvier

Formats disponibles : Atom PDF