Guten Abend,
folgendes Problem.
Ich habe zwei Raspberrys.
Keepalived und Drbd.
Keepalived funktioniert einwandfrei.
Wenn ich nun auf den Raspberrys den Drbd Status abrufen möchte, bekomme ich auf ha1:
root@ha1:~# /etc/init.d/drbd status
● drbd.service - Distributed Replicated Block Device
Loaded: loaded (/lib/systemd/system/drbd.service; enabled)
Active: failed (Result: exit-code) since Fr 2017-04-14 17:19:48 CEST; 15min ago
Process: 1060 ExecStart=/sbin/drbdadm wait-connect all (code=exited, status=20)
Process: 1223 ExecStart=/sbin/drbdadm adjust-with-progress all (code=exited, status=1/FAILURE)
Process: 1219 ExecStartPre=/sbin/drbdadm sh-nop (code=exited, status=0/SUCCESS)
Main PID: 1223 (code=exited, status=1/FAILURE)
Apr 14 17:19:48 ha1 drbdadm[1223]: userland version: 8.4.4
Apr 14 17:19:48 ha1 drbdadm[1223]: you should upgrade your drbd tools!
Apr 14 17:19:48 ha1 drbdadm[1223]: [
Apr 14 17:19:48 ha1 drbdadm[1223]: create res: ha
Apr 14 17:19:48 ha1 drbdadm[1223]: adjust disk: ha# la-size-sect was too big (7679688), truncated (7677640)!
Apr 14 17:19:48 ha1 drbdadm[1223]: :failed(attach:10)
Apr 14 17:19:48 ha1 drbdadm[1223]: ]
Apr 14 17:19:48 ha1 systemd[1]: drbd.service: main process exited, code=exited, status=1/FAILURE
Apr 14 17:19:48 ha1 systemd[1]: Failed to start Distributed Replicated Block Device.
Apr 14 17:19:48 ha1 systemd[1]: Unit drbd.service entered failed state.
Alles anzeigen
Und auf ha2:
root@ha2:~# /etc/init.d/drbd start
[....] Starting drbd (via systemctl): drbd.serviceJob for drbd.service failed. See 'systemctl status drbd.service' and 'journalctl -xn' for details.
failed!
root@ha2:~# /etc/init.d/drbd status
● drbd.service - Distributed Replicated Block Device
Loaded: loaded (/lib/systemd/system/drbd.service; enabled)
Active: failed (Result: exit-code) since Fri 2017-04-14 15:33:30 UTC; 24min ago
Process: 958 ExecStart=/sbin/drbdadm wait-connect all (code=exited, status=20)
Process: 954 ExecStart=/sbin/drbdadm adjust-with-progress all (code=exited, status=0/SUCCESS)
Process: 950 ExecStartPre=/sbin/drbdadm sh-nop (code=exited, status=0/SUCCESS)
Main PID: 958 (code=exited, status=20)
Apr 14 15:31:30 ha2 drbdadm[954]: ]
Apr 14 15:31:30 ha2 drbdadm[958]: DRBD module version: 8.4.5
Apr 14 15:31:30 ha2 drbdadm[958]: userland version: 8.4.4
Apr 14 15:31:30 ha2 drbdadm[958]: you should upgrade your drbd tools!
Apr 14 15:31:30 ha2 drbdadm[958]: bind(s->s_fd, (struct sockaddr*) &s->s_loca...ry
Apr 14 15:31:30 ha2 drbdadm[958]: error creating netlink socket
Apr 14 15:33:30 ha2 drbdadm[958]: No response from the DRBD driver! Is the mo...d?
Apr 14 15:33:30 ha2 systemd[1]: drbd.service: main process exited, code=exite.../a
Apr 14 15:33:30 ha2 systemd[1]: Failed to start Distributed Replicated Block ...e.
Apr 14 15:33:30 ha2 systemd[1]: Unit drbd.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
Alles anzeigen
Ausgabe von fdisk:
ha1
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 137215 129024 63M c W95 FAT32 (LBA)
/dev/mmcblk0p2 137216 31116287 30979072 14,8G 83 Linux
Disk /dev/sda: 3,7 GiB, 3932160000 bytes, 7680000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x315e11f3
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 7679999 7677952 3,7G 83 Linux
Alles anzeigen
ha2
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 137215 129024 63M c W95 FAT32 (LBA)
/dev/mmcblk0p2 137216 31116287 30979072 14.8G 83 Linux
Disk /dev/sda: 3.7 GiB, 3932160000 bytes, 7680000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Das drbd soll auf /dev/sda bzw sda1 zugreifen.
Meine drbd Konfig:
root@ha1:~# cat /etc/drbd.d/ha.res
resource ha{
on ha1{
device /dev/drbd1;
disk /dev/sda1;
address 172.16.0.10:7789;
meta-disk internal;
}
on ha2{
device /dev/drbd1;
disk /dev/sda;
address 172.16.0.11:7789;
meta-disk internal;
}
}
Alles anzeigen
Kann mir jemand weiter helfen?
Wäre echt klasse!
Vielen Dank.
Gruß
Pauuuul01