Revision 1df79ce6
b/lib/cmdlib.py | ||
---|---|---|
4470 | 4470 |
source_node = instance.primary_node |
4471 | 4471 |
target_node = instance.secondary_nodes[0] |
4472 | 4472 |
|
4473 |
feedback_fn("* checking disk consistency between source and target") |
|
4474 |
for dev in instance.disks: |
|
4475 |
# for drbd, these are drbd over lvm |
|
4476 |
if not _CheckDiskConsistency(self, dev, target_node, False): |
|
4477 |
if instance.admin_up and not self.op.ignore_consistency: |
|
4478 |
raise errors.OpExecError("Disk %s is degraded on target node," |
|
4479 |
" aborting failover." % dev.iv_name) |
|
4473 |
if instance.admin_up: |
|
4474 |
feedback_fn("* checking disk consistency between source and target") |
|
4475 |
for dev in instance.disks: |
|
4476 |
# for drbd, these are drbd over lvm |
|
4477 |
if not _CheckDiskConsistency(self, dev, target_node, False): |
|
4478 |
if not self.op.ignore_consistency: |
|
4479 |
raise errors.OpExecError("Disk %s is degraded on target node," |
|
4480 |
" aborting failover." % dev.iv_name) |
|
4481 |
else: |
|
4482 |
feedback_fn("* not checking disk consistency as instance is not running") |
|
4480 | 4483 |
|
4481 | 4484 |
feedback_fn("* shutting down instance on source node") |
4482 | 4485 |
logging.info("Shutting down instance %s on node %s", |
Also available in: Unified diff