From: Dobrica Pavlinusic Date: Sat, 25 Jan 2020 13:58:49 +0000 (+0100) Subject: create kvm from instance to test upgrade X-Git-Url: http://git.rot13.org/?p=gnt-info;a=commitdiff_plain;h=0e5af989f1c5513f93f1dd04a69aba51341bc3b3 create kvm from instance to test upgrade --- diff --git a/doc/2020-01-25-mudrac-upgrade.txt b/doc/2020-01-25-mudrac-upgrade.txt new file mode 100644 index 0000000..cb12114 --- /dev/null +++ b/doc/2020-01-25-mudrac-upgrade.txt @@ -0,0 +1,27 @@ +root@r1u32:/srv/gnt-info# lvs -o vg_name,name,tags | grep mudrac + oscarvg 01ee542b-cc5e-4eb7-9ce6-1903630c7d11.disk0_data originstname+mudrac + oscarvg 01ee542b-cc5e-4eb7-9ce6-1903630c7d11.disk0_meta originstname+mudrac + oscarvg 44d1701a-128f-4a97-a0df-a4e1126db8c5.disk1_data originstname+mudrac + oscarvg 44d1701a-128f-4a97-a0df-a4e1126db8c5.disk1_meta originstname+mudrac +root@r1u32:/srv/gnt-info# lvcreate -L 2G -s -nm2.snap /dev/oscarvg/01ee542b-cc5e-4eb7-9ce6-1903630c7d11.disk0_data + Using default stripesize 64.00 KiB. + Logical volume "m2.snap" created. +root@r1u32:/srv/gnt-info# lvcreate -L20G -n m2 oscarvg + Logical volume "m2" created. + +root@r1u32:/srv/gnt-info# time ionice dd if=/dev/oscarvg/m2.snap of=/dev/oscarvg/m2 bs=1M status=progress + +22548578304 bytes (23 GB, 21 GiB) copied, 156.957 s, 144 MB/s + +real 2m36.959s +user 0m0.056s +sys 0m54.464s + +root@r1u32:/srv/gnt-info# lvremove /dev/oscarvg/m2.snap +Do you really want to remove active logical volume oscarvg/m2.snap? [y/n]: y + Logical volume "m2.snap" successfully removed + +root@r1u32:/srv/gnt-info# lvcreate -L 4G -n m2-home oscarvg + +kvm -m 1024 -drive file=/dev/oscarvg/m2,format=raw,if=virtio -drive file=/dev/oscarvg/m2-home,format=raw,if=virtio -nographic -kernel /boot/vmlinuz-3.16.0-5-amd64 -initrd /boot/initrd.img-3.16.0-5-amd64 -append 'root=/dev/vda1 ro console=ttyS0,38400' -net nic -net user +