From 6c6def6da2b7245860285fbf630ad8a3f62a963a Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 18 Oct 2024 10:53:12 +0200 Subject: [PATCH] have DRBD be up at boot one less manual operation --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3dfbc98..772677d 100644 --- a/README.md +++ b/README.md @@ -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