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
Open your browser, enter
https://<IP address of the file gateway>
in the address bar, and then press Enter.In the dialog box that appears, enter your username and password, and then click OK.
In the left-side navigation pane, click Caches. On the Caches page, click Create.
In the Create Cache dialog box, set the following parameters:
Disk: Click Select, and then select an available disk in the Select disk dialog box.
Disks are available only after you add the disks on the deployment platform. For more information, see Add disks.
File System: This parameter is optional. If you want to reuse data on the cache disk, select this check box. If you delete a share by accident, you can recreate the share and use this feature to restore data.
NoteIf you select the File System check box but no file system exists on the cache disk, the cache disk fails to be created.
Click OK.
Related operations
On the Caches page, you can also perform the following operations.
Operation | Procedure |
Delete a cache disk | Find the cache disk, and then click Delete to delete the cache disk. |
Test a cache disk | Find the cache disk, and then click Speed to test the performance of the cache disk, including sequential I/O tests with 1 MB and 4 KB block sizes. |