How do I expand the virtual disk of Network Analyzer VM?

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
bmunger

How do I expand the virtual disk of Network Analyzer VM?

Post by bmunger »

Is there a documented procedure on how to expand the size of the disk of the Network Analyzer virtual machine? The VM is running on VMWare so I can expand the disk easily, but how do I make the operating system utilize it correctly without messing something up? If there is a document on this, I can't find it...
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: How do I expand the virtual disk of Network Analyzer VM?

Post by snapon_admin »

Typically you can follow the documentation for resizing the disk in XI for this. Can you run this and paste the output?

Code: Select all

df -h
If your VM isn't using LVM (like ours isn't for some reason) then you may have to mount an ISO of a disk partition utility like gparted and resize it that way. I literally resized our NNA server's virtual disk like an hour ago with this method. Whichever method you use don't forget to make backups!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: How do I expand the virtual disk of Network Analyzer VM?

Post by hsmith »

The NNA ova isn't running LVM, the developers are aware of this, but I do not know when/if it is on the roadmap. Did you install from ova?
Former Nagios Employee.
me.
bmunger

Re: How do I expand the virtual disk of Network Analyzer VM?

Post by bmunger »

OK - I figured this out, using the Nagios XI re-sizing document as a guide. I was initially thrown off because LVM is not in use. It was actually pretty simple.

The steps are:

Resize in VMWare
run fdisk on virtual disk /dev/sda
Delete partition
Re-create partition using the end of the disk as the last cylinder
reboot

Then the resize command has to be run:

resize2fs /dev/sda1

That is pretty much it.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How do I expand the virtual disk of Network Analyzer VM?

Post by rkennedy »

You got it. The guide describes in an LVM environment. Thanks for the contribution @snapon_admin!

Am I good to mark this thread as resolved, and close it out?
Former Nagios Employee
Locked