mirror of https://github.com/ceph/ceph-ansible.git
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
parent
ae5775db27
commit
5441b639f7
|
@ -6,22 +6,8 @@
|
|||
- mons
|
||||
- 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
|
||||
command: /usr/sbin/sgdisk --zap-all --clear --mbrtogpt -g -- {{ item }}
|
||||
with_items: devices
|
||||
failed_when: false
|
||||
|
||||
- name: purge ceph
|
||||
command: ceph-deploy purge {{ ansible_fqdn }}
|
||||
delegate_to: 127.0.0.1
|
||||
|
@ -34,5 +20,24 @@
|
|||
command: ceph-deploy purgedata {{ ansible_fqdn }}
|
||||
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
|
||||
command: partprobe
|
||||
|
|
Loading…
Reference in New Issue