> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/andoid-shou-ji/pomoxve/ceph-object-storage/cephfs.md).

# OSD的pg\_num與CephFS

* 少於5個OSD將pg\_num設置為128
* 在5至10個OSD之間，將pg\_num設置為512
* Between 10 and 20 OSDs set pg\_num to 1024&#x20;
* Between 20 and 40 OSDs set pg\_num to 2048
* 如果您有超過50個OSD，則需要了解折衷方法以及如何自己計算pg\_num值

### ceph osd pool set ceph pg\_num 4096

ceph osd pool set ceph pg\_num 4096 Error ERANGE: pool id 10 pg\_num 4096 size 2 would mean 8192 total pgs, which exceeds max 5250 (mon\_max\_pg\_per\_osd 250 \* num\_in\_osds 21)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/andoid-shou-ji/pomoxve/ceph-object-storage/cephfs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
