Adding a snapshot schedule for CephFS subvolume
Create snapshot schedules and retention policies for directories in a subvolume, subvolume within a default group, and for subvolumes within a non-default group.
Before you begin
- A running and healthy IBM Storage Ceph cluster with Ceph File System (CephFS) deployed.
- A minimum of read access on the Ceph Monitor.
- Read and write capability on the Ceph Manager nodes.
- A CephFS subvolume and subvolume group created.
About this task
Schedules are considered different, if their repeat interval and start times are different.
Add a snapshot schedule for a CephFS file path that does not exist yet. A CephFS path can have only one retention policy, but a retention policy can have multiple count-time period pairs.
- After the scheduler module is enabled, running the ceph fs snap-schedule command displays the available subcommands and their usage format.
- Subvolumes belonging to the default subvolume group and non-default subvolume group can be scheduled for creating snapshots. However, the commands are different.
Procedure
Adding retention policy for snapshot schedules of a CephFS volume path
Before you begin
About this task
To define how many snapshots to retain in the volume path at any time, you must add a retention policy after you have created a snapshot schedule.
You can create retention policies for directories within a subvolume, subvolume in a default group and to the subvolume in a non-default group.
Procedure
Listing CephFS snapshot schedules
Before you begin
About this task
By listing and adhering to snapshot schedules, you can ensure robust data protection and efficient management.
Before you begin
Procedure
ceph fs snap-schedule list SUBVOLUME_PATH [--format=plain|json] [--recursive=true]
[ceph: root@host02 /]# ceph fs snap-schedule list /volumes/subgroup0/sub0/4dee0788-32a0-47e6-ac4b-bd8568a6989b/test_dir --recursive=true /volumes/subgroup0/sub0/4dee0788-32a0-47e6-ac4b-bd8568a6989b/test_dir 1h
Checking status of CephFS snapshot schedules
Before you begin
- Read and write capability on the Ceph Manager nodes.
- A snapshot schedule.
About this task
You can check the status of snapshot schedules using the command in the procedure for snapshots created in a directory of a subvolume, for a subvolume in the default subvolume group and for a subvolume created in a non-default group.
Before you begin
- Read and write capability on the Ceph Manager nodes.
- A snapshot schedule.