All Products
Search
Document Center

Cloud Storage Gateway:Manage cache disks

Last Updated:Jan 22, 2024

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

  1. You have deployed the local file gateway console. For more information, see Deploy an on-premises console for a file gateway.

  2. 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

  1. Open your browser, enter https://<IP address of the file gateway> in the address bar, and then press Enter.

  2. In the dialog box that appears, enter your username and password, and then click OK.

  3. In the left-side navigation pane, click Caches. On the Caches page, click Create.

  4. 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.

      Note

      If you select the File System check box but no file system exists on the cache disk, the cache disk fails to be created.

  5. 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.

What to do next