1 ========================
2 Create a Ceph filesystem
3 ========================
8 A Ceph filesystem requires at least two RADOS pools, one for data and one for metadata.
9 When configuring these pools, you might consider:
11 - Using a higher replication level for the metadata pool, as any data
12 loss in this pool can render the whole filesystem inaccessible.
13 - Using lower-latency storage such as SSDs for the metadata pool, as this
14 will directly affect the observed latency of filesystem operations
17 Refer to :doc:`/rados/operations/pools` to learn more about managing pools. For
18 example, to create two pools with default settings for use with a filesystem, you
19 might run the following commands:
23 $ ceph osd pool create cephfs_data <pg_num>
24 $ ceph osd pool create cephfs_metadata <pg_num>
29 Once the pools are created, you may enable the filesystem using the ``fs new`` command:
33 $ ceph fs new <fs_name> <metadata> <data>
39 $ ceph fs new cephfs cephfs_metadata cephfs_data
41 name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]
43 Once a filesystem has been created, your MDS(s) will be able to enter
44 an *active* state. For example, in a single MDS system:
49 cephfs-1/1/1 up {0=a=up:active}
51 Once the filesystem is created and the MDS is active, you are ready to mount
52 the filesystem. If you have created more than one filesystem, you will
53 choose which to use when mounting.
56 - `Mount CephFS as FUSE`_
58 .. _Mount CephFS: ../../cephfs/kernel
59 .. _Mount CephFS as FUSE: ../../cephfs/fuse
61 If you have created more than one filesystem, and a client does not
62 specify a filesystem when mounting, you can control which filesystem
63 they will see by using the `ceph fs set-default` command.
65 Using Erasure Coded pools with CephFS
66 =====================================
68 You may use Erasure Coded pools as CephFS data pools as long as they have overwrites enabled, which is done as follows:
72 ceph osd pool set my_ec_pool allow_ec_overwrites true
74 Note that EC overwrites are only supported when using OSDS with the BlueStore backend.
76 You may not use Erasure Coded pools as CephFS metadata pools, because CephFS metadata is stored using RADOS *OMAP* data structures, which EC pools cannot store.