Revision 1b3fbef6
b/lib/cmdlib.py | ||
---|---|---|
12001 | 12001 |
|
12002 | 12002 |
# we pass force_create=True to force the LVM creation |
12003 | 12003 |
for new_lv in new_lvs: |
12004 |
_CreateBlockDevInner(self.lu, node_name, self.instance, new_lv, True, |
|
12005 |
_GetInstanceInfoText(self.instance), False, |
|
12006 |
excl_stor) |
|
12004 |
try: |
|
12005 |
_CreateBlockDevInner(self.lu, node_name, self.instance, new_lv, |
|
12006 |
True, _GetInstanceInfoText(self.instance), |
|
12007 |
False, excl_stor) |
|
12008 |
except errors.DeviceCreationError, e: |
|
12009 |
raise errors.OpExecError("Can't create block device: %s" % e.message) |
|
12007 | 12010 |
|
12008 | 12011 |
return iv_names |
12009 | 12012 |
|
... | ... | |
12218 | 12221 |
(self.new_node, idx)) |
12219 | 12222 |
# we pass force_create=True to force LVM creation |
12220 | 12223 |
for new_lv in dev.children: |
12221 |
_CreateBlockDevInner(self.lu, self.new_node, self.instance, new_lv, |
|
12222 |
True, _GetInstanceInfoText(self.instance), False, |
|
12223 |
excl_stor) |
|
12224 |
try: |
|
12225 |
_CreateBlockDevInner(self.lu, self.new_node, self.instance, new_lv, |
|
12226 |
True, _GetInstanceInfoText(self.instance), |
|
12227 |
False, excl_stor) |
|
12228 |
except errors.DeviceCreationError, e: |
|
12229 |
raise errors.OpExecError("Can't create block device: %s" % e.message) |
|
12224 | 12230 |
|
12225 | 12231 |
# Step 4: dbrd minors and drbd setups changes |
12226 | 12232 |
# after this, we must manually remove the drbd minors on both the |
Also available in: Unified diff