summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-09-02 15:17:37 +0300
committerLars Wirzenius <liw@liw.fi>2018-09-02 15:17:37 +0300
commit2301e64d39897253663b14dc160be52457f65b23 (patch)
tree7525305640cd82179983a1065e67d3e772c38054
parentec75f369cbf47ea9ddf6dc8f5b0f07383dd23643 (diff)
downloadvmdb2-2301e64d39897253663b14dc160be52457f65b23.tar.gz
Change: pvcreate --force
-rw-r--r--vmdb/plugins/lvm2_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/vmdb/plugins/lvm2_plugin.py b/vmdb/plugins/lvm2_plugin.py
index 961b804..9a79ff5 100644
--- a/vmdb/plugins/lvm2_plugin.py
+++ b/vmdb/plugins/lvm2_plugin.py
@@ -41,7 +41,7 @@ class VgcreateStepRunner(vmdb.StepRunnerInterface):
physical = self.get_pv(step, state)
for phys in physical:
- vmdb.runcmd(['pvcreate', phys])
+ vmdb.runcmd(['pvcreate', '--force', phys])
vmdb.runcmd(['vgcreate', vgname] + physical)
def teardown(self, step, settings, state):