]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
This assumes ceph as a cluster name. We need detect the name of the cluster
authorWingkaiHo <sanguosfiang@163.com>
Wed, 22 Mar 2017 02:06:11 +0000 (10:06 +0800)
committerWingkaiHo <sanguosfiang@163.com>
Wed, 22 Mar 2017 02:06:11 +0000 (10:06 +0800)
infrastructure-playbooks/recover-osds-after-ssd-journal-failure.yml

index 0cf1d94b0f1cf2a0c11a9338b21fe21ab4b0d280..f2f59b91150053933947f993b170129e4301d3b1 100644 (file)
@@ -64,7 +64,7 @@
         
   - name: get osd(s) if directory stat
     stat:
-      path: "/var/lib/ceph/osd/ceph-{{ item.1.osd_id }}/journal_uuid"
+      path: "/var/lib/ceph/osd/{{ cluster_name }}-{{ item.1.osd_id }}/journal_uuid"
     register: osds_dir_stat
     with_subelements:
       - "{{ dev_ssds }}"
@@ -86,7 +86,7 @@
     when: dev_ssds is defined
     
   - name: get osd(s) journal uuid
-    shell: cat "/var/lib/ceph/osd/ceph-{{ item.1.osd_id }}/journal_uuid"
+    shell: cat "/var/lib/ceph/osd/{{ cluster_name.stdout }}-{{ item.1.osd_id }}/journal_uuid"
     register: osds_uuid
     with_subelements:
       - "{{ dev_ssds }}"