Fortinet Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Travis
New Contributor

FortiAnalyzer VM Growing Disk Space

I was running out of disk space on my FortiAnalyzer VM, so my VM Admin doubled up the space.  I did a reboot and it did not see the increase, so I upgraded it to 5.0.10, and it still does not see the increase in space.  

 

What do I need to do for it to recognize the expanded disk space?

 

Thank all of you for any assistance!

 

Travis

Network Administrator Technical Consumer Products, Inc.

3 Solutions
FortiAdam
Contributor II

Based on my experience with Fortinet support, you will need to reformat your disk for the FAZ to recognize the new space.  

 

It would be better to just add a second disk to your FAZ and then you can "extend" your disk space which basically just means the FAZ sees the two disks as one.  It would appear as though you can do this with up to 8 disks total.

 

If you have to format the disk you can so by running "execute format disk" but be aware of the repercussions.

 

If you want to extend your storage into a second disk:

1.  Verify LVM is started - "execute LVM start"

2.  See if second disk is recognized - "execute lvm info"

3.  Extend storage - "execute lvm extend diskXX"

4.  Rebuild DB after reboot "execute sql-local rebuild-db"

View solution in original post

brazz_FTNT

bhwong wrote:

Instead of adding a new disk, I increase the capacity of the existing disk. Is it possible to extend the existing disk capacity in FAZ?

 

+++++++++++++++++++++++++++++++++++++

Hello bhwong,

 

You need to format your disk , 

 

check  execute lvm info  on your FAZ 

if you increase the current disk,  the FMG/FAZ VM says the extra space cannot be used unless  format performs. 

 

I would suggest you go over these carefully: VM Installation Guide

 

Extending disk space in FortiAnalyzer VM / FortiManager VM

View solution in original post

brazz_FTNT

Hello bhwong, 

 

Thanks for the outputs. 

 

As you can see based  on the provided results:

I)FortiAnalyzer-VM # execute lvm info Disk1 : Used 31GB Disk2 : Used 178GB 209GB

 

II)FortiAnalyzer-VM # get system status Disk Usage : ... Total 196.73GB

III)FortiAnalyzer-VM # get system performance Hard Disk: Total: 206,285,496 KB --->206,285,496/(1024*1024)GB--->196.7291794GB~196.73GB

IV)FortiAnalyzer-VM # diagnose log device Total Quota Summary: Total Quota Allocated Available Allocate% 157.7GB 150.0GB 7.7GB 95.1%

System Storage Summary: Total Used Available Use% 196.7GB 36.2GB 160.6GB 18.4% Reserved space: 39.0GB (19.8% of total space).

 

 

Total Quota(This  is the one we use for our logs)=Total Storage Summary - Reserved Space =196.7GB-39.0GB=157.7GB

We have couple of points here:

(I) is showing the entire physical disk size. 

(II) , (III) , and (IV) (Total Storage) are showing same number. 

(IV) also shows us the Total Quota which is the one we can use for logging purposes. 

 

We can try adding another disk to this VM , let's say  for example another 50 GB for now. 

Let me know about the results. 

 

Cheers

View solution in original post

16 REPLIES 16
Dave_Hall
Honored Contributor

See KB article FD34953.

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C

FortiAdam
Contributor II

Based on my experience with Fortinet support, you will need to reformat your disk for the FAZ to recognize the new space.  

 

It would be better to just add a second disk to your FAZ and then you can "extend" your disk space which basically just means the FAZ sees the two disks as one.  It would appear as though you can do this with up to 8 disks total.

 

If you have to format the disk you can so by running "execute format disk" but be aware of the repercussions.

 

If you want to extend your storage into a second disk:

1.  Verify LVM is started - "execute LVM start"

2.  See if second disk is recognized - "execute lvm info"

3.  Extend storage - "execute lvm extend diskXX"

4.  Rebuild DB after reboot "execute sql-local rebuild-db"

Travis

Thank you both!

 

The link and for the steps.

 

I looked in KB for an answer but did not find that document..

 

Expansion has been completed and my Boss will be happy.

 

Travis

 

Network Administrator Technical Consumer Products, Inc.

Yanis_Sauve

Could you share your solution?

Posting it here could help someone else in the future...

 

Thanks

FortiAdam

Yanis_Sauve wrote:

Could you share your solution?

Posting it here could help someone else in the future...

 

Thanks

There were two solutions posted above which I believe the OP used to fix his issue.  Is there something more specific you are looking for?

Yanis_Sauve

Not really...

 

His post appeared to say he did not find a solution in the KB, and simply said the job was done.

 

I personnaly used the KB article to add a disk to my FAZ-VM...

 

I only wanted to suggest he posts his solution for the benefit of others. I probably did not fully understand the meaning of his post. :)

bhwong

Instead of adding a new disk, I increase the capacity of the existing disk. Is it possible to extend the existing disk capacity in FAZ?

brazz_FTNT

bhwong wrote:

Instead of adding a new disk, I increase the capacity of the existing disk. Is it possible to extend the existing disk capacity in FAZ?

 

+++++++++++++++++++++++++++++++++++++

Hello bhwong,

 

You need to format your disk , 

 

check  execute lvm info  on your FAZ 

if you increase the current disk,  the FMG/FAZ VM says the extra space cannot be used unless  format performs. 

 

I would suggest you go over these carefully: VM Installation Guide

 

Extending disk space in FortiAnalyzer VM / FortiManager VM

bhwong

Thanks! After I expand the disk and realise that the recommended method is to add new disk instead of expanding existing disk, I have to edit the vmx file to shrink the disk back to it's original size, as the vSphere web client only allow me to expand but not shrink, despite I have not expand the capacity in the OS yet.

 

I have proceed with adding a new disk of 170GB to my existing 30GB disk (with 8GB as the OS and boot disk). However, I'm surprise that after LVM combine the two disks (30GB + 170GB), the total capacity shown is 150GB instead of 200GB. Why is this so?

 

If I want to maximise my licensed 200GB, should I add another disk with 50GB capacity? Or I have to take the 1/4 lost of capacity in LVM into account by adding a 67GB disk instead, in order to achieve 200GB total capacity?