Es gibt die Problematik, wenn wir einen drbd/ocfs2 Cluster fahren, bei dem ein Knoten ausgefallen ist, dass dieser letzte verbleibende Knoten nach einem Reboot seine ocfs2 Filesystem nicht mehr mounten kann.
node1:~# mount -a ocfs2_hb_ctl: I/O error on channel while reading uuid mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted" ocfs2_hb_ctl: I/O error on channel while reading uuid mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted"
drbd versucht zu starten und findet sein Gegenüber nicht mehr, was zur folge hat, dass er zunächst als secondary startet. Als secondary ist ein darauf liegendes Dateisystem (noch) nicht nutzbar, und steht somit auch für ocfs2 nicht zur Verfügung.
node1:~# mounted.ocfs2 -d /dev/drbd0 Device FS UUID Label node1:~# mounted.ocfs2 -d /dev/drbd1 Device FS UUID Label
node1:~# /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.7 (api:86/proto:86)
GIT-hash: cf14288833afe95db396075f8530a5960d29e498 build by phil@mescal, 2007-11-02 13:15:41
0: cs:WFConnection st:Secondary/Unknown ds:UpToDate/DUnknown C r---
ns:0 nr:0 dw:0 dr:0 al:0 bm:155 lo:0 pe:0 ua:0 ap:0
resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0
1: cs:WFConnection st:Secondary/Unknown ds:UpToDate/DUnknown C r---
ns:0 nr:0 dw:0 dr:0 al:0 bm:180 lo:0 pe:0 ua:0 ap:0
resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0
# drbd8 drbdadm -- --overwrite-data-of-peer primary all #drbd7 drbdadm -- --do-what-I-say primary node1
node1:~# /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.7 (api:86/proto:86)
GIT-hash: cf14288833afe95db396075f8530a5960d29e498 build by phil@mescal, 2007-11-02 13:15:41
0: cs:WFConnection st:Primary/Unknown ds:UpToDate/DUnknown C r---
ns:0 nr:0 dw:0 dr:0 al:0 bm:155 lo:0 pe:0 ua:0 ap:0
resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0
1: cs:WFConnection st:Primary/Unknown ds:UpToDate/DUnknown C r---
ns:0 nr:0 dw:0 dr:0 al:0 bm:180 lo:0 pe:0 ua:0 ap:0
resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0
node1:~# mounted.ocfs2 -d /dev/drbd0 Device FS UUID Label /dev/drbd0 ocfs2 f47f752b-1058-4080-b0a7-8b0f47688e2e drbd0 node1:~# mounted.ocfs2 -d /dev/drbd1 Device FS UUID Label /dev/drbd1 ocfs2 61332e77-6ba8-491c-9b4b-d98aa5f78426 drbd1
mount -t ocfs2 wieder.