Project

General

Profile

Demande #5166

Problème de place sur maine

Added by François Poulain 10 months ago. Updated 10 months ago.

Status:
Fermé
Priority:
Normale
Category:
Hypervision
Start date:
01/30/2021
Due date:
% Done:

0%

Estimated time:

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.

History

#1

Updated by François Poulain 10 months ago

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

Updated by Christian P. Momon 10 months ago

J'approuve, go \o/

#4

Updated by François Poulain 10 months ago

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

Updated by François Poulain 10 months ago

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

Updated by François Poulain 10 months ago

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

Updated by François Poulain 10 months ago

  • Status changed from Nouveau to Résolu
#8

Updated by Christian P. Momon 10 months ago

  • Category set to Hypervision
  • Assignee set to François Poulain
#9

Updated by Christian P. Momon 10 months ago

  • Status changed from Résolu to Fermé
#10

Updated by Christian P. Momon 10 months ago

  • Target version changed from Backlog to Sprint 2021 janvier

Also available in: Atom PDF