I have an instance (with 2disks) on Ganeti with both disks degraded (probably due to a connection problem?). This instance was working correctly for many years until this morning.
On my master
$ gnt-instance info myinstance
...
-disk/0
on primary: /dev/drbd4 (147:4) in sync, status *DEGRADED*
on secondary: /dev/drbd4 (147:4) in sync, status *DEGRADED*
child devices:
- child 0: lvm, size 20.0G
logical_id: kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_data
on primary: /dev/kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_data (254:10)
on secondary: /dev/kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_data (254:8)
- child 1: lvm, size 128M
logical_id: kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_meta
on primary: /dev/kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_meta (254:11)
on secondary: /dev/kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_meta (254:9)
...
On primary node
$ cat /proc/drbd
4: cs:NetworkFailure ro:Primary/Unknown ds:UpToDate/DUnknown C r----
ns:678399926 nr:0 dw:678315292 dr:25942012 al:22230 bm:16189 lo:0 pe:196 ua:0 ap:195 ep:1 wo:b oos:0
On secondary node
$ cat /proc/drbd
4: cs:WFConnection ro:Secondary/Unknown ds:UpToDate/DUnknown C r----
ns:0 nr:678340009 dw:678340009 dr:0 al:0 bm:14884 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
I can't reboot nor shutdown the instance (Operation timed out).
I think it is NOT a brain split issue because there is no "standalone" and on primary node it is "Primary/Unknown" and on secondary it is "Secondary/Unknown".
I tried to run "drbdadm connect all" on the secondary node, but that did nothing.
I tried to replace disk but it failed:
gnt-instance replace-disks -s myinstance
Thu Jun 2 11:32:00 2016 Replacing disk(s) 0, 1 for myinstancel
Thu Jun 2 11:36:00 2016 - WARNING: Could not prepare block device disk/1 on node primaryNode (is_primary=False, pass=1): Error while assembling disk: drbd5: cannot activate, unknown or unhandled reason
Thu Jun 2 11:38:01 2016 - WARNING: Could not prepare block device disk/0 on node primaryNode (is_primary=True, pass=2): Error while assembling disk: drbd4: cannot activate, unknown or unhandled reason
Thu Jun 2 11:40:02 2016 - WARNING: Could not prepare block device disk/1 on node primaryNode (is_primary=True, pass=2): Error while assembling disk: drbd5: cannot activate, unknown or unhandled reason
Failure: command execution error:
Disk consistency error
And now it looks like this:
$ gnt-instance info myinstance
...
-disk/0
on primary: /dev/drbd4 (147:4) in sync, status *DEGRADED*
(no more secondary)
child devices:
- child 0: lvm, size 20.0G
logical_id: kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_data
on primary: /dev/kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_data (254:10)
on secondary: /dev/kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_data (254:8)
- child 1: lvm, size 128M
logical_id: kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_meta
on primary: /dev/kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_meta (254:11)
on secondary: /dev/kvmvg/299a0bdf-1acb-4bcd-ac43-eb02b0928757.disk0_meta (254:9)
On primary node
$ cat /proc/drbd
4: cs:NetworkFailure ro:Primary/Unknown ds:UpToDate/DUnknown C r----
ns:678399926 nr:0 dw:678315292 dr:25942012 al:22230 bm:16189 lo:0 pe:196 ua:0 ap:195 ep:1 wo:b oos:0
And on secondary node:
$ cat /proc/drbd
...
4: cs:Unconfigured
5: cs:Unconfigured
Any idea how to solve this?
DRBD version: 8.3.7
Ganeti version: 2.4.5
OS: Debian 6.0