Project

General

Profile

Actions

Demande #4939

closed

Demande #4926: La partition de backup est presque pleine

L'espace disque de sauvegarde est plein

Added by François Poulain almost 4 years ago. Updated almost 4 years ago.

Status:
Fermé
Priority:
Normale
Category:
-
Start date:
11/28/2020
Due date:
% Done:

0%

Estimated time:
Actions #1

Updated by François Poulain almost 4 years ago

  • Status changed from Nouveau to Résolu
  • Assignee set to 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.
Actions #2

Updated by François Poulain almost 4 years ago

  • Parent task set to #4926
Actions #3

Updated by Quentin Gibeaux almost 4 years ago

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

Updated by Christian P. Momon almost 4 years ago

  • Target version changed from Backlog to Sprint 2020 novembre
Actions

Also available in: Atom PDF