Ad Widget

Collapse

Zabbix Server VM - Add a Hard Drive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stevefxp
    Senior Member
    • Aug 2020
    • 168

    #1

    Zabbix Server VM - Add a Hard Drive

    Hello all,

    I have my Zabbix server as a vm, using 32 gig of hard drive space. I would like to add a hard drive, to move the MySQL onto this hard drive? Has anyone done this, and if yes whats the best way to get this done?

    Thanks,
    Steve
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Its more of a Linux(?) question, than Zabbix...

    Comment

    • patrickdenis
      Junior Member
      • May 2020
      • 18

      #3
      Originally posted by stevefxp
      Hello all,

      I have my Zabbix server as a vm, using 32 gig of hard drive space. I would like to add a hard drive, to move the MySQL onto this hard drive? Has anyone done this, and if yes whats the best way to get this done?

      Thanks,
      Steve

      Hi ,

      !st you need to add the HDD to your VM then restart your VM,

      After that depending of your structure ican give you can example :
      df -h lookup what is writtin after /dev/ and replace the words from my example :
      fdisk -l to see if you see you added HDD, lets say for that example that it added sdb and your main hdd ison sda.

      start fdisk /dev/sdb
      u (don't mind the depricated warning)

      n

      p

      (leave all the questions to default answer)

      w

      REBOOT

      pvcreate /dev/sdb1

      vgextend {{VAR1}} /dev/sdb1

      lvextend -l 100%FREE /dev/mapper/{{VAR2}}

      resize2fs /dev/mapper/{{VAR2}}


      VAR1 = run the command pvdisplay and note the name in front of VG Name :
      VAR2 = look at the path/name when you do an df -h
      example : /dev/mapper/ubuntu--vg-ubuntu--lv

      if it is not clear , look up how to add an second HDD to ubuntu in google maybe some can explain it better then me !







      Comment

      Working...