added word-boundries to catch only full tap names
[gnt-info] / doc / lv-insert-part.txt
1 # add partition to virtual machine witout one
2
3 gnt-instance stop omp
4 gnt-instance modify -t plain omp
5
6 ## on node which hosts omp
7
8 lvs -o name,tags | grep omp
9
10 ./lv-insert-part.sh /dev/oscarvg/c796b71f-6d4b-412d-9fa9-2d546945f488.disk0_data
11
12 ## on master node
13
14 gnt-instance modify -H root_path=/dev/vda1 omp
15
16 gnt-instance start omp
17
18 ## on instance omp
19
20 - check /etc/fstab and update rootfs using blkid or label
21
22 apt-get install grub-pc
23
24 grub-install /dev/vda
25
26 - if there is error, wipe space up to first partition
27
28 dd if=/dev/zero of=/dev/vda seek=1 count=2047
29
30 grub-install /dev/vda
31
32 - modify /etc/default/grub to include serial console
33
34 GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0,38400"
35 GRUB_TERMINAL=serial
36
37 update-grub
38
39 ## on master
40
41 - boot from disk
42
43 gnt-instance modify -H initrd_path=,kernel_path= omp
44
45 gnt-instance reboot omp
46
47 - rebuild drbd
48
49 gnt-instance stop omp
50
51 gnt-instance modify -t drbd -n r1u32 omp
52
53 gnt-instance start omp
54