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

推荐订阅源

S
SegmentFault 最新的问题
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security Blog
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
博客园_首页
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
T
The Blog of Author Tim Ferriss
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
P
Proofpoint News Feed
博客园 - 司徒正美
有赞技术团队
有赞技术团队
Engineering at Meta
Engineering at Meta
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog

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.