Cloud Storage Gateway provides a cache disk for each shared path. This topic describes how to manage the cache in the local file gateway console, including adding cache disks, deleting cache disks, and testing the speed of cache disks.
Prerequisites
You have deployed the local file gateway console. For more information, see Deploy an on-premises console for a file gateway.
You have added disks. For more information, see Add disks.
Background information
Each file gateway share has a unique cache disk attached to it. To create multiple shares, you must create the same number of cache disks for the shares. You can upload data in a share to an Object Storage Service (OSS) bucket by using a cache disk. You can also download data from OSS buckets to a local device by using a cache disk.
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.
Other supported operations
On the Caches page, you can also perform the following operations.
Operation | Description |
Delete a cache disk | Find the target cache disk, and then click Delete to delete the cache disk. |
Test a cache disk | Find the target cache disk, and then click Speed Test to test the performance of the cache disk, including sequential I/O tests with 1 MB and 4 KB block sizes. |