mirror of
https://code.forgejo.org/infrastructure/documentation
synced 2024-12-18 03:13:53 +00:00
Merge pull request 'have DRBD be up at boot' (#29) from earl-warren/documentation:wip-disaster into main
Reviewed-on: https://code.forgejo.org/infrastructure/documentation/pulls/29
This commit is contained in:
commit
20b07cacbd
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue