From: Dobrica Pavlinusic Date: Mon, 10 May 2021 09:45:44 +0000 (+0200) Subject: document how to insert partition table to instance X-Git-Url: http://git.rot13.org/?p=gnt-info;a=commitdiff_plain;h=fc8e6a4d9b4b8b4631e60e1dadbb810b755e8d74;hp=aa6e5966a10a13acad0c86ae11b65a2544910d51 document how to insert partition table to instance --- diff --git a/doc/lv-insert-part.txt b/doc/lv-insert-part.txt new file mode 100644 index 0000000..ce094e2 --- /dev/null +++ b/doc/lv-insert-part.txt @@ -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 +