From 4b6c8c1cfc53b4a3f4ad3ec48a1164bc4eee1ae6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Mon, 10 Mar 2014 16:32:04 +0100 Subject: [PATCH] Use full device name MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Use full device name so we can specify custom devices (by-path, links etc...) Closes: #17 Signed-off-by: Sébastien Han --- group_vars/osds | 4 ++-- roles/osd/tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/group_vars/osds b/group_vars/osds index 517725366..32cf413e2 100644 --- a/group_vars/osds +++ b/group_vars/osds @@ -19,7 +19,7 @@ # Declare devices # All the scenarii inherit from the following device declaration # -devices: [ 'sdd', 'sde', 'sdf', 'sdg'] +devices: [ '/dev/sdd', '/dev/sde', '/dev/sdf', '/dev/sdg'] # I. First scenario: journal and osd_data on the same device @@ -48,4 +48,4 @@ raw_journal_device: /dev/sdb # 2. Progressively add new devices raw_multi_journal: false -raw_journal_devices: [ 'sdb', 'sdb', 'sdc', 'sdc' ] +raw_journal_devices: [ '/dev/sdb', '/dev/sdb', '/dev/sdc', '/dev/sdc' ] diff --git a/roles/osd/tasks/main.yml b/roles/osd/tasks/main.yml index 5e1e3b566..e37cd29c3 100644 --- a/roles/osd/tasks/main.yml +++ b/roles/osd/tasks/main.yml @@ -56,7 +56,7 @@ # Scenario 3 - name: Prepare OSD disk(s) - command: ceph-disk prepare /dev/{{ item.1 }} /dev/{{ item.2 }} + command: ceph-disk prepare {{ item.1 }} {{ item.2 }} when: item.0.rc != 0 and raw_multi_journal ignore_errors: True with_together: -- 2.47.3