aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2015-09-22 15:43:27 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-09-22 15:43:27 +0000
commit7d95e981d3685795620443083385e00ab1ccd3f0 (patch)
treeb9135acb5a04d4a5b4096994012e7bb2e0bb9a3a /deploy/adapters
parenta07334031b4b4b055a19c971d0cc3164f95d5a0b (diff)
parentf9854576df59837f12440048159a2d91e8078467 (diff)
Merge "destroy GPT label befroe lvm create PV"
Diffstat (limited to 'deploy/adapters')
-rw-r--r--deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml b/deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml
index 3700bcdd..b64024da 100644
--- a/deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml
@@ -43,6 +43,10 @@
shell: losetup {{ first_lo.stdout }} /mnt/cinder-volumes
when: cindervolumes.stdout != 'cinder-volumes'
+- name: destroy GPT lable
+ shell: dd if=/dev/urandom of=/dev/sdb bs=4M count=1
+ ignore_errors: True
+
- name: create physical and group volumes
lvg: vg=cinder-volumes pvs={{ physical_device }}
vg_options=--force