Ad Widget

Collapse

Resizing Zabbix 6.2 Pre-Made Hyper-V Image File System

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kmitadmin
    Junior Member
    • Jan 2021
    • 13

    #1

    Resizing Zabbix 6.2 Pre-Made Hyper-V Image File System

    I am working on the Zabbix 6.2 Hyperv 2012 image building our new environment. I am running into issues with the size of the file system even with log rotation on for /var/lib/mysql. Are there instructions anywhere for expanding the size of the file system in Hyper-v? I was thinking this would be a regular question but I didn't find instructions from Zabbix on this.
  • kmitadmin
    Junior Member
    • Jan 2021
    • 13

    #2
    I ended up following the below instructions. It had an xfs file system so i resized it using the xfs command to finish the work on partition sda5. While following directions I did partitions 4 and 5 since there was an extended volume.

    https://www.geekersdigest.com/how-to...hout-downtime/

    After expanding the HD size in Hyper-V:

    # Stop Service
    systemctl stop zabbix-server

    # View the disk stats
    fdisk -l /dev/sda
    df -h
    nano /etc/fstab

    [HASHTAG="t760"]update[/HASHTAG] the partition
    parted /dev/sda
    resizepart
    4
    100%
    5
    100%
    quit

    #Extend the file system
    xfs_growfs /dev/sda5
    Last edited by kmitadmin; 05-10-2022, 15:19.

    Comment

    Working...