In Cloud Storage Gateway (CSG), each share is associated with a cache disk. This topic describes how to manage cache disks in the on-premises gateway console, including how to add cache disks, delete cache disks, and test the cache disk speed.
Prerequisites
An on-premises file gateway is deployed. For more information, see Deploy an on-premises console for a file gateway.
A disk has been added. For more information, see Add disks.
Background information
Each share of an on-premises file gateway has a unique cache disk. To create multiple shares, you must create the same number of cache disks for the shares. You can transmit data in a share to Object Storage Service (OSS) or use a cache disk to synchronize data from OSS to an on-premises device.
Add a cache disk
-
In a web browser, enter
https://<IP address of your file gateway>to access the on-premises console for the file gateway. -
Enter your username and password, and then click OK.
-
On the Cache Settings page, click Create.
-
In the Create Cache dialog box, configure the following parameters.
-
Hard disk: Click Select and choose an available disk.
Disks are available here only after you add a disk on the deployment platform.
-
File system: This is an optional feature. To recover data from a cache disk when you recreate a share, select this option to enable data reuse. This allows you to recover data by recreating the share if it was accidentally deleted.
NoteIf no file system exists on the cache disk (that is, the cache disk is empty or not initialized), selecting this option causes the cache creation to fail.
-
-
Click OK to add the cache disk.
Related operations
On the Caches page, you can also perform these operations:
Operation | Procedure |
Delete a cache disk |
Find the cache you want to delete and click Delete. |
Test a cache disk |
Find the cache that you want to test and click Speed. This tests the performance of the cache disk, including sequential I/O performance with 1 MB and 4 KB block sizes. |