Метаданные группы томов по-прежнему указывают на старые lvs - PullRequest
0 голосов
/ 24 января 2020

Я клонирую часть загрузки / ОС виртуальной машины (VM1) для создания новой виртуальной машины (VM2)

Но так как источник находится в состоянии c IP VLAN, я хочу обработайте загрузочный диск, а затем клонируйте диск , чтобы добиться этого, что я сделал ниже

   1. Clone the boot disk of VM1 and attach to the same virtual machine(VM1)
   2. once I attach the Boot disk of VM1 onto VM1, As the Boot disk is on LVM, I got PV,VG,LV warnings on duplicates to correct this I did vgimportclone and activate the VG 
   3.mounted the new disk(VG) on ~/test and modified the contents  
   4.after this I cloned the attached disk and attached to the VM3 as a boot disk
   5.VM3 dint boot up, After debugging got to know that grub still looking to the Older volumegroup

Во время шага 2 выше я изменил файлы grub ниже, чтобы указать измененный lv_pathson подключенные диски

 1.~/test/boot/grub2/<grub.cfg
 2. ~/test/etc/default/grub
 3. Dracut -f -v dracut -f -v ~/test/boot/initramfs-<uname -r>.img <uname -r>;(generates the new image for the boot

После всего вышеперечисленного, когда я загружаю VM3, он все еще указывает на более старые vg и LV, можете ли вы исправить меня, если я ошибаюсь

...