+2 votes
10 views
in Cloud by
There are three near-full OSDs and three pools marked as near-full in Ceph, showing warnings. What does this mean, and how can it be fixed?

1 Answer

+5 votes
by
 
Best answer

When Ceph indicates that OSDs (Object Storage Daemons) are near-full, it means that these OSDs are approaching their capacity limits. This can lead to performance degradation and potential data loss if not addressed. Here's what you can do to resolve this issue:

1. Check the OSD Capacity

  • Use the following command to check the status of your OSDs:

    ceph osd df

  • This will show you the available, used, and total space for each OSD.

2. Increase OSD Capacity

  • Add More OSDs: If possible, consider adding additional OSDs to your cluster to increase storage capacity.
  • Expand Existing OSDs: If you have the ability, you could expand the disks in use by your OSDs, assuming you're using a RAID configuration or similar.

3. Rebalance the Data

  • Reweight OSDs: If certain OSDs are overutilized, you can adjust their weights to redistribute data:

    ceph osd reweight osd.<id> <new_weight>

  • Manual Rebalance: After reweighting, you might want to trigger a manual rebalancing of the cluster.

4. Clean Up Unused Data

  • Remove Unused Pools or Objects: If there are pools or objects that are no longer needed, consider deleting them to free up space.
  • Check for Snapshots: Review and delete any unnecessary snapshots, as they can consume additional space.
...