... | ... | @@ -213,6 +213,18 @@ the [storage servers documentation](howto/new-machine-cymru#storage-servers) for |
|
|
|
|
|
and the device `/dev/mapper/test-01` should exist.
|
|
|
|
|
|
5. then the disk needs to be partitioned correctly:
|
|
|
|
|
|
parted --script --align optimal /dev/mapper/web-chi-03 $(cat iscsi-parted-script.txt )
|
|
|
|
|
|
Note that this is kind of a gross hack: we setup an MBR
|
|
|
(MSDOS-style!) partition over that LUN, and then each partition
|
|
|
gets adopted by the VM *individually*. The `create` script in
|
|
|
`ganeti-instance-debootstrap` then adds *another* MBR partition on
|
|
|
the first of those partitions to get GRUB to work. It's a total
|
|
|
mess. Details in [tpo/tpa/team#40775](https://gitlab.torproject.org/tpo/tpa/team/-/issues/40775), see also [upstream
|
|
|
support about GPT](https://github.com/ganeti/instance-debootstrap/issues/5).
|
|
|
|
|
|
6. adopt the disks in Ganeti:
|
|
|
|
|
|
gnt-instance add \
|
... | ... | @@ -222,7 +234,9 @@ the [storage servers documentation](howto/new-machine-cymru#storage-servers) for |
|
|
--net 0:ip=pool,network=gnt-chi-01 \
|
|
|
--no-ip-check \
|
|
|
--no-name-check \
|
|
|
--disk 0:adopt=/dev/disk/by-id/dm-name-web-chi-03 \
|
|
|
--disk 0:adopt=/dev/disk/by-id/dm-name-telegram-bot-01-part2 \
|
|
|
--disk 1:adopt=/dev/disk/by-id/dm-name-telegram-bot-01-part3,name=swap \
|
|
|
--disk 2:adopt=/dev/disk/by-id/dm-name-telegram-bot-01-part4 \
|
|
|
--backend-parameters memory=8g,vcpus=2 \
|
|
|
test-01.torproject.org
|
|
|
|
... | ... | |