summaryrefslogtreecommitdiff
path: root/src/ceph-disk-prepare
diff options
context:
space:
mode:
Diffstat (limited to 'src/ceph-disk-prepare')
-rwxr-xr-xsrc/ceph-disk-prepare10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ceph-disk-prepare b/src/ceph-disk-prepare
index 74b07155ffe..d6ca516ed78 100755
--- a/src/ceph-disk-prepare
+++ b/src/ceph-disk-prepare
@@ -99,15 +99,23 @@ def get_fsid(cluster):
DEFAULT_FS_TYPE = 'ext4'
MOUNT_OPTIONS = dict(
- ext4='user_xattr',
+ btrfs='noatime,user_subvol_rm_allowed',
+ ext4='noatime,user_xattr',
+ xfs='noatime',
)
MKFS_ARGS = dict(
+ btrfs=[
+ '-m', 'single',
+ '-l', '32768',
+ '-n', '32768',
+ ],
xfs=[
# xfs insists on not overwriting previous fs; even if we wipe
# partition table, we often recreate it exactly the same way,
# so we'll see ghosts of filesystems past
'-f',
+ '-i', 'size=2048',
],
)