Creating a file system subvolume group

Learn how to create a Ceph File System (CephFS) subvolume group.

About this task

Note:
  • When creating a subvolume group, you can specify its data pool layout, UID, GID, and file mode in octal numerals. By default, the subvolume group is created with an octal file mode ‘755’, uid ‘0’, gid ‘0’, and data pool layout of its parent directory.
  • To set quotas while creating a subvolume group, see Setting and managing quotas on a file system subvolume group.

Procedure

Create a CephFS subvolume group.
ceph fs subvolumegroup create VOLUME_NAME GROUP_NAME [--pool_layout DATA_POOL_NAME --uid UID --gid GID --mode OCTAL_MODE]
For example,
[ceph: root@host01 /]# ceph fs subvolumegroup create cephfs01 subgroup0
The command succeeds even if the subvolume group already exists.