Fortinet black logo

VM Installation Guide

5.3.0

Step 2: Create the VM instance logical volume

Step 2: Create the VM instance logical volume

You must create the logical volume that FortiADC-VM will use to store its vDisks. In this case, the logical volume is on the Xen server’s local disk, but usually it is preferable to store it on an NFS or CIFS share.

To create a local logical volume:
  1. Connect to the command line in dom0 on the Xen server where you will deploy FortiADC-VM (for example, via an SSH client such as PuTTY).
  2. Find the name of your dom0 logical volume group. (Volume group is highlighted below in bold).
  3. xenuser@LabXen:~$ sudo pvs

    [sudo] password for xenuser:

    PV VG Fmt Attr PSize PFree

    /dev/sda5 LabXen-vg lvm2 a- 698.39g 673.45g

  4. Create a logical volume. In this case, the logical volume is on the Xen server’s local disk, but you could store it on an NFS or CIFS share.

sudo lvcreate -L 100G -n FortiADC-vm /dev/LabXen-vg

where you would replace:

  • 100G — The amount of disk space to allocate to FortiADC-VM’s vDisk in gigabytes.
  • FortiADC-vm — The name of your virtual machine, as it appears in Virtual Machine Manager or when you use the xm command to create the virtual machine.
  • LabXen-vg — The name of your dom0 volume group according to the output of the sudo pvs command.

Step 2: Create the VM instance logical volume

You must create the logical volume that FortiADC-VM will use to store its vDisks. In this case, the logical volume is on the Xen server’s local disk, but usually it is preferable to store it on an NFS or CIFS share.

To create a local logical volume:
  1. Connect to the command line in dom0 on the Xen server where you will deploy FortiADC-VM (for example, via an SSH client such as PuTTY).
  2. Find the name of your dom0 logical volume group. (Volume group is highlighted below in bold).
  3. xenuser@LabXen:~$ sudo pvs

    [sudo] password for xenuser:

    PV VG Fmt Attr PSize PFree

    /dev/sda5 LabXen-vg lvm2 a- 698.39g 673.45g

  4. Create a logical volume. In this case, the logical volume is on the Xen server’s local disk, but you could store it on an NFS or CIFS share.

sudo lvcreate -L 100G -n FortiADC-vm /dev/LabXen-vg

where you would replace:

  • 100G — The amount of disk space to allocate to FortiADC-VM’s vDisk in gigabytes.
  • FortiADC-vm — The name of your virtual machine, as it appears in Virtual Machine Manager or when you use the xm command to create the virtual machine.
  • LabXen-vg — The name of your dom0 volume group according to the output of the sudo pvs command.