Projet

Général

Profil

Demande #4939

Demande #4926: La partition de backup est presque pleine

L'espace disque de sauvegarde est plein

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

Statut:
Fermé
Priorité:
Normale
Assigné à:
Catégorie:
-
Début:
28/11/2020
Echéance:
% réalisé:

0%

Temps estimé:

Historique

#1

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

  • Statut changé de Nouveau à Résolu
  • Assigné à mis à François Poulain

Le montage de ce disque a été simple donc l'augmentation à chaud requiers plus de manips.

D'abord sur l'hyperviseur on augmente le lv concerné.

(April) root@galanga:~# lvresize -L+100G /dev/vg_galanga/borg_backup 
  /dev/sdc: open failed: No medium found
  /dev/sdd: open failed: No medium found
  Size of logical volume vg_galanga/borg_backup changed from 400.00 GiB (102400 extents) to 500.00 GiB (128000 extents).
  Logical volume vg_galanga/borg_backup successfully resized.

Arrêter puis redémarrer la VM contenant le disque retaillé.

Un simple reboot ne suffit pas, il faut éteindre la VM.

(April) root@galanga:~# virsh shutdown icinga2
Domain icinga2 is being shutdown

(April) root@galanga:~# virsh list 
 Id   Name   State
--------------------

(April) root@galanga:~# virsh start icinga2

Etendre la partition sur le disque

Le faire à chad nécessite de taper dans la table de partition : on delete on recréé. Il faut conserver le bon démarrage de la partition (ici 2048).

=(^-^)=root@icinga2:~# fdisk /dev/vdb 

Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): p
Disk /dev/vdb: 500 GiB, 536870912000 bytes, 1048576000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 77F6EC72-182F-4719-BFEB-DE7424080479

Device     Start       End   Sectors  Size Type
/dev/vdb1   2048 838860766 838858719  400G Linux filesystem

Command (m for help): d
Selected partition 1
Partition 1 has been deleted.

Command (m for help): n
Partition number (1-128, default 1): 
First sector (2048-1048575966, default 2048): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-1048575966, default 1048575966): 

Created a new partition 1 of type 'Linux filesystem' and of size 500 GiB.
Partition #1 contains a ext4 signature.

Do you want to remove the signature? [Y]es/[N]o: N

Command (m for help): p

Disk /dev/vdb: 500 GiB, 536870912000 bytes, 1048576000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 77F6EC72-182F-4719-BFEB-DE7424080479

Device     Start        End    Sectors  Size Type
/dev/vdb1   2048 1048575966 1048573919  500G Linux filesystem

Command (m for help): w
The partition table has been altered.
Syncing disks.

Etendre le system de fichier

=(^-^)=root@icinga2:~# resize2fs /dev/vdb1 
resize2fs 1.44.5 (15-Dec-2018)
Filesystem at /dev/vdb1 is mounted on /srv/backups; on-line resizing required
old_desc_blocks = 50, new_desc_blocks = 63
The filesystem on /dev/vdb1 is now 131071739 (4k) blocks long.
#2

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

  • Tâche parente mis à #4926
#3

Mis à jour par Quentin Gibeaux il y a plus de 3 ans

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

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

  • Version cible changé de Backlog à Sprint 2020 novembre

Formats disponibles : Atom PDF