Ad Widget

Collapse

How to extend disk zabbix appliance 5.0 LTS using OS almalinux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dngady
    Junior Member
    • Jun 2022
    • 1

    #1

    How to extend disk zabbix appliance 5.0 LTS using OS almalinux

    Hi guys,

    I want to extend the root disk in Zabbix appliance 5.0 LTS using the KVM image.

    Where after downloading the image appliance, the disk just stores 10GB. So I was resized in KVM

    Code:
    # qemu-img info /var/lib/libvirt/images/zabbix_appliance-5.0.24.qcow2
    image: /var/lib/libvirt/images/zabbix_appliance-5.0.24.qcow2
    file format: qcow2
    virtual size: 10G (10737418240 bytes)
    disk size: 1.1G
    cluster_size: 65536
    Format specific information:
    compat: 1.1
    lazy refcounts: false
    
    # qemu-img resize /var/lib/libvirt/images/zabbix_appliance-5.0.24.qcow2 +100G
    Image resized.
    
    # qemu-img info /var/lib/libvirt/images/zabbix_appliance-5.0.24.qcow2
    image: /var/lib/libvirt/images/zabbix_appliance-5.0.24.qcow2
    file format: qcow2
    virtual size: 110G (118111600640 bytes)
    disk size: 3.1G
    cluster_size: 65536
    Format specific information:
    compat: 1.1
    lazy refcounts: false
    And then I want to resize the root disk also inside OS, but it cannot be grown.

    Code:
    [root@appliance ~]# fdisk -l
    Disk /dev/sda: 110 GiB, 118111600640 bytes, 230686720 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: dos
    Disk identifier: 0xa0f94b65
    
    Device Boot Start End Sectors Size Id Type
    /dev/sda1 * 2048 1050623 1048576 512M 83 Linux
    /dev/sda2 1050624 9439231 8388608 4G 83 Linux
    /dev/sda3 9439232 11536383 2097152 1G 83 Linux
    /dev/sda4 11536384 20971519 9435136 4.5G 5 Extended
    /dev/sda5 11538432 20971519 9433088 4.5G 83 Linux
    [root@appliance ~]#
    [root@appliance ~]# lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 110G 0 disk
    ├─sda1 8:1 0 512M 0 part /boot
    ├─sda2 8:2 0 4G 0 part /
    ├─sda3 8:3 0 1G 0 part /tmp
    ├─sda4 8:4 0 1K 0 part
    └─sda5 8:5 0 4.5G 0 part /var/lib/mysql
    [root@appliance ~]#
    [root@appliance ~]# growpart /dev/sda 2
    NOCHANGE: partition 2 is size 8388608. it cannot be grown
    [root@appliance ~]#
    [root@appliance ~]#
    How to best practice to extend the root storage guys?

    Thanks in advance
  • sureshkgis
    Junior Member
    • Jun 2022
    • 1

    #2
    Hello
    You can extend the disk with gparted livecd

    Thanks

    Comment

    Working...