Revision f208978a scripts/gnt-instance
b/scripts/gnt-instance | ||
---|---|---|
995 | 995 |
if not status: |
996 | 996 |
return "not active" |
997 | 997 |
txt = "" |
998 |
(path, major, minor, syncp, estt, degr, ldisk) = status |
|
998 |
(path, major, minor, syncp, estt, degr, ldisk_status) = status
|
|
999 | 999 |
if major is None: |
1000 | 1000 |
major_string = "N/A" |
1001 | 1001 |
else: |
... | ... | |
1020 | 1020 |
degr_text = "*DEGRADED*" |
1021 | 1021 |
else: |
1022 | 1022 |
degr_text = "ok" |
1023 |
if ldisk: |
|
1023 |
if ldisk_status == constants.LDS_FAULTY:
|
|
1024 | 1024 |
ldisk_text = " *MISSING DISK*" |
1025 |
elif ldisk_status == constants.LDS_UNKNOWN: |
|
1026 |
ldisk_text = " *UNCERTAIN STATE*" |
|
1025 | 1027 |
else: |
1026 | 1028 |
ldisk_text = "" |
1027 | 1029 |
txt += (" %s, status %s%s" % (sync_text, degr_text, ldisk_text)) |
1028 | 1030 |
elif dtype == constants.LD_LV: |
1029 |
if ldisk: |
|
1031 |
if ldisk_status == constants.LDS_FAULTY:
|
|
1030 | 1032 |
ldisk_text = " *FAILED* (failed drive?)" |
1031 | 1033 |
else: |
1032 | 1034 |
ldisk_text = "" |
Also available in: Unified diff