惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
人人都是产品经理
人人都是产品经理
大猫的无限游戏
大猫的无限游戏
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
博客园 - 聂微东
S
SegmentFault 最新的问题
量子位
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页

OneUptime Blog

How to Monitor Azure App Services (PaaS) with OpenTelemetry Grafana Stack vs OneUptime: DIY Observability or Unified Platform? Your AI Workloads Are About to Blow Up Your Observability Bill The Great Observability Consolidation Is Here How to Write Custom Object Classes for Ceph How to Write Custom Ceph Manager Modules How to Write a ceph.conf Configuration File How to Use Rook-Ceph with OpenShift How to Use Rook-Ceph with Longhorn for Comparison How to Configure Volume Snapshot Class for RBD in Rook How to Configure VolumeReplicationClass Scheduling Intervals in Rook How to Set Up Volume Replication with Rook-Ceph How to Create Volume Group Snapshots with Rook CSI How to Visualize Ceph Network Performance in Grafana How to Enable Virtual Host-Style Bucket Access in Rook How to View Runtime Configuration via Admin Socket How to View Quota Settings and Update Stats in Ceph RGW How to View PG Scaling Recommendations with autoscale-status How to View PG Distribution via Admin Socket How to View Performance Metrics in the Ceph Dashboard How to View OSD Performance Counters in Ceph How to View Connection Status via Admin Socket How to View Ceph Cluster Summary Dashboard via CLI How to Version Control Rook-Ceph Configuration How to Version Control Ceph Infrastructure with Terraform How to Verify Kubernetes Node Requirements for Rook-Ceph Deployment How to Verify Health Before and After Rook Upgrades How to Verify Data Integrity with Deep Scrubbing How to Verify Complete Rook-Ceph Cleanup How to Verify Backup Integrity from Ceph Snapshots
How to Use MinIO Client (mc) with Ceph RGW
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

Overview

The MinIO Client (mc) is a fast, feature-rich CLI tool for S3-compatible object storage. It supports Ceph RGW natively by registering it as a custom alias. mc provides additional capabilities like real-time event watching, mirroring, and admin operations compared to the AWS CLI.

Install mc

# Linux
curl https://dl.min.io/client/mc/release/linux-amd64/mc \
  -o /usr/local/bin/mc
chmod +x /usr/local/bin/mc

# macOS
brew install minio/stable/mc

Register Ceph RGW as an mc Alias

mc alias set ceph \
  http://rook-ceph-rgw-my-store.rook-ceph:80 \
  myaccesskey \
  mysecretkey \
  --api S3v4

Verify the connection:

mc ls ceph

Bucket Operations

Create a bucket:

mc mb ceph/my-bucket

List buckets:

mc ls ceph

Remove an empty bucket:

mc rb ceph/my-bucket

Remove a bucket and all its contents:

mc rb ceph/my-bucket --force

File Operations

Upload a file:

mc cp /tmp/report.pdf ceph/my-bucket/reports/report.pdf

Download a file:

mc cp ceph/my-bucket/reports/report.pdf /tmp/

Upload a directory recursively:

mc cp --recursive /var/data/ ceph/my-bucket/data/

Mirror Data

Continuously mirror a local directory to Ceph:

mc mirror /var/backups/ ceph/my-bucket/backups/ \
  --watch \
  --remove

Watch for Events

Watch a bucket for object creation events in real time:

mc watch ceph/my-bucket

Manage Bucket Policies

Set a public read policy:

mc anonymous set download ceph/my-bucket/public/

Get current policy:

mc anonymous get ceph/my-bucket

Summary

mc provides a powerful alternative to the AWS CLI for managing Ceph RGW object storage, with extras like live mirroring and bucket event watching. After registering Ceph as an alias, all standard S3 operations work immediately with a clean, intuitive command syntax.