Do not zap disks on monitors

We don't necessary want to wipe and delete partition of the disks on the
monitor nodes, so we simply perform the operation on the OSD nodes.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/423/head
Sébastien Han 2015-10-21 00:32:42 +02:00
parent ae5775db27
commit 5441b639f7
1 changed files with 19 additions and 14 deletions

View File

@ -6,22 +6,8 @@
- mons - mons
- osds - osds
vars:
devices: [ '/dev/sdb', '/dev/sdc', '/dev/sdd', '/dev/sde', '/dev/sdf' ]
partitions: [ '1', '2', '3' ]
tasks: tasks:
- name: disk zap
command: /usr/sbin/sgdisk --zap-all --clear --mbrtogpt -g -- {{ item }}
with_items: devices
failed_when: false
- name: disk zap
command: /usr/sbin/sgdisk --zap-all --clear --mbrtogpt -g -- {{ item }}
with_items: devices
failed_when: false
- name: purge ceph - name: purge ceph
command: ceph-deploy purge {{ ansible_fqdn }} command: ceph-deploy purge {{ ansible_fqdn }}
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
@ -34,5 +20,24 @@
command: ceph-deploy purgedata {{ ansible_fqdn }} command: ceph-deploy purgedata {{ ansible_fqdn }}
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
- hosts:
- osds
vars:
devices: [ '/dev/sdb', '/dev/sdc', '/dev/sdd', '/dev/sde', '/dev/sdf' ]
partitions: [ '1', '2', '3' ]
tasks:
- name: disk zap
command: /usr/sbin/sgdisk --zap-all --clear --mbrtogpt -g -- {{ item }}
with_items: devices
failed_when: false
- name: disk zap again
command: /usr/sbin/sgdisk --zap-all --clear --mbrtogpt -g -- {{ item }}
with_items: devices
failed_when: false
- name: call partprobe - name: call partprobe
command: partprobe command: partprobe