From 5fc9a77d97d85f86a8495fcd078a40878bda2b79 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 13 Aug 2017 15:07:07 -0400 Subject: [PATCH] doc/rados/operations/bluestore-migration: use the new 'safe-to-destroy' command Also use 'ceph osd ls-tree' to enumerate the ids. Signed-off-by: Sage Weil (cherry picked from commit 39c02728b7db3537621167f29651aef97184e8e4) --- doc/rados/operations/bluestore-migration.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/rados/operations/bluestore-migration.rst b/doc/rados/operations/bluestore-migration.rst index dafa26a17ef8c..06e526aebf10e 100644 --- a/doc/rados/operations/bluestore-migration.rst +++ b/doc/rados/operations/bluestore-migration.rst @@ -55,7 +55,7 @@ more data migration than should be necessary, so it is not optimal. #. Wait for the data to migrate off the OSD in question:: - while ! ceph health | grep HEALTH_OK ; do sleep 60 ; done + while ! ceph osd safe-to-destroy $ID ; sleep 60 ; done #. Stop the OSD:: @@ -168,7 +168,7 @@ the data migrating only once. #. Wait for data migration to complete:: - while ! ceph health | grep HEALTH_OK ; do sleep 60 ; done + while ! ceph osd safe-to-destroy $(ceph osd ls-tree $OLDHOST); do sleep 60 ; done #. Stop all old OSDs on the now-empty ``$OLDHOST``:: @@ -178,7 +178,7 @@ the data migrating only once. #. Destroy and purge the old OSDs:: - for osd in `ceph osd crush ls $OLDHOST`; do + for osd in `ceph osd ls-tree $OLDHOST`; do ceph osd purge $osd --yes-i-really-mean-it done -- 2.39.5