Augmentation de taille de disque à chaud
/dev/vdb1 3611286180 3300868068 134241800 97% /var/lib/nfdump
Dans l'interface de Proxmox, ajouter de l'espace au disque virtuel (Disk Action / Resize).
Ensuite, dans la VM, les logs affichent :
[956144.404883] virtio_blk virtio3: [vdb] new size: 8178892800 512-byte logical blocks (4.19 TB/3.81 TiB) [956144.404896] vdb: detected capacity change from 7340032000 to 8178892800
Redimensionner la partition : parted /dev/vdb :
Warning: Not all of the space available to /dev/vdb appears to be used, you can fix the GPT to use all of the space (an extra 838860800 blocks) or continue with the current setting? Fix/Ignore? Fix (parted) resizepart 1 100% Warning: Partition /dev/vdb1 is being used. Are you sure you want to continue? Yes/No? Yes (parted) quit
Enfin redimensionner le filesystem EXT4 : resize2fs /dev/vdb1 :
resize2fs 1.47.0 (5-Feb-2023) Filesystem at /dev/vdb1 is mounted on /var/lib/nfdump; on-line resizing required old_desc_blocks = 438, new_desc_blocks = 488 The filesystem on /dev/vdb1 is now 1022361339 (4k) blocks long.
df
/dev/vdb1 4024137380 3300897764 530286544 87% /var/lib/nfdump