Bug #4951 ยป ceph-init.patch
/etc/init.d/ceph2 2013-05-08 16:04:10.205691759 -0400 | ||
---|---|---|
# command line, ceph.conf can override what it wants
|
||
get_conf osd_location "" "osd crush location"
|
||
get_conf osd_weight "" "osd crush initial weight"
|
||
defaultweight=`df /var/lib/ceph/osd/ceph-$id/ | tail -1 | awk '{ d= $2/1073741824 ; r = sprintf("%.2f", d); print r }'`
|
||
get_conf osd_data_location "" "osd data"
|
||
defaultweight=`df $osd_data_location | tail -1 | awk '{ d= $2/1073741824 ; r = sprintf("%.2f", d); print r }'`
|
||
get_conf osd_keyring "/var/lib/ceph/osd/ceph-$id/keyring" "keyring"
|
||
$BINDIR/ceph \
|
||
--name="osd.$id" \
|