From 810026f3425afc7ac5faf01c69731412650cca04 Mon Sep 17 00:00:00 2001 From: "Taylor, Stephen (st053q@att.com)" Date: Mon, 20 May 2019 14:26:33 -0500 Subject: [PATCH] [Ceph] Modify CRUSH map for changes to existing deployments This adds the ability for the ceph-osd osd-directory.sh script to handle existing deployments that place data in hosts via CRUSH and modify those deployments to place data in racks instead. The existing data remains intact but is redistributed across the new rack-level failure domains by updating the CRUSH map and assigning new rules to existing pools. Change-Id: Ida79f876d0cae3d99e796e4de1aac55a7978986c --- ceph-osd/templates/bin/osd/_directory.sh.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/ceph-osd/templates/bin/osd/_directory.sh.tpl b/ceph-osd/templates/bin/osd/_directory.sh.tpl index 38ace2e65..0edd8c513 100644 --- a/ceph-osd/templates/bin/osd/_directory.sh.tpl +++ b/ceph-osd/templates/bin/osd/_directory.sh.tpl @@ -100,6 +100,7 @@ for OSD_ID in $(ls /var/lib/ceph/osd | sed 's/.*-//'); do chown -R ceph. ${OSD_PATH}; fi + crush_location echo "${CLUSTER}-${OSD_ID}: /usr/bin/ceph-osd --cluster ${CLUSTER} -f -i ${OSD_ID} --osd-journal ${OSD_JOURNAL} -k ${OSD_KEYRING}" | tee -a /etc/forego/"${CLUSTER}"/Procfile done