Revision fd78c5ce lib/client/gnt_cluster.py
b/lib/client/gnt_cluster.py | ||
---|---|---|
490 | 490 |
ToStderr("Error activating disks for instance %s: %s", iname, msg) |
491 | 491 |
|
492 | 492 |
if missing: |
493 |
(vg_name, ) = cl.QueryConfigValues(["volume_group_name"]) |
|
494 |
|
|
495 | 493 |
for iname, ival in missing.iteritems(): |
496 | 494 |
all_missing = compat.all(x[0] in bad_nodes for x in ival) |
497 | 495 |
if all_missing: |
... | ... | |
502 | 500 |
ival.sort() |
503 | 501 |
for node, vol in ival: |
504 | 502 |
if node in bad_nodes: |
505 |
ToStdout("\tbroken node %s /dev/%s/%s", node, vg_name, vol)
|
|
503 |
ToStdout("\tbroken node %s /dev/%s", node, vol)
|
|
506 | 504 |
else: |
507 |
ToStdout("\t%s /dev/%s/%s", node, vg_name, vol)
|
|
505 |
ToStdout("\t%s /dev/%s", node, vol)
|
|
508 | 506 |
|
509 | 507 |
ToStdout("You need to run replace_disks for all the above" |
510 | 508 |
" instances, if this message persist after fixing nodes.") |
Also available in: Unified diff