mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
vstart.sh: add --filestore_path to direct osd.0 filestore data to specific dir
This hack only works for 1 osd, but it lets you put it on a specific directory/device. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
752b8389da
commit
dddea8cb13
@ -106,6 +106,8 @@ bluestore=0
|
||||
rgw_frontend="civetweb"
|
||||
lockdep=${LOCKDEP:-1}
|
||||
|
||||
filestore_path=
|
||||
|
||||
VSTART_SEC="client.vstart.sh"
|
||||
|
||||
MON_ADDR=""
|
||||
@ -249,6 +251,10 @@ case $1 in
|
||||
rgw_frontend=$2
|
||||
shift
|
||||
;;
|
||||
--filestore_path )
|
||||
filestore_path=$2
|
||||
shift
|
||||
;;
|
||||
-m )
|
||||
[ -z "$2" ] && usage_exit
|
||||
MON_ADDR=$2
|
||||
@ -575,7 +581,11 @@ EOF
|
||||
if command -v btrfs > /dev/null; then
|
||||
for f in $CEPH_DEV_DIR/osd$osd/*; do btrfs sub delete $f &> /dev/null || true; done
|
||||
fi
|
||||
mkdir -p $CEPH_DEV_DIR/osd$osd
|
||||
if [ -n "$filestore_path" ]; then
|
||||
ln -s $filestore_path $CEPH_DEV_DIR/osd$osd
|
||||
else
|
||||
mkdir -p $CEPH_DEV_DIR/osd$osd
|
||||
fi
|
||||
|
||||
local uuid=`uuidgen`
|
||||
echo "add osd$osd $uuid"
|
||||
|
Loading…
Reference in New Issue
Block a user