четверг, 19 октября 2017 г.

How to extend disk space in FortiAnalyzer VM

If running out of disk space on FortiAnalyzer VM running firmware version 5, these are the steps to extend the disk space.
1- Make sure that LVM service is running. Run the following command:
execute lvm info
The command output should provide a list of available disks:
FAZVM # execute lvm info
  disk01  In use          20.0(GB)
  disk02  Not present
  disk03  Not present
  disk04  Not present
  disk05  Not present
  disk06  Not present
  disk07  Not present
  disk08  Not present
From the output we can see that there is only one disk with a 20GB capacity.
If there is no output, then LVM has not started yet, run the following command:
execute lvm start
2 -  Stop the FortiAnalyzer VM and add a new disk to the Virtual Machine, for this example we are adding a 10GB disk
3 - After adding the new disk on the VM settings and booting up the FortiAnalyzer, run the command "get system status"
FAZVM # get sys status
Platform Type                   : FAZVM
Platform Full Name              : FortiAnalyzer-VM
.....
Disk Usage                      : Free 17.45GB, Total 19.68GB
.......
The system still recognizes only 20GB of capacity, it has not yet added the new disk.
Run command "execute lvm info", it now displays that a second 10GB disk is available but not in use:
FAZVM # exec lvm info
  disk01  In use          20.0(GB)
  disk02  Not in use      10.0(GB)
  disk03  Not present
  disk04  Not present
  disk05  Not present
  disk06  Not present
  disk07  Not present
  disk08  Not present
4 - If you run the "execute lvm extend" with no arguments, will provide the list of disks available to extend
FAZVM # exec lvm extend
Disk(s) currently not in use:
  disk02      10.0(GB)
More than one disk can be included at a time
FAZVM # exec lvm extend
extend [arg ...]    Argument list (0 to 7).
5 - Include the new disk, this command requires to reboot the FortiAnalyzer
FAZVM # exec lvm extend disk02
This operation will need to reboot the system.
Do you want to continue? (y/n)
6 - After reboot, the new disk has been included:
FAZVM # exec lvm info
  disk01  In use          20.0(GB)
  disk02  In use          10.0(GB)
  disk03  Not present
  disk04  Not present
  disk05  Not present
  disk06  Not present
  disk07  Not present
  disk08  Not present
FAZVM # get sys status
Platform Type                   : FAZVM
Platform Full Name              : FortiAnalyzer-VM
Version                         : v5.0-build0266 131108 (GA Patch 5)
....
Disk Usage                      : Free 27.29GB, Total 29.52GB
....


http://kb.fortinet.com/kb/documentLink.do?externalID=FD34953

Комментариев нет:

Отправить комментарий