document how to insert partition table to instance
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 10 May 2021 09:45:44 +0000 (11:45 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 10 May 2021 09:45:44 +0000 (11:45 +0200)
doc/lv-insert-part.txt [new file with mode: 0644]

diff --git a/doc/lv-insert-part.txt b/doc/lv-insert-part.txt
new file mode 100644 (file)
index 0000000..ce094e2
--- /dev/null
@@ -0,0 +1,54 @@
+# add partition to virtual machine witout one
+
+gnt-instance stop omp
+gnt-instance modify -t plain omp
+
+## on node which hosts omp
+
+lvs -o name,tags | grep omp
+
+./lv-insert-part.sh /dev/oscarvg/c796b71f-6d4b-412d-9fa9-2d546945f488.disk0_data
+
+## on master node
+
+gnt-instance modify -H root_path=/dev/vda1 omp
+
+gnt-instance start omp
+
+## on instance omp
+
+- check /etc/fstab and update rootfs using blkid or label
+
+apt-get install grub-pc
+
+grub-install /dev/vda
+
+- if there is error, wipe space up to first partition
+
+dd if=/dev/zero of=/dev/vda seek=1 count=2047
+
+grub-install /dev/vda
+
+- modify /etc/default/grub to include serial console
+
+GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0,38400"
+GRUB_TERMINAL=serial
+
+update-grub
+
+## on master
+
+- boot from disk
+
+gnt-instance modify -H initrd_path=,kernel_path= omp
+
+gnt-instance reboot omp
+
+- rebuild drbd
+
+gnt-instance stop omp
+
+gnt-instance modify -t drbd -n r1u32 omp
+
+gnt-instance start omp
+