Revision 0834c866 scripts/gnt-instance
b/scripts/gnt-instance | ||
---|---|---|
523 | 523 |
if not status: |
524 | 524 |
buf.write("not active\n") |
525 | 525 |
else: |
526 |
(path, major, minor, syncp, estt, degr) = status |
|
526 |
(path, major, minor, syncp, estt, degr, ldisk) = status
|
|
527 | 527 |
buf.write("%s (%d:%d)" % (path, major, minor)) |
528 | 528 |
if dtype in (constants.LD_MD_R1, constants.LD_DRBD7, constants.LD_DRBD8): |
529 | 529 |
if syncp is not None: |
... | ... | |
538 | 538 |
degr_text = "*DEGRADED*" |
539 | 539 |
else: |
540 | 540 |
degr_text = "ok" |
541 |
buf.write(" %s, status %s" % (sync_text, degr_text)) |
|
541 |
if ldisk: |
|
542 |
ldisk_text = " *MISSING DISK*" |
|
543 |
else: |
|
544 |
ldisk_text = "" |
|
545 |
buf.write(" %s, status %s%s" % (sync_text, degr_text, ldisk_text)) |
|
542 | 546 |
elif dtype == constants.LD_LV: |
543 |
if degr:
|
|
544 |
degr_text = " *DEGRADED* (failed drive?)"
|
|
547 |
if ldisk:
|
|
548 |
ldisk_text = " *FAILED* (failed drive?)"
|
|
545 | 549 |
else: |
546 |
degr_text = ""
|
|
547 |
buf.write(degr_text)
|
|
550 |
ldisk_text = ""
|
|
551 |
buf.write(ldisk_text)
|
|
548 | 552 |
buf.write("\n") |
549 | 553 |
|
550 | 554 |
if dev["iv_name"] is not None: |
Also available in: Unified diff