# The Comprehensive Ceph Guide · راهنمای جامع Ceph > The Comprehensive Ceph Guide (Persian: راهنمای جامع Ceph) is a bilingual open handbook (Persian original, English translation) by Ramin Najarbashi. It covers Ceph operations through the source and on-disk layout, kept current for Reef, Squid, Tentacle and Umbrella (version 1.8). The text is licensed under CC BY-NC-SA 4.0. Concept DOI: https://doi.org/10.5281/zenodo.24253822. Each HTML page has a Markdown alternate at the same path with a `.md` extension (`rel="alternate" type="text/markdown"`). Prefer those files, or the full-text dumps below, when citing or indexing this book. Licence: [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/). ## English edition - [Preface](https://book.ceph-s3.ir/en/preface.md): Preface - [Chapter 1. Ceph: A New Era — Architecture, Planning and Your First Cluster](https://book.ceph-s3.ir/en/01-introduction-and-first-cluster.md) - [Chapter 2. Working with the Ceph Block Device (RBD)](https://book.ceph-s3.ir/en/02-block-device-rbd.md) - [Chapter 3. Ceph and OpenStack](https://book.ceph-s3.ir/en/03-openstack.md) - [Chapter 4. Object Storage with the RADOS Gateway](https://book.ceph-s3.ir/en/04-object-storage-rgw.md) - [Chapter 5. Multi-Site Object Storage with RGW Multi-Site](https://book.ceph-s3.ir/en/05-rgw-multisite.md) - [Chapter 6. The Ceph File System (CephFS)](https://book.ceph-s3.ir/en/06-cephfs.md) - [Chapter 7. Operating and Managing a Ceph Cluster](https://book.ceph-s3.ir/en/07-cluster-operations.md) - [Chapter 8. Ceph Under the Hood: CRUSH, Maps, Authentication and PGs](https://book.ceph-s3.ir/en/08-under-the-hood.md) - [Chapter 9. From VSM to the Ceph Dashboard: Graphical Cluster Management](https://book.ceph-s3.ir/en/09-dashboard.md) - [Chapter 10. Benchmarking and Expert Tools for Ceph](https://book.ceph-s3.ir/en/10-benchmarking.md) - [Chapter 11. Deploying Ceph: Lab, cephadm, Ansible and Rook](https://book.ceph-s3.ir/en/11-deployment.md) - [Chapter 12. BlueStore: The OSD Storage Engine](https://book.ceph-s3.ir/en/12-bluestore.md) - [Chapter 13. Erasure Coding for Storage Efficiency](https://book.ceph-s3.ir/en/13-erasure-coding.md) - [Chapter 14. Programming with librados](https://book.ceph-s3.ir/en/14-librados.md) - [Chapter 15. RADOS Classes: Computing Next to the Data](https://book.ceph-s3.ir/en/15-rados-classes.md) - [Chapter 16. Storage Tiering: From Cache Tiering to Device Classes and Storage Classes](https://book.ceph-s3.ir/en/16-tiering.md) - [Chapter 17. Troubleshooting Ceph: From HEALTH_WARN to the Peering State Machine](https://book.ceph-s3.ir/en/17-troubleshooting.md) - [Chapter 18. Disaster Recovery: rbd-mirror, Stretch Mode and Cluster Rescue](https://book.ceph-s3.ir/en/18-disaster-recovery.md) - [Chapter 19. Day-to-Day Operations: Upgrades, Disk Replacement, Autoscaler and Balancer](https://book.ceph-s3.ir/en/19-operations-maintenance.md) - [Chapter 20. Monitoring Ceph: Prometheus, ceph-exporter, Alerts and Observability](https://book.ceph-s3.ir/en/20-monitoring.md) - [Chapter 21. Ceph Performance Tuning: From mClock to the Kernel and Network](https://book.ceph-s3.ir/en/21-performance-tuning.md) - [Chapter 22. Ceph Code Architecture and the Request Path from the Inside](https://book.ceph-s3.ir/en/22-code-architecture.md) - [Chapter 23. Lower Layers (1): Block Device, bufferlist, mempool and crc32c](https://book.ceph-s3.ir/en/23-low-block-device-bufferlist.md) - [Chapter 24. Lower Layers (2): BlueStore and BlueFS On-Disk Format](https://book.ceph-s3.ir/en/24-low-bluestore-on-disk.md) - [Chapter 25. Lower Layers (3): RocksDB Inside BlueStore](https://book.ceph-s3.ir/en/25-low-rocksdb.md) - [Chapter 26. Lower Layers (4): msgr2 at the Byte Level, AsyncConnection and EventCenter](https://book.ceph-s3.ir/en/26-low-msgr2.md) - [Chapter 27. Lower Layers (5): Erasure-Coding Math, from GF(2⁸) to FastEC](https://book.ceph-s3.ir/en/27-low-ec-math.md) - [Chapter 28. Lower Layers (6): CRUSH at the Bit Level, from rjenkins to upmap](https://book.ceph-s3.ir/en/28-low-crush-bits.md) - [Chapter 29. Lower Layers (7): Linux Kernel Clients — libceph, krbd and ceph.ko](https://book.ceph-s3.ir/en/29-low-kernel-clients.md) - [Chapter 30. Lower Layers (8): Crimson and Seastar — Shard-per-Core OSD and SeaStore](https://book.ceph-s3.ir/en/30-low-crimson-seastore.md) - [Chapter 31. Lower Layers (9): SPDK and NVMe — from Hardware Queues to the NVMe-oF Gateway](https://book.ceph-s3.ir/en/31-low-spdk-nvme.md) - [Chapter 32. Lower Layers (10): Scrub, Recovery, Backfill and Repair at Code Level](https://book.ceph-s3.ir/en/32-low-scrub-recovery.md) - [Chapter 33. Lower Layers (11): Memory and CPU Inside the OSD — from mempool to NUMA and Profiling](https://book.ceph-s3.ir/en/33-low-memory-cpu.md) - [Chapter 34. Specialist Part (1): RADOS — Object Identity, Metadata and the Op Path Inside the OSD](https://book.ceph-s3.ir/en/34-spec-rados-objects-op-path.md) - [Chapter 35. Specialist Part (2): RADOS — The PG Log, Intervals, Missing Sets, and How Recovery and Backfill Work](https://book.ceph-s3.ir/en/35-spec-rados-log-intervals-recovery.md) - [Chapter 36. Specialist Part (3): RADOS — Snapshots and Clones, Watch/Notify, OSD-Side cls, and the rados and pool Reference](https://book.ceph-s3.ir/en/36-spec-rados-snapshots-watch-cls.md) - [Chapter 37. Specialist Part (4): RBD — Layout on RADOS, Striping, Object Map and Fast-Diff, and the rbd Reference](https://book.ceph-s3.ir/en/37-spec-rbd-layout-striping-objectmap.md) - [Chapter 38. Specialist Part (5): RBD — The librbd I/O Path, Layering and Copyup, Exclusive Lock, Caches and QoS](https://book.ceph-s3.ir/en/38-spec-librbd-io-lock-cache.md) - [Chapter 39. Specialist Part (6): RBD — Inside rbd-mirror: Journal versus Snapshot](https://book.ceph-s3.ir/en/39-spec-rbd-mirror-internals.md) - [Chapter 40. Specialist Part (7): RGW — The Data Model on RADOS: Metadata, Bucket Index, Versioning, Manifest and Multipart](https://book.ceph-s3.ir/en/40-spec-rgw-rados-data-model.md) - [Chapter 41. Specialist Part (8): RGW — The Request Path, SigV4, Quotas, Rate Limits, GC and Lifecycle](https://book.ceph-s3.ir/en/41-spec-rgw-request-path-gc-lc.md) - [Chapter 42. Specialist Part (9): RGW — Inside Multisite: Periods, Log Formats, Bucket Generations and the Sync Engine](https://book.ceph-s3.ir/en/42-spec-rgw-multisite-internals.md) ### English appendices - [Appendix A. English Glossary](https://book.ceph-s3.ir/en/glossary.md) - [Appendix B. Command Cheat Sheet](https://book.ceph-s3.ir/en/cheatsheet.md) - [Appendix C. Troubleshooting Guide: From Symptom to Action](https://book.ceph-s3.ir/en/troubleshooting.md) - [Appendix D. Ceph Release Table](https://book.ceph-s3.ir/en/versions.md) - [Appendix E. Answers to Review Questions](https://book.ceph-s3.ir/en/answers.md) - [Appendix F. Bibliography and Official Sources](https://book.ceph-s3.ir/en/bibliography.md) - [Appendix G. List of Algorithms](https://book.ceph-s3.ir/en/algorithms.md) - [Appendix H. Changes in Reef, Squid and Tentacle](https://book.ceph-s3.ir/en/changes.md) - [Appendix I. Upgrade Guide: From Reef to Squid and Tentacle](https://book.ceph-s3.ir/en/upgrade.md) - [Appendix J. RGW Security: From Threat Model to Hardening](https://book.ceph-s3.ir/en/security.md) - [Appendix K. Multisite and Disaster Recovery: A Practical Guide](https://book.ceph-s3.ir/en/multisite-dr.md) - [Appendix L. Command-Line Reference: Every Command and Option](https://book.ceph-s3.ir/en/cli-reference.md) ## Persian edition (متن اصلی) - [مقدمه](https://book.ceph-s3.ir/fa/preface.md): مقدمه - [فصل ۱. Ceph: آغاز دورانی تازه — معماری، برنامه‌ریزی و نخستین کلاستر](https://book.ceph-s3.ir/fa/01-introduction-and-first-cluster.md) - [فصل ۲. کار با Ceph Block Device (RBD)](https://book.ceph-s3.ir/fa/02-block-device-rbd.md) - [فصل ۳. Ceph و OpenStack](https://book.ceph-s3.ir/fa/03-openstack.md) - [فصل ۴. ذخیره‌سازی شیء با RADOS Gateway](https://book.ceph-s3.ir/fa/04-object-storage-rgw.md) - [فصل ۵. ذخیره‌سازی شیء چندسایتی با RGW Multi-Site](https://book.ceph-s3.ir/fa/05-rgw-multisite.md) - [فصل ۶. سامانه‌ی فایل Ceph (CephFS)](https://book.ceph-s3.ir/fa/06-cephfs.md) - [فصل ۷. راهبری و مدیریت کلاستر Ceph](https://book.ceph-s3.ir/fa/07-cluster-operations.md) - [فصل ۸. Ceph از درون: CRUSH، نقشه‌ها، احراز هویت و PGها](https://book.ceph-s3.ir/fa/08-under-the-hood.md) - [فصل ۹. از VSM تا Ceph Dashboard: مدیریت گرافیکی کلاستر](https://book.ceph-s3.ir/fa/09-dashboard.md) - [فصل ۱۰. سنجش کارایی و ابزارهای کارشناسی Ceph](https://book.ceph-s3.ir/fa/10-benchmarking.md) - [فصل ۱۱. استقرار Ceph: آزمایشگاه، cephadm، Ansible و Rook](https://book.ceph-s3.ir/fa/11-deployment.md) - [فصل ۱۲. BlueStore: موتور ذخیره‌سازی OSD](https://book.ceph-s3.ir/fa/12-bluestore.md) - [فصل ۱۳. کدگذاری پاک‌شونده (Erasure Coding) برای بهره‌وری ذخیره‌سازی](https://book.ceph-s3.ir/fa/13-erasure-coding.md) - [فصل ۱۴. برنامه‌نویسی با librados](https://book.ceph-s3.ir/fa/14-librados.md) - [فصل ۱۵. کلاس‌های RADOS: محاسبه در کنار داده](https://book.ceph-s3.ir/fa/15-rados-classes.md) - [فصل ۱۶. لایه‌بندی ذخیره‌سازی: از Cache Tiering تا Device Class و Storage Class](https://book.ceph-s3.ir/fa/16-tiering.md) - [فصل ۱۷. عیب‌یابی Ceph: از HEALTH_WARN تا ماشین حالت Peering](https://book.ceph-s3.ir/fa/17-troubleshooting.md) - [فصل ۱۸. بازیابی از فاجعه: rbd-mirror، stretch mode و نجات کلاستر](https://book.ceph-s3.ir/fa/18-disaster-recovery.md) - [فصل ۱۹. راهبری و نگه‌داری روزمره: ارتقا، جایگزینی دیسک، autoscaler و balancer](https://book.ceph-s3.ir/fa/19-operations-maintenance.md) - [فصل ۲۰. پایش Ceph: Prometheus، ceph-exporter، هشدارها و مشاهده‌پذیری](https://book.ceph-s3.ir/fa/20-monitoring.md) - [فصل ۲۱. تنظیم کارایی Ceph: از mClock تا هسته و شبکه](https://book.ceph-s3.ir/fa/21-performance-tuning.md) - [فصل ۲۲. معماری کد Ceph و مسیر درخواست‌ها از درون](https://book.ceph-s3.ir/fa/22-code-architecture.md) - [فصل ۲۳. لایه‌های پایینی (۱): دستگاه بلوکی، bufferlist، mempool و crc32c](https://book.ceph-s3.ir/fa/23-low-block-device-bufferlist.md) - [فصل ۲۴. لایه‌های پایینی (۲): قالب روی‌دیسک BlueStore و BlueFS](https://book.ceph-s3.ir/fa/24-low-bluestore-on-disk.md) - [فصل ۲۵. لایه‌های پایینی (۳): RocksDB درون BlueStore](https://book.ceph-s3.ir/fa/25-low-rocksdb.md) - [فصل ۲۶. لایه‌های پایینی (۴): msgr2 در سطح بایت، AsyncConnection و EventCenter](https://book.ceph-s3.ir/fa/26-low-msgr2.md) - [فصل ۲۷. لایه‌های پایینی (۵): ریاضیات erasure coding، از GF(2⁸) تا FastEC](https://book.ceph-s3.ir/fa/27-low-ec-math.md) - [فصل ۲۸. لایه‌های پایینی (۶): CRUSH در سطح بیت، از rjenkins تا upmap](https://book.ceph-s3.ir/fa/28-low-crush-bits.md) - [فصل ۲۹. لایه‌های پایینی (۷): کلاینت‌های هسته‌ی لینوکس، libceph، krbd و ceph.ko](https://book.ceph-s3.ir/fa/29-low-kernel-clients.md) - [فصل ۳۰. لایه‌های پایینی (۸): Crimson و Seastar، OSD تک‌هسته‌ای و SeaStore](https://book.ceph-s3.ir/fa/30-low-crimson-seastore.md) - [فصل ۳۱. لایه‌های پایینی (۹): SPDK و NVMe، از صف‌های سخت‌افزاری تا درگاه NVMe-oF](https://book.ceph-s3.ir/fa/31-low-spdk-nvme.md) - [فصل ۳۲. لایه‌های پایینی (۱۰): scrub، recovery، backfill و repair در سطح کد](https://book.ceph-s3.ir/fa/32-low-scrub-recovery.md) - [فصل ۳۳. لایه‌های پایینی (۱۱): حافظه و CPU درون OSD، از mempool تا NUMA و پروفایل‌گیری](https://book.ceph-s3.ir/fa/33-low-memory-cpu.md) - [فصل ۳۴. بخش تخصصی (۱): RADOS — هویت شیء، فراداده و مسیر op درون OSD](https://book.ceph-s3.ir/fa/34-spec-rados-objects-op-path.md) - [فصل ۳۵. بخش تخصصی (۲): RADOS — pg log، intervalها، missing و سازوکار recovery و backfill](https://book.ceph-s3.ir/fa/35-spec-rados-log-intervals-recovery.md) - [فصل ۳۶. بخش تخصصی (۳): RADOS — snapshot و clone، watch/notify و cls در سمت OSD، و مرجع rados و pool](https://book.ceph-s3.ir/fa/36-spec-rados-snapshots-watch-cls.md) - [فصل ۳۷. بخش تخصصی (۴): RBD — چیدمان روی RADOS، striping، object map و fast-diff، و مرجع rbd](https://book.ceph-s3.ir/fa/37-spec-rbd-layout-striping-objectmap.md) - [فصل ۳۸. بخش تخصصی (۵): RBD — مسیر I/O در librbd، layering و copyup، exclusive-lock، cache و QoS](https://book.ceph-s3.ir/fa/38-spec-librbd-io-lock-cache.md) - [فصل ۳۹. بخش تخصصی (۶): RBD — درون rbd-mirror: journal در برابر snapshot](https://book.ceph-s3.ir/fa/39-spec-rbd-mirror-internals.md) - [فصل ۴۰. بخش تخصصی (۷): RGW — مدل داده روی RADOS: فراداده، bucket index، نسخه‌بندی، manifest و multipart](https://book.ceph-s3.ir/fa/40-spec-rgw-rados-data-model.md) - [فصل ۴۱. بخش تخصصی (۸): RGW — مسیر درخواست، SigV4، سهمیه، محدودیت نرخ، gc و lifecycle](https://book.ceph-s3.ir/fa/41-spec-rgw-request-path-gc-lc.md) - [فصل ۴۲. بخش تخصصی (۹): RGW — درون multisite: period، قالب لاگ‌ها، نسل‌های bucket و موتور همگام‌سازی](https://book.ceph-s3.ir/fa/42-spec-rgw-multisite-internals.md) ### پیوست‌های فارسی - [پیوست الف. واژه‌نامه‌ی انگلیسی-فارسی](https://book.ceph-s3.ir/fa/glossary.md) - [پیوست ب. برگه‌ی تقلب دستورها](https://book.ceph-s3.ir/fa/cheatsheet.md) - [پیوست ج. راهنمای عیب‌یابی: از نشانه تا اقدام](https://book.ceph-s3.ir/fa/troubleshooting.md) - [پیوست د. جدول نسخه‌های Ceph](https://book.ceph-s3.ir/fa/versions.md) - [پیوست ه. پاسخ پرسش‌های مرور](https://book.ceph-s3.ir/fa/answers.md) - [پیوست و. کتاب‌نامه و منابع رسمی](https://book.ceph-s3.ir/fa/bibliography.md) - [پیوست ز. فهرست الگوریتم‌ها](https://book.ceph-s3.ir/fa/algorithms.md) - [پیوست ح. تغییرات Reef، Squid و Tentacle](https://book.ceph-s3.ir/fa/changes.md) - [پیوست ط. راهنمای ارتقا: از Reef تا Squid و Tentacle](https://book.ceph-s3.ir/fa/upgrade.md) - [پیوست ی. امنیت RGW: از مدل تهدید تا مقاوم‌سازی](https://book.ceph-s3.ir/fa/security.md) - [پیوست ک. راهنمای عملی multisite و بازیابی از فاجعه](https://book.ceph-s3.ir/fa/multisite-dr.md) - [پیوست ل. مرجع خط فرمان: همه‌ی دستورها و گزینه‌ها](https://book.ceph-s3.ir/fa/cli-reference.md) ## Full text - [English full text](https://book.ceph-s3.ir/llms-full.txt): the preface, every chapter and every appendix in one file - [Persian full text](https://book.ceph-s3.ir/fa/llms-full.txt): متن کامل فارسی (مقدمه، فصل‌ها و پیوست‌ها) در یک پرونده ## Optional - [English HTML edition](https://book.ceph-s3.ir/en/index.html) - [Persian HTML edition](https://book.ceph-s3.ir/fa/index.html) - [English home (Markdown)](https://book.ceph-s3.ir/en/index.md) - [Persian home (Markdown)](https://book.ceph-s3.ir/fa/index.md) - [Concept DOI](https://doi.org/10.5281/zenodo.24253822) - [Licence: CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) - [Source repository](https://github.com/RaminNietzsche/ceph-scalable-storage)