.B cmds
[ \fB\-\-mds\fI rank\fP ]
[ \fB\-\-shadow\fI rank\fP ]
-[ \fB\-c\fI ceph.conf\fP ]
.SH DESCRIPTION
.B cmds
is the metadata server daemon for the Ceph distributed file system.
Useful when run via
.BR crun (8).
.TP
-\fB\-c\fI ceph.conf\fR or \fB\-\-conf_file\fI ceph.conf\fP
+\fB\-c\fI ceph.conf\fR, \fB\-\-conf=\fIceph.conf\fR
Use \fIceph.conf\fP configuration file instead of the default \fI/etc/ceph/ceph.conf\fP
for runtime configuration options.
+.TP
+\fB\-C\fI cluster.conf\fR, \fB\-\-cluster-conf=\fIcluster.conf\fR
+Use \fIcluster.conf\fP cluster configuration file instead of the default \fI/etc/ceph/cluster.conf\fP
+to determine monitor addresses during startup.
.SH AVAILABILITY
.B cmon
is part of the Ceph distributed file system. Please refer to the Ceph wiki at
.SH SYNOPSIS
.B cmon
\fImondatapath\fP
-[ \fB\-c\fI ceph.conf\fP ]
.SH DESCRIPTION
.B cmon
is the cluster monitor daemon for the Ceph distributed file system.
Useful when run via
.BR crun (8).
.TP
-\fB\-c\fI ceph.conf\fR or \fB\-\-conf_file\fI ceph.conf\fP
+\fB\-c\fI ceph.conf\fR, \fB\-\-conf=\fIceph.conf\fR
Use \fIceph.conf\fP configuration file instead of the default \fI/etc/ceph/ceph.conf\fP
for runtime configuration options.
+.TP
+\fB\-C\fI cluster.conf\fR, \fB\-\-cluster-conf=\fIcluster.conf\fR
+Use \fIcluster.conf\fP cluster configuration file instead of the default \fI/etc/ceph/cluster.conf\fP
+to determine monitor addresses during startup.
.SH AVAILABILITY
.B cmon
is part of the Ceph distributed file system. Please refer to the Ceph wiki at
.B cosd
\fIdatapath\fP
[ \fB\-j\fI journal\fP ]
-[ \fB\-c\fI ceph.conf\fP ]
[ \fB\-\-mkfs_for_osd\fI nodeid\fP ]
.SH DESCRIPTION
.B cosd
invoked by
.BR mkcephfs (8).
.TP
-\fB\-c\fI ceph.conf\fR or \fB\-\-conf_file\fI ceph.conf\fP
+\fB\-c\fI ceph.conf\fR, \fB\-\-conf=\fIceph.conf\fR
Use \fIceph.conf\fP configuration file instead of the default \fI/etc/ceph/ceph.conf\fP
for runtime configuration options.
+.TP
+\fB\-C\fI cluster.conf\fR, \fB\-\-cluster-conf=\fIcluster.conf\fR
+Use \fIcluster.conf\fP cluster configuration file instead of the default \fI/etc/ceph/cluster.conf\fP
+to determine monitor addresses during startup.
.SH AVAILABILITY
.B cosd
is part of the Ceph distributed file system. Please refer to the Ceph wiki at
.SH SYNOPSIS
.B cosd
[ \fB\-a\fP ]
-[ \fB\-c\fP\fI cluster.conf\fP ]
+[ \fB\-C\fP\fI cluster.conf\fP ]
[ \fB\-\-clobber_old_data\fP ]
[ \fB\-\-mkbtrfs\fP ]
.SH DESCRIPTION
Performs the necessary initialization steps on all hosts in the cluster,
executing commands via SSH.
.TP
-\fB\-c\fR, \fB\-\-conf_file \fIcluster.conf\fR
+\fB\-C\fI cluster.conf\fR, \fB\-\-cluster-conf=\fIcluster.conf\fR
Use the given cluster conf file instead of the default \fI/etc/ceph/cluster.conf\fP.
.TP
\fB\-\-clobber_old_data\fR
int main(int argc, const char **argv)
{
- const char *fname = g_conf.conf_file;
+ const char *fname = g_conf.conf;
const char *key = NULL, *defval = NULL;
const char *list_sections = 0;
char *val;
OPTION(global, log_sym_dir, 0, STR, INSTALL_PREFIX "/var/log/ceph"), // if daemonize == true
OPTION(global, log_to_stdout, 0, BOOL, true),
OPTION(global, pid_file, 'p', STR, 0),
- OPTION(global, conf_file, 'c', STR, INSTALL_PREFIX "/etc/ceph/ceph.conf"),
- OPTION(global, cluster_conf_file, 'C', STR, INSTALL_PREFIX "/etc/ceph/cluster.conf"),
+ OPTION(global, conf, 'c', STR, INSTALL_PREFIX "/etc/ceph/ceph.conf"),
+ OPTION(global, cluster_conf, 'C', STR, INSTALL_PREFIX "/etc/ceph/cluster.conf"),
OPTION(global, dump_conf, 0, BOOL, false),
OPTION(global, chdir, 0, STR, "/"),
OPTION(global, fake_clock, 0, BOOL, false),
cmd_equals(args[i], str_cmd, char_cmd, &val_pos)
if (CMD_EQ("conf_file", 'c')) {
- SAFE_SET_ARG_VAL(&g_conf.conf_file, STR);
+ SAFE_SET_ARG_VAL(&g_conf.conf, STR);
} else if (CMD_EQ("cluster_conf_file", 'C')) {
- SAFE_SET_ARG_VAL(&g_conf.cluster_conf_file, STR);
+ SAFE_SET_ARG_VAL(&g_conf.cluster_conf, STR);
} else if (CMD_EQ("monmap_file", 'M')) {
SAFE_SET_ARG_VAL(&g_conf.monmap_file, STR);
} else if (CMD_EQ("dump_conf", 0)) {
args.swap(nargs);
nargs.clear();
- ConfFile cf(g_conf.conf_file);
+ ConfFile cf(g_conf.conf);
parse_config_file(&cf, true);
if (g_conf.dump_conf)
void generic_usage()
{
- cerr << " -C cluster.conf\n";
+ cerr << " -C cluster.conf or --cluster-conf=cluster.conf\n";
cerr << " get monitor IP(s) from given conf (instead of /etc/ceph/cluster.conf)\n";
- cerr << " -c ceph.conf\n";
+ cerr << " -c ceph.conf or --conf=ceph.conf\n";
cerr << " get runtime options from given conf file" << std::endl;
}
const char *pid_file;
- const char *conf_file;
- const char *cluster_conf_file;
+ const char *conf;
+ const char *cluster_conf;
bool dump_conf;
const char *chdir;
[global]
pid file = /home/sage/ceph/src/out/$name.pid
restart on core dump = false
- conf file = /home/sage/ceph/src/cosd.ceph.conf
+ conf = /home/sage/ceph/src/cosd.ceph.conf
[mon]
[mon0]
--nobtrfs)
dobtrfs=0
;;
- --conf_file | -c)
+ --conf | -c)
[ "$2" == "" ] && usage_exit
options="$options $1"
shift
check_host || continue
get_conf pid_file "/var/run/ceph/$name.pid" "pid file" $sections
- get_conf conf_file "$runtime_conf" "conf file" $sections
+ get_conf conf "$runtime_conf" "conf" $sections
# extract name-specific options from $conf
if [[ $name =~ "mon" ]]; then
first_dev=`echo $btrfs_devs | cut '-d ' -f 1`
fi
- module_opt="-p $pid_file -c $conf_file $module_opt"
+ module_opt="-p $pid_file -c $conf $module_opt"
case "$command" in
start)
-#!/bin/sh
+-c#!/bin/sh
# if we start up with "./", assume everything else is in the current
# directory too.
--mkbtrfs)
mkbtrfs=1
;;
- --conf_file | -c)
+ --conf | -c)
[ "$2" == "" ] && usage_exit
shift
conf=$1
check_host || continue
- get_conf conf_file "$runtime_conf" "conf file" $sections
+ get_conf conf "$runtime_conf" "conf" $sections
if [[ $ssh = 1 ]] && [[ ! $pushed_to =~ " $host " ]]; then
scp $osdmap $host:$osdmap
fi
[[ $ssh != "" ]] && scp $monmap $host:$monmap
- do_cmd "$BINDIR/cosd -c $conf_file --monmap_file $monmap --mkfs_for_osd $num $osd_path"
+ do_cmd "$BINDIR/cosd -c $conf --monmap_file $monmap --mkfs_for_osd $num $osd_path"
fi
if [[ $type = "mds" ]]; then
if (!g_conf.mon_host) {
// cluster conf?
- ConfFile a(g_conf.cluster_conf_file);
+ ConfFile a(g_conf.cluster_conf);
ConfFile b("cluster.conf");
ConfFile *c = 0;
; global
[global]
- conf file = ceph.conf
+ conf = ceph.conf
restart on core dump = true
; monitor