We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda CloudGen Firewall

How to Add and Remove Data Disks in Azure using ASM

  • Last updated on

Add multiple data disks to your firewall or Control Center VM to better optimize accessing your disks in the Azure storage account. This can be done during deployment when using PowerShell or templates. To add data disks to existing firewall or Control Center VMs, or VMs created via the Azure portal, you must manually attach the data disks and trigger the migration to the RAID device. During migration, all data disks are added to a RAID0 and mounted as the /phion0. Existing data on the /phion0 partition is copied to the new device.


  • The size of the RAID device may not exceed 2TB.
  • Up to 26 data disks can be used.


Before You Begin

  • Azure PowerShell 2.0.1 or higher is required.

Adding Data Disks to the Firewall VM

Add the data disks to the VM configuration and then move the data on the /phion0 partition to the new RAID device.

Step 1. Add Data Disks to the Firewall VM
  1. Launch Azure PowerShell
  2. Add at least two data disks to the VM. LUN 0 is already used by the OS disk. Both the LUN and VHD_BLOB_URI must be unique. The combined sizes of all data disks must be greater than 70 GB.

    Get-AzureVM -ServiceName CLOUD_SERVICE_NAME -Name FIREWALL_VM_NAME | Add-AzureDataDisk -CreateNew -LUN LUN_NUMBER -DiskSizeInGB DISK_SIZE DiskLabel DISK_LABEL -MediaLocation VHD_BLOB_URI | Update-AzureVM
  3. Start the firewall VM.

Log in via SSH and enter lsblk to verify that three data disks are now attached to the VM:


Step 2. Migrate /phion0/ to the Data Disks

Use the cloud-storctl command line script to migrate /phion0 to the new RAID device.

  1. Log into the firewall via SSH.
  2. Enter cloud-storctl migrate /phion0 auto

Verify that  /phion0/ is now mounted on the RAID device:


Removing Data Disks from the Firewall VM

If the destination of the migration is not an empty disk, the migration must be forced (-f switch used).

Step 1. Move /phion0/ to the OS Disk
  1. Log into the firewall via SSH.
  2. Enter cloud-storctl -f migrate /phion0 sda2
Step 2. Remove the Data Disks from the Firewall VM
  1. Shut down the firewall VM.
  2. Launch Azure PowerShell.
  3. Enter the following command for each data disk:

    Get-AzureVM -ServiceName CLOUD_SERVICE_NAME -Name FIREWALL_VM_NAME | Remove-AzureDataDisk -LUN LUN_NUMBER -DeleteVHD | Update-AzureVM
  4. Start the firewall VM. 

The firewall VM is now using the sda2 partition of the OS disk for /phion0.

Last updated on