1
0
Fork 0
mirror of https://code.forgejo.org/infrastructure/documentation synced 2024-12-22 12:53:53 +00:00

have DRBD be up at boot

one less manual operation
This commit is contained in:
Earl Warren 2024-10-18 10:53:12 +02:00
parent a8cfb2a1c8
commit 6c6def6da2
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -430,7 +430,8 @@ resource r0 {
}
}
$ sudo drbdadm create-md r0
$ sudo drbdadm up r0
$ sudo systemctl enable drbd
$ sudo systemctl start drbd
```
On hetzner02 (the primary), [pretend all is in sync](https://linbit.com/drbd-user-guide/drbd-guide-9_0-en/#s-skip-initial-resync) to save the initial bitmap sync since
@ -450,9 +451,8 @@ To prevent split brain situations a manual step is required at boot
time, on the machine that is going to be the primary.
```sh
sudo drbdadm up r0
sudo drbdsetup status
sudo drbdadm primary r0
sudo drbdsetup status
sudo mount /var/lib/lxc
sudo lxc-autostart start
sudo lxc-ls -f