Skip to content

Instantly share code, notes, and snippets.

@jakoberpf
Last active January 18, 2022 15:20
Show Gist options
  • Save jakoberpf/df63e17a1626916adb2f473bb358df30 to your computer and use it in GitHub Desktop.
Save jakoberpf/df63e17a1626916adb2f473bb358df30 to your computer and use it in GitHub Desktop.

[manual] create ceph filesystem

Configure MDS (MetaData Server) on a Node which you'd like to set MDS. It sets to [node01] on this exmaple.

ceph-deploy mds create node01

Create at least 2 RADOS pools on MDS Node and activate MetaData Server. For pg_num which is specified at the end of a creating command, refer to official document and decide appropriate value. Documentation

# create pools
$ sudo ceph osd pool create cephfs_data 128
pool 'cephfs_data' created
$ sudo ceph osd pool create cephfs_metadata 8
pool 'cephfs_metadata' created
# enable pools
$ sudo ceph fs new cephfs cephfs_metadata cephfs_data
new fs with metadata pool 4 and data pool 3
# show list
$ sudo ceph fs ls
name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]
$ sudo ceph mds stat
cephfs-1/1/1 up {0=node01=up:active}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment