From f3963a4f23ae6845ebdb60ededd840a739388267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= <anarcat@debian.org> Date: Tue, 28 Jan 2020 15:50:04 -0500 Subject: [PATCH] forgot some chiwui stuff --- tsa/howto/ganeti.mdwn | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tsa/howto/ganeti.mdwn b/tsa/howto/ganeti.mdwn index 9c76f12a..c8dd243d 100644 --- a/tsa/howto/ganeti.mdwn +++ b/tsa/howto/ganeti.mdwn @@ -281,17 +281,19 @@ Import procedure: 5. on the SPARE NODE, create and initialize a logical volume with the predetermined size: - lvcreate -L 20GiB -n chiwui-root vg_ganeti - qemu-img convert /srv/$INSTANCE-root -O raw /dev/vg_ganeti/chiwui-root - lvcreate -L 4GiB -n chiwui-swap vg_ganeti - mkswap --uuid $SWAP_UUID /dev/vg_ganeti/chiwui-swap + lvcreate -L 20GiB -n $INSTANCE-root vg_ganeti + qemu-img convert /srv/$INSTANCE-root -O raw /dev/vg_ganeti/$INSTANCE-root + lvcreate -L 4GiB -n $INSTANCE-swap vg_ganeti + mkswap --uuid $SWAP_UUID /dev/vg_ganeti/$INSTANCE-swap + + TODO: the above assumes only two disk devices, which is usually incorrect. 6. on the MASTER NODE, create the instance, adopting the LV: gnt-instance add -t plain \ -n fsn-node-03 \ - --disk 0:adopt=chiwui-root \ - --disk 1:adopt=chiwui-swap \ + --disk 0:adopt=$INSTANCE-root \ + --disk 1:adopt=$INSTANCE-swap \ --backend-parameters memory=2g,vcpus=2 \ --net 0:ip=pool,network=gnt-fsn \ --no-name-check \ @@ -345,7 +347,7 @@ Import procedure: on the Ganeti node: - qemu-img convert /srv/$INSTANCE-root -O raw /dev/vg_ganeti/chiwui-root + qemu-img convert /srv/$INSTANCE-root -O raw /dev/vg_ganeti/$INSTANCE-root 13. switch to DRBD, still on the Ganeti MASTER NODE: -- GitLab