Home / Platform management / Storage / Distributed Storage / Access to storage services

Access to storage services

There are two ways to access storage services: one is to access distributed storage resources of other business clusters within the platform, ensuring storage and business isolation for easy management and maintenance; the other is to access external Ceph storage resources as distributed storage.

Prerequisites

Prepare for storage

Choose one of the following:

Open ports

Destination IP Destination Port Source IP Source Port
IP of Ceph node 6789~7300 IP of all nodes in the business cluster any

Get authentication information (external Ceph)

If an external Ceph storage is prepared, obtain authentication information through the following command.

Parameter Acquisition Method
FSID ceph fsid
MON Information ceph mon dump
Must be in the format of {name=IP}, for example a=192.168.100.100:6789.
admin key value ceph auth get-key client.admin
Storage Pool - File storage: The value of name obtained by using the ceph fs ls command.

- Block storage: ceph osd dump | grep "application rbd" | awk '{print $3}'
Data Storage Pool (Only required for file storage) The value of data pools obtained by using the ceph fs ls command.

Procedure

Note: The following steps are for accessing external Ceph. The steps for accessing distributed storage are similar.

  1. In the left navigation pane, click Storage > Distributed Storage.

  2. Click Start Access.

  3. On the Access configuration wizard page, select External Ceph.

    Parameter Description
    Snapshots When enabled, supports creating PVC snapshots and using them to configure new PVCs for quick backup and recovery of business data.
    If snapshots were not enabled when connecting to storage, you can still enable them as needed in the Actions section of the storage cluster details page.
    Caution: Before using, make sure that the volume snapshot plugin has been deployed for the current cluster.
    Network Configuration
    • Host Network: The compute components in this cluster will use the Host Network to access the Storage Cluster.
    • Container Network: The compute components in this cluster will use the Container Network to access the Storage Cluster. You can create subnets in network management and assign them to the rook-ceph namespace. If left blank, the default subnet will be used.
    Others Please fill in the external Ceph authentication parameter information obtained in the prerequisites.
  4. On the Create StorageClass wizard page, complete the configuration and click Register.

    Parameter Description
    Type Based on the storage pool type created earlier, the default corresponding storage class will be:
    - File storage: CephFS file storage
    - Block storage: CephRBD block storage
    Recycle Strategy The recycling strategy for persistent volumes.
    - Delete: When deleting the declaration of a persistent volume, the bound persistent volume will also be deleted.
    - Retain: Even if the declaration of a persistent volume is deleted, its bound persistent volume will still be retained.
    Allocate Project The projects that can use this type of storage.
    If there are no projects that need to use this type of storage temporarily, you can choose not to allocate projects and update them later.
  5. Wait for about 1-5 minutes for successful access.

What’s next

Note: If you need to maintain the configuration of storage pools and devices for external storage, you need to operate on the management platform of the storage cluster.