This topic describes how to add a disk on a virtualization platform to serve as a cache for an on-premises file gateway.
Background
To deploy an on-premises file gateway in cache mode, you must first add a disk on the virtualization platform, such as VMware vSphere or Hyper-V. After the disk is added, you can configure it as a cache disk for the file gateway in the Alibaba Cloud Cloud Storage Gateway console or the on-premises file gateway console.
The minimum capacity for a file gateway cache disk is 40 GB. If you add a disk with a smaller capacity, the file gateway cannot recognize the new disk.
Add a disk in VMware vSphere
-
Log in to the VMware vSphere virtualization platform.
-
On the Configure tab, go to , and then click Edit.
-
On the Virtual Hardware tab, select New Hard Disk from the New device drop-down list, and then click Add.
After the disk is added, a New Hard Disk configuration item appears.
If a SATA controller is not available, you must first add one. From the New device drop-down list in the Edit Settings dialog box, select SATA controller and click Add.
-
Specify the size for the new hard disk.
For better I/O performance, we recommend using thick provisioning. To do this, expand the New Hard Disk settings, set Disk Provisioning to Thick Provision Lazy Zeroed or Thick Provision Eager Zeroed.
At the bottom of the Virtual Hardware tab, you can see the added New Hard Disk (for example, 40 GB).
This example shows how to add a single disk. You can add more disks based on your business requirements.
Add a disk in Hyper-V
Adding a disk with an IDE controller requires a system restart, while using a SCSI controller does not. We recommend using a SCSI controller.
-
Log in to the Hyper-V virtualization platform.
-
Go to the section, select Hard Drive, and click Add.
-
On the Hard Drive tab, select Virtual hard disk and click Create.
-
Follow the New Virtual Hard Disk Wizard to add the disk.
The following parameters are important:
-
In the Choose Disk Type step, select Dynamically expanding.
-
In the Configure Disk step, select Create a new blank virtual hard disk and set the disk size.
We recommend setting the size of each cache disk to at least 40 GB for better local access performance. For more information about cache configuration, see File Gateway Guidelines.
-
-
Return to the Hard Drive tab and click Apply.
This example shows how to add a single disk. You can add more disks based on your business requirements.
Add a disk in KVM
-
Log in to the KVM virtualization platform.
-
In the KVM terminal, run the
virt-managercommand to open the Virtual Machine Manager. -
Select the deployed target gateway, and then click Open to open the target machine. Select the target virtual machine (such as wp-test), and click the Open button in the toolbar to open the virtual machine console.
-
From the menu bar, click View and then select Details.
-
Click Add Hardware to open the Add Hardware page.
-
Select Storage. Then, select the Create a disk image for the virtual machine option and set the disk capacity. For Device type, select Disk device. For Bus type, we recommend SCSI. Click Finish.
NoteThis example shows how to add a single disk. You can add more disks based on your business requirements.