destroy GPT label befroe lvm create PV 85/1885/1
authorbaigk <baiguoku@huawei.com>
Tue, 22 Sep 2015 15:39:17 +0000 (23:39 +0800)
committerbaigk <baiguoku@huawei.com>
Tue, 22 Sep 2015 15:39:17 +0000 (23:39 +0800)
JIRA: COMPASS-64

Change-Id: I21ef97689444a7509f09394d6f0a3d4956074f06
Signed-off-by: baigk <baiguoku@huawei.com>
deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml

index 3700bcd..b64024d 100644 (file)
   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