Fortinet white logo
Fortinet white logo

Creating the VM instance’s logical volume

Creating the VM instance’s logical volume

You must create the logical volume that FortiWeb-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 FortiWeb-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).

    xenuser@LabXen:~$ sudo pvs

    [sudo] password for xenuser:

    PV VG Fmt Attr PSize PFree

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

  3. 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.
  4. sudo lvcreate -L 100G -n FortiWeb-vm /dev/LabXen-vg

    where you would replace:

  • 100G — The amount of disk space to allocate to FortiWeb-VM’s vDisk in gigabytes.
  • FortiWeb-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.

Creating the VM instance’s logical volume

Creating the VM instance’s logical volume

You must create the logical volume that FortiWeb-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 FortiWeb-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).

    xenuser@LabXen:~$ sudo pvs

    [sudo] password for xenuser:

    PV VG Fmt Attr PSize PFree

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

  3. 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.
  4. sudo lvcreate -L 100G -n FortiWeb-vm /dev/LabXen-vg

    where you would replace:

  • 100G — The amount of disk space to allocate to FortiWeb-VM’s vDisk in gigabytes.
  • FortiWeb-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.