Fortinet white logo
Fortinet white logo

Repartitioning the hard disk

Repartitioning the hard disk

To upgrade from a version of FortiWeb previous to 5.5, you must first resize your FortiWeb operating system's disk.

In most cases, you'll have to install a special firmware image to repartition the disk. For details, see To use the special firmware image to repartition the operating system's disk .

For the following FortiWeb-VM tools, you cannot install the special firmware image to repartition the hard disk:

  • Citrix XenServer
  • Open-source Xen Project
  • Microsoft Hyper-V
  • KVM

For these platforms, to repartition the disk you must deploy a new virtual machine and restore the configuration and log data you backed up earlier. See To repartition the operating system's disk without the special firmware image.

Repartitioning affects the operating system’s disk (USB/flash disk), not the hard disk. Existing data such as reports and event, traffic, and attack logs, which are on the hard disk, are not affected.

You can use this image to upgrade an HA cluster by following the same procedure you use for a regular firmware upgrade. For details, see "Updating firmware on an HA pair" in the FortiWeb Administration Guide:

http://docs.fortinet.com/fortiweb/admin-guides

To use the special firmware image to repartition the operating system's disk

  1. Perform a complete backup of your FortiWeb configuration.
  2. Although the repartitioning firmware image automatically saves your FortiWeb configuration, Fortinet recommends that you also manually back it up. For details, see the FortiWeb Administration Guide:

    http://docs.fortinet.com/fortiweb/admin-guides

  3. Contact Fortinet Technical Support to obtain the special repartitioning firmware image: special build 5.4.1, build 6066.
  4. Follow one of the same procedures that you use to install or upgrade firmware using a standard image:
  • In the Web UI, go to System > Status > Status. Locate the System Information widget. Beside Firmware Version, click [Update].
  • In the Web UI, go to System > Maintenance > Backup & Restore. Select the Restore option in System Configuration.
  • In the CLI, enter the execute restore config command.

FortiWeb backs up the current configuration, resizes the hard drive partitions, and boots the system.

Continue with the instructions in Supported upgrade paths.

To repartition the operating system's disk without the special firmware image

  1. Perform a complete backup of your FortiWeb configuration. For details, see the FortiWeb Administration Guide:
  2. http://docs.fortinet.com/fortiweb/admin-guides

  3. Use the instructions for your hypervisor platform to detach the log disk from the VM:
  • Deploy a new FortiWeb 5.5 or later virtual machine on the same platform.
  • Use the instructions for your hypervisor platform to attach the log disk you detached earlier to the new VM:
  • Restore the configuration you backed up earlier to the new VM.
  • When you are sure that the new VM is working properly with the required configuration and log data, delete the old VM.
  • To detach the log disk from a Citrix XenServer VM
    1. In Citrix XenCenter, connect to the VM.
    2. In the settings for the VM, on the Storage tab, select Hard disk 2, and then click Properties.
    3. For Description, enter a new description, and then click OK.
    4. Select Hard disk 2 again, and then click Detach.
    5. Click Yes to confirm the detach task.
    To detach the log disk from a Microsoft Hyper-V VM
    1. In the Hyper-V Manager, select the FortiWeb-VM in the list of machines, and then, under Actions, click Settings.
    2. Select Hard Drive (data.vhd), and then click Remove.
    3. Click Apply.
    To detach the log disk from a KVM VM
    1. In Virtual Machine Manager, double-click the FortiWeb-VM in the list of machines.
    2. Click Show virtual hardware details (the "i" button).
    3. Click VirtIO Disk 2, and then click Remove.
    To attach the log disk to a Citrix XenServer VM
    1. In Citrix XenCenter, connect to the VM.
    2. In the settings for the new, FortiWeb 5.5 or later VM, on the Storage tab, select Hard disk 2, and then click Delete.
    3. Click Yes to confirm the deletion.
    4. On the Storage tab, click Attach Disk.
    5. Navigate to the hard disk you detached from the old VM to attach it.
    6. Start your new virtual machine.
    To attach the log disk to a Microsoft Hyper-V VM
    1. In the Hyper-V Manager, select the new, FortiWeb 5.5 or later virtual machine in the list of machines, and then, under Actions, click Settings.
    2. Select Hard Drive (log.vhd), and then click Browse.
    3. Browse to the hard drive you detached from the old virtual machine to select it.
    4. Click Apply.
    5. Start the new virtual machine.
    To attach the log disk to a KVM VM

    For KVM deployments, you remove an existing virtual disk from the new VM before you attach the disk detached from the original VM.

    1. In Virtual Machine Manager, double-click the new, FortiWeb 5.5 or later VM in the list of machines.
    2. Click Show virtual hardware details (the "i" button).
    3. Click VirtIO Disk 2, and then click Remove.
    4. Click Add Hardware.
    5. Click Storage, select Select managed or other existing storage, and then click Browse.
    6. Click Browse Local.
    7. Navigate to the log disk file for the original machine to select it, and then click Open.
    8. For Device type, select Virtio disk, for Storage format, select qcow2, and then click Finish.
    9. Start the new virtual machine.

    Repartitioning the hard disk

    Repartitioning the hard disk

    To upgrade from a version of FortiWeb previous to 5.5, you must first resize your FortiWeb operating system's disk.

    In most cases, you'll have to install a special firmware image to repartition the disk. For details, see To use the special firmware image to repartition the operating system's disk .

    For the following FortiWeb-VM tools, you cannot install the special firmware image to repartition the hard disk:

    • Citrix XenServer
    • Open-source Xen Project
    • Microsoft Hyper-V
    • KVM

    For these platforms, to repartition the disk you must deploy a new virtual machine and restore the configuration and log data you backed up earlier. See To repartition the operating system's disk without the special firmware image.

    Repartitioning affects the operating system’s disk (USB/flash disk), not the hard disk. Existing data such as reports and event, traffic, and attack logs, which are on the hard disk, are not affected.

    You can use this image to upgrade an HA cluster by following the same procedure you use for a regular firmware upgrade. For details, see "Updating firmware on an HA pair" in the FortiWeb Administration Guide:

    http://docs.fortinet.com/fortiweb/admin-guides

    To use the special firmware image to repartition the operating system's disk

    1. Perform a complete backup of your FortiWeb configuration.
    2. Although the repartitioning firmware image automatically saves your FortiWeb configuration, Fortinet recommends that you also manually back it up. For details, see the FortiWeb Administration Guide:

      http://docs.fortinet.com/fortiweb/admin-guides

    3. Contact Fortinet Technical Support to obtain the special repartitioning firmware image: special build 5.4.1, build 6066.
    4. Follow one of the same procedures that you use to install or upgrade firmware using a standard image:
    • In the Web UI, go to System > Status > Status. Locate the System Information widget. Beside Firmware Version, click [Update].
    • In the Web UI, go to System > Maintenance > Backup & Restore. Select the Restore option in System Configuration.
    • In the CLI, enter the execute restore config command.

    FortiWeb backs up the current configuration, resizes the hard drive partitions, and boots the system.

    Continue with the instructions in Supported upgrade paths.

    To repartition the operating system's disk without the special firmware image

    1. Perform a complete backup of your FortiWeb configuration. For details, see the FortiWeb Administration Guide:
    2. http://docs.fortinet.com/fortiweb/admin-guides

    3. Use the instructions for your hypervisor platform to detach the log disk from the VM:
  • Deploy a new FortiWeb 5.5 or later virtual machine on the same platform.
  • Use the instructions for your hypervisor platform to attach the log disk you detached earlier to the new VM:
  • Restore the configuration you backed up earlier to the new VM.
  • When you are sure that the new VM is working properly with the required configuration and log data, delete the old VM.
  • To detach the log disk from a Citrix XenServer VM
    1. In Citrix XenCenter, connect to the VM.
    2. In the settings for the VM, on the Storage tab, select Hard disk 2, and then click Properties.
    3. For Description, enter a new description, and then click OK.
    4. Select Hard disk 2 again, and then click Detach.
    5. Click Yes to confirm the detach task.
    To detach the log disk from a Microsoft Hyper-V VM
    1. In the Hyper-V Manager, select the FortiWeb-VM in the list of machines, and then, under Actions, click Settings.
    2. Select Hard Drive (data.vhd), and then click Remove.
    3. Click Apply.
    To detach the log disk from a KVM VM
    1. In Virtual Machine Manager, double-click the FortiWeb-VM in the list of machines.
    2. Click Show virtual hardware details (the "i" button).
    3. Click VirtIO Disk 2, and then click Remove.
    To attach the log disk to a Citrix XenServer VM
    1. In Citrix XenCenter, connect to the VM.
    2. In the settings for the new, FortiWeb 5.5 or later VM, on the Storage tab, select Hard disk 2, and then click Delete.
    3. Click Yes to confirm the deletion.
    4. On the Storage tab, click Attach Disk.
    5. Navigate to the hard disk you detached from the old VM to attach it.
    6. Start your new virtual machine.
    To attach the log disk to a Microsoft Hyper-V VM
    1. In the Hyper-V Manager, select the new, FortiWeb 5.5 or later virtual machine in the list of machines, and then, under Actions, click Settings.
    2. Select Hard Drive (log.vhd), and then click Browse.
    3. Browse to the hard drive you detached from the old virtual machine to select it.
    4. Click Apply.
    5. Start the new virtual machine.
    To attach the log disk to a KVM VM

    For KVM deployments, you remove an existing virtual disk from the new VM before you attach the disk detached from the original VM.

    1. In Virtual Machine Manager, double-click the new, FortiWeb 5.5 or later VM in the list of machines.
    2. Click Show virtual hardware details (the "i" button).
    3. Click VirtIO Disk 2, and then click Remove.
    4. Click Add Hardware.
    5. Click Storage, select Select managed or other existing storage, and then click Browse.
    6. Click Browse Local.
    7. Navigate to the log disk file for the original machine to select it, and then click Open.
    8. For Device type, select Virtio disk, for Storage format, select qcow2, and then click Finish.
    9. Start the new virtual machine.