Este contenido no está disponible en el idioma seleccionado.
Chapter 13. Managing file systems using the Ceph dashboard
As a storage administrator, you can create, edit, delete, and manage accesses of file systems on the Red Hat Ceph Storage dashboard.
13.1. Configuring CephFS volumes
As a storage administrator, you can configure Ceph File System (CephFS) volumes on the Red Hat Ceph Storage dashboard.
13.1.1. Creating CephFS volumes
You can create Ceph File System (CephFS) volumes on the Red Hat Ceph Storage dashboard.
Prerequisites
- A working Red Hat Ceph Storage cluster with MDS deployed.
Procedure
- From the dashboard navigation, go to File > File Systems.
- Click Create.
In the Create Volume window, set the following parameters:
- Name: Set the name of the volume.
- Placement (Optional): Select the placement of the volume. You can set it as either Hosts or Label.
Hosts/Label (Optional): If placement is selected as Hosts in the previous option, then select the appropriate host from the list. If placement is selected as Label in the previous option, then enter the label.
[IMPORTANT]: To identify the label that has been created for the hosts while using it as a placement, you can run the following command from the CLI:
[ceph: root@ceph-hk-ds-uoayxl-node1-installer /]# ceph orch host ls HOST ADDR LABELS STATUS host01 10.0.210.182 _admin,installer,mon,mgr host02 10.0.96.72 mon,mgr host03 10.0.99.37 mon,mds host04 10.0.99.244 osd,mds host05 10.0.98.118 osd,mds host06 10.0.98.66 osd,nfs,mds host07 10.0.98.23 nfs,mds 7 hosts in cluster
Click Create Volume.
- A notification displays that the volume was created successfully.
13.1.2. Editing CephFS volumes
You can edit Ceph File System (CephFS) volumes on the Red Hat Ceph Storage dashboard.
Prerequisites
- A working Red Hat Ceph Storage cluster with Ceph File System deployed.
Procedure
- From the dashboard navigation, go to File > File Systems.
- From the listed volumes, select the volume to be edited and click Edit.
In the Edit File System window, rename the volume as required and click Edit File System.
A notification displays that the volume was edited successfully.
13.1.3. Removing CephFS volumes
You can remove Ceph File System (CephFS) volumes on the Red Hat Ceph Storage dashboard.
Prerequisites
- A working Red Hat Ceph Storage cluster with Ceph File System deployed.
Procedure
- From the dashboard navigation, go to File > File Systems.
- From the listed volumes, select the volume to be removed and click Remove from the action drop-down.
In the Remove File System window, select Yes, I am sure and click Remove File System.
A notification displays that the volume was removed successfully.
13.2. Configuring CephFS subvolume groups
As a storage administrator, you can configure Ceph File System (CephFS) subvolume groups on the Red Hat Ceph Storage dashboard.
13.2.1. Creating CephFS subvolume groups
You can create subvolume groups to create subvolume on the dashboard. You can also use subvolume groups to apply policies across a set of subvolumes.
Prerequisites
- A working Red Hat Ceph Storage cluster with Ceph File System deployed.
Procedure
- From the dashboard navigation, go to File > File Systems.
- From the listed volumes, select the row for which you want to create subvolumes and expand the row.
- From the Subvolume groups tab, click 'Create' to create a subvolume group.
In the Create Subvolume group window, enter the following parameters:
- Name: Set the name of the subvolume group.
- Volume name: Validate that the correct name of the volume is selected.
- Size: Set the size of the subvolume group. If left blank or entered as 0, then, by default, the size will be set as infinite.
- Pool: Set the pool of the subvolume group. By default, data_pool_layout of the parent directory is selected.
- UID: Set the UID of the subvolume group.
- GID: Set the GID of the subvolume group.
- Mode: Set the permissions for the directory. By default, the mode is 755 which is rwxr-xr-x.
Click Create Subvolume group.
A notification displays that the subvolume group was created successfully.
13.2.2. Editing CephFS subvolume groups
You can edit the subvolume groups on the dashboard.
Prerequisites
- A working Red Hat Ceph Storage cluster with Ceph File System deployed.
Procedure
- From the dashboard navigation, go to File > File Systems.
- From the listed volumes, select the row for which you want to edit a subvolumes and expand the row.
- From the Subvolume groups tab, select the row containing the group that you want to edit.
- Click Edit to edit a subvolume group.
In the Edit Subvolume group window, edit the needed parameters and click Edit Subvolume group.
A notification displays that the subvolume group was edited successfully.
13.2.3. Removing CephFS subvolume groups
You can remove Ceph File System (CephFS) subvolume groups on the Red Hat Ceph Storage dashboard.
Ensure to remove the subvolume within the subvolume group before removing the subvolume group.
Prerequisites
- A working Red Hat Ceph Storage cluster with Ceph File System deployed.
Procedure
- From the dashboard navigation, go to File > File Systems.
- From the listed volumes, select the row for which you want to remove a subvolume and expand the row.
- Under the Subvolume groups tab, select the subvolume group you want to remove, and click Remove from the action drop-down.
In the Remove Subvolume group window, select 'Yes, I am sure', and click Remove Subvolume group.
A notification displays that the subvolume group was removed successfully.
13.3. Configuring CephFS subvolumes
As a storage administrator, you can configure Ceph File System (CephFS) subvolumes on the Red Hat Ceph Storage dashboard.
13.3.1. Creating CephFS subvolume
You can create Ceph File System (CephFS) subvolume on the Red Hat Ceph Storage dashboard.
Ensure to remove the subvolume within the subvolume group before removing the subvolume group.
Prerequisites
- A working Red Hat Ceph Storage cluster with Ceph File System deployed.
Procedure
- From the dashboard navigation, go to File > File Systems.
- From the listed volumes, select the row.
Under the Subvolume tab, select the Subvolume group in which you want to create the subvolume.
NoteIf you select the Default option, the subvolumes are not created under any subvolume groups.
- Click Create to create a subvolume.
In the Create Subvolume window, enter the following parameters:
- Name: Set the name of the subvolume group.
- Subvolume name: Set the name of the volume.
- Size: Set the size of the subvolume group. If left blank or entered as 0, then, by default, the size will be set as infinite.
- Pool: Set the pool of the subvolume group. By default, data_pool_layout of the parent directory is selected.
- UID: Set the UID of the subvolume group.
- GID: Set the GID of the subvolume group.
- Mode: Set the permissions for the directory. By default, the mode is 755 which is rwxr-xr-x.
- Isolated Namespace: If you want to create the subvolume in a separate RADOS namespace, select this option.
Click Create Subvolume.
A notification that the subvolume was created successfully is displayed.
13.3.2. Editing CephFS subvolume
You can edit Ceph File System (CephFS) subvolume on the Red Hat Ceph Storage dashboard.
You can only edit the size of the subvolumes on the dashboard.
Prerequisites
- A working Red Hat Ceph Storage cluster with Ceph File System deployed.
- A subvolume created.
Procedure
- From the dashboard navigation, go to File > File Systems.
- From the listed volumes, select the row.
- Under the Subvolume tab, select the subvolume you want to edit, and click Edit within the volume.
- Click Create to create a subvolume.
In the Edit Subvolume window, enter the following parameters:
- Name: Set the name of the subvolume group.
- Subvolume name: Set the name of the volume.
- Size: Set the size of the subvolume group. If left blank or entered as 0, then, by default, the size will be set as infinite.
- Pool: Set the pool of the subvolume group. By default, data_pool_layout of the parent directory is selected.
- UID: Set the UID of the subvolume group.
- GID: Set the GID of the subvolume group.
- Mode: Set the permissions for the directory. By default, the mode is 755 which is rwxr-xr-x.
Click Edit Subvolume.
A notification that the subvolume was created successfully is displayed.
13.3.3. Removing CephFS subvolume
You can remove Ceph File System (CephFS) subvolume on the Red Hat Ceph Storage dashboard.
Prerequisites
- A working Red Hat Ceph Storage cluster with Ceph File System deployed.
- A subvolume created.
Procedure
- From the dashboard navigation, go to File > File Systems.
- From the listed volumes, select the row.
- Navigate to Subvolume tab, select the subvolume you want to remove, and click Remove.
In the Remove Subvolume window, confirm whether you want to remove the selected subvolume and click Remove Subvolume.
A notification that the subvolume was removed successfully is displayed.
13.4. Managing CephFS snapshots
As a storage administrator, you can cretate Ceph File System (CephFS) volume and subvolume snapshots on the Red Hat Ceph Storage dashboard.
The Ceph File System (CephFS) snapshots create an immutable, point-in-time view of a Ceph File System. CephFS snapshots are asynchronous and are kept in a special hidden directory in the CephFS directory named .snap. You can specify snapshot creation for any directory within a Ceph File System. When specifying a directory, the snapshot also includes all the subdirectories beneath it.
CephFS snapshot feature is enabled by default on new Ceph File Systems, but it must be manually enabled on existing Ceph File Systems.
Each Ceph Metadata Server (MDS) cluster allocates the snap identifiers independently. Using snapshots for multiple Ceph File Systems that are sharing a single pool causes snapshot collisions, and results in missing file data.
13.4.1. Creating CephFS subvolume snapshots
As a storage administrator, you can create Ceph File System (CephFS) subvolume snapshot on the Red Hat Ceph Storage dashboard. You can create an immutable, point-in-time view of a Ceph File System (CephFS) by creating a snapshot.
Prerequisites
- A running Red Hat Ceph Storage cluster.
- A subvolume group with corresponding subvolumes.
Procedure
- Log into the dashboard.
- On the dashboard navigation menu, click File > File Systems.
Select the CephFS where you want to create the subvolune snapshot.
If there are no file systems available, create a new file system.
- Go to the Snapshots tab. There are three columns - Groups, Subvolumes, and Create.
- From the Groups and Subvolumes columns, select the group and the subvolume for which you want to create a snapshot.
Click Create in the third column. The Create snapshot form opens.
- Name: A default name (date and time of the creation of snapshot) is already added. You can edit this name and add a new name.
- Volume name: The volume name is the file system name. It is already added to the form as per your selection.
- Subvolume group: The subvolume group name is already added as per your selection. Alternatively, you select a different subvolume group from the dropdown list.
- Subvolume: The subvolume name is already added as per your selection. Alternatively, you can select a different subvolume from the dropdown list.
Click Create Snapshot.
A notification is displayed that the snapshot is created successfully.
Verification
- Navigate to the Snapshots tab, select the subvolume and subvoume group for which the snapshot is created.
13.4.2. Deleting CephFS subvolume snapshots
As a storage administrator, you can create Ceph File System (CephFS) subvolume snapshot on the Red Hat Ceph Storage dashboard. You can create an immutable, point-in-time view of a Ceph File System (CephFS) by creating a snapshot.
Prerequisites
- A running Red Hat Ceph Storage cluster.
- A subvolume group with corresponding subvolumes.
Procedure
- Log into the dashboard.
- On the dashboard navigation menu, click File > File Systems.
- Select the CephFS where you want to delete the subvolume snapshot.
- Go to the Snapshots tab.
- Select the snapshot you want to delete. You can list the snapshot by selecting the subvolume group and subvoume for which the snapshot is created.
- Check the box 'Yes, I am sure' to confirm you want to delete the snapshot.
Click Delete Snapshot.
A notification is displayed that the snapshot is deleted successfully.
13.4.3. Cloning CephFS subvolume snapshots
As a storage administrator, you can clone Ceph File System (CephFS) subvolume snapshot on the Red Hat Ceph Storage dashboard.
Prerequisites
- A running Red Hat Ceph Storage cluster.
- A subvolume snapshot.
Procedure
- Log into the dashboard.
- On the dashboard navigation menu, click File > File Systems.
- Select the CephFS where you want to clone the subvolume snapshot.
- Go to the Snapshots tab.
- Select the snapshot you want to clone. You can list the snapshot by selecting the subvolume group and subvoume for which the snapshot is created. Check the box 'Yes, I am sure' to confirm you want to delete the snapshot.
- Click the arrow next to the Delete button.
Click Clone and configure the following.
- Name: A default name (date and time of the creation of clone) is already added. You can change this name and add a new name.
- Group name: The subvolume group name is already added as per your selection. Alternatively, you select a different subvolume group from the dropdown list.
Click Create Clone.
A notification is displayed that the clone is created successfully.
- You can verify that the clone is created by going to the Snapshots tab, in the Subvolume column. Select the subvoume group for which the clone is created.
13.4.4. Creating CephFS volume snapshots
As a storage administrator, you can create Ceph File System (CephFS) volume snapshot on the IBM Storage Ceph dashboard. You can create an immutable, point-in-time view of a Ceph File System (CephFS) volume by creating a snapshot.
Prerequisites
- A running Red Hat Ceph Storage cluster.
- A subvolume group with corresponding subvolumes.
Procedure
- Log into the dashboard.
- On the dashboard navigation menu, click File > File Systems.
Select the CephFS where you want to create the subvolume snapshot.
If there are no file systems available, create a new file system.
- Go to the Directories tab.
- From the list of the subvolume and volumes, select the volume for which you want to create the snapshot.
Click Create in the Snapshot row. The Create Snapshot form opens.
- Name: A default name (date and time of the creation of snapshot) is already added. You can edit this name and add a new name.
Click Create Snapshot.
A notification is displayed that the snapshot is created successfully.
- You can verify that the snapshot is created from the Snapshots row in the Directories tab
13.4.5. Deleting CephFS volume snapshots
As a storage administrator, you can delete Ceph File System (CephFS) volume snapshot on the Red Hat Ceph Storage dashboard.
Prerequisites
- A running Red Hat Ceph Storage cluster.
- A volume snapshot.
Procedure
- Log into the dashboard.
- On the dashboard navigation menu, click File > File Systems.
- Select the CephFS where you want to delete the subvolume snapshot.
- Go to the Directories tab.
- Select the snapshot you want to delete. You can see list of snapshots in the Snapshot row.
- Click 'Delete'.
- Check the box Yes, I am sure to confirm you want to delete the snapshot.
Click Delete CephFS Snapshot.
A notification is displayed that the snapshot is deleted successfully.
13.5. Scheduling CephFS snapshots
As a storage administrator, you can schedule Ceph File System (CephFS) snapshots on the Red Hat Ceph Storage dashboard.
Scheduling Ceph File System (CephFS) snapshots ensures consistent reliable backups at regular intervals, reducing the risk of data loss. Scheduling snapshots also provides ease of management by reducing administrative overhead of manually managing backups.
A list of available snapshots for a particular file system, subvolume, or directory is found on the File > File Systems page. Use the snapshot list for creating scheduled backups.
13.5.1. Creating CephFS snapshot schedule
As a storage administrator, you can create Ceph File System (CephFS) snapshot schedules on the Red Hat Ceph Storage dashboard.
Create a policy for automatic creation of Ceph File System (CephFS) snapshot of a volume or a certain directory. You can also define how often you want to schedule it (for example: every hour, every day, every week, etc.)
You can specify the number of snapshots or a period for which you want to keep the snapshots. All the older snapshots are deleted when the number of snapshots exceeds or when the retention period is over
Prerequisites
- A running Red Hat Ceph Storage cluster.
Procedure
From the dashboard navigation, go to File > File Systems.
File system volumes are listed. Select the file system where you want to create the snapshot schedule.
Go to Snapshot schedules tab.
NoteThe Enable is available only if the
snapshot_scheduler
is disabled on the cluster. .. Optional: Click Enable to enable thesnapshot_scheduler
module. .. After enabling the scheduler, wait for the dashboard to reload and navigate back to the Snapshot schedule page. .. Click 'Create'.+ The Create Snapshot schedule form opens.
Enter the directory name, start date, start time, and schedule.
- Directory: You can search by typing in the path of the directory or subvolume and select the directory from the suggested list where you want to create the snapshot schedule.
- Start date: Enter date on which you want the scheduler to start creating the snapshots. By default the current date is selected.
- Start time: Enter the time at which you want the scheduler to start creating the snapshots. By default the current time is added.
- Schedule: Enter the number of snapshots and the frequency at which you want to create the snapshots. Frequency can be hourly, daily, weekly, monthly, yearly or lastest snapshots.
- Optional: Click Add retention policy if you want to add retention policy to the schedule. You can add multiple retention policies. Enter the number of snapshots and the frequency at which you want to retain the snapshots. Frequency can be hourly, daily, weekly, monthly, yearly or lastest snapshots.
Click Create snapshot schedule.
A notification is displayed that the snapshot schedule is created successfully.
13.5.2. Editing CephFS snapshot schedule
As a storage administrator, you can edit Ceph File System (CephFS) snapshot schedules on the IBM Storage Ceph dashboard. You can only edit the retention policy of the snapshot schedule. You can add another retention policy or delete the existing policy.
Prerequisites
- A running Red Hat Ceph Storage cluster.
Procedure
- From the dashboard navigation, go to File > File Systems.
- Select the CephFS where you want to edit snapshot schedules and click Snapshot schedules.
- Select the snapshot schedule that you want to edit.
- Click 'Edit'. An Edit Snapshot schedule dialog box appears.
Optional: From the Edit Snapshot schedule dialog, add a schedule retention policy, by selecting Add retention policy.
Enter the number of snapshots and the frequency at which you want to retain the snapshots. Frequency can be one of the following. .. Weekly or lastest snapshots. For example, enter the number of snapshots as 10 and select 'latest snapshots' to retain last 10 snapshots irrespective of the frequency at which they were created. .. Daily .. Hourly .. Monthly .. Yearly
Click 'Edit snapshot schedule' to save.
A notification is displayed that the retention policy is created successfully.
Click the trash icon to delete the existing retention policy.
A notification is displayed that the retention policy is deleted successfully.
13.5.3. Deleting CephFS snapshot schedule
As a storage administrator, you can delete Ceph File System (CephFS) snapshot schedules on the IBM Storage Ceph dashboard.
Prerequisites
- A running Red Hat Ceph Storage cluster.
- A snapshot schedule.
Procedure
- From the dashboard navigation, go to File > File Systems.
- Select the CephFS where you want to edit snapshot schedules.
- Click 'Snapshot schedules'.
- Select the snapshot schedule that you want to delete.
- Click 'Edit' from the dropdown menu.
Click 'Delete'.
A Delete Snapshot schedule dialog box appears.
- Select Yes, I am sure to confirm if you want to delete the schedule.
Click 'Delete' snapshot schedule.
A notification is displayed that the snapshot schedule is deleted successfully.
13.5.4. Deactivating and activating CephFS snapshot schedule
As a storage administrator, you can deactivate and activate Ceph File System (CephFS) snapshot schedules on the IBM Storage Ceph dashboard. The snapshot schedule is activated by default and runs according to how it is configured. Deactivating excludes the snapshot from scheduling until it is activated again.
Prerequisites
- A running Red Hat Ceph Storage cluster.
- A snapshot schedule.
Procedure
- From the dashboard navigation, go to File > File Systems.
- Select the CephFS where you want to edit snapshot schedules.
- Click 'Snapshot schedules'.
- Select the snapshot schedule that you want to deactivate and click 'Deactivate' from the action drop-down.
- Select Yes, I am sure to confirm if you want to deactivate the schedule.
Click 'Deactivate snapshot schedule'.
A notification is displayed that the snapshot schedule is deactivated successfully.
- You can activate the snapshot schedule by clicking 'Activate' in the action drop-down.