> 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)
