summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Virtanen <tv@inktank.com>2012-10-03 10:13:17 -0700
committerTommi Virtanen <tv@inktank.com>2012-10-05 15:43:18 -0700
commit4c3997dc8bbd3985a7b86d8c54b71fbe15af1591 (patch)
tree45ffa6179b060778a6a2957c1353e37eb6de0133
parenta6229b901785ef0a88d1b1886b5b5ae339ac7fcb (diff)
downloadceph-4c3997dc8bbd3985a7b86d8c54b71fbe15af1591.tar.gz
ceph-disk-{prepare,activate}: Default mkfs arguments and mount options.
The values for the settings were copied from teuthology task "ceph". Signed-off-by: Tommi Virtanen <tv@inktank.com>
-rwxr-xr-xsrc/ceph-disk-activate12
-rwxr-xr-xsrc/ceph-disk-prepare10
2 files changed, 16 insertions, 6 deletions
diff --git a/src/ceph-disk-activate b/src/ceph-disk-activate
index ddfadebdfeb..e3b26e15b1e 100755
--- a/src/ceph-disk-activate
+++ b/src/ceph-disk-activate
@@ -347,11 +347,13 @@ def get_conf(cluster, variable):
MOUNT_OPTIONS = dict(
- # this is default ever since linux 2.6.39 / 3.0, but we'll delay a
- # moment before removing it fully because we did have some issues
- # with ext4 before the xatts-in-leveldb work, and it seemed that
- # user_xattr helped
- ext4='user_xattr',
+ btrfs='noatime,user_subvol_rm_allowed',
+ # user_xattr is default ever since linux 2.6.39 / 3.0, but we'll
+ # delay a moment before removing it fully because we did have some
+ # issues with ext4 before the xatts-in-leveldb work, and it seemed
+ # that user_xattr helped
+ ext4='noatime,user_xattr',
+ xfs='noatime',
)
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',
],
)