Score:0

Used P2V to reduce size of LVM VHDX - Issues with grub and booting now

ai flag

Hi All hoping for some Linux genius advice

I inherited a VMWare VM cluster with a few production VM’s

they were all way over provisioned and all have 1tb Thick drives

But are only using 100gb odd each

My Main intention with this project is to reduce the size of the VHDX from 1 tb to something closer to what they are actually using. Each VM is at times doing 1TB of backup because of the lvm disk

If there is a better way to accomplish this aside from the way i am trying i am open to that

I have used P2V to “move” a test vm on the same host but with a smaller vhdx,

The process went fine until ±97% (which i have read is common)

but now my vm doesn’t boot is says

Error Loading operating system.

Below are screenshots of the blkid and fstab and the grug.cfg of the mounted partitions on the broken VM

I know i need to update fstab with the new uuid’s but i just don’t know which one to use.

Also how do I recreate grub? Can i use something like supergrub2 or do i have to go through grub file and manually change uudi?

All files pulled by Booting into live cd and mnt the partitions

boot.cfg

FSTAB

BLKID

LVDisplay

LVDisplay1

PVDisplay

David avatar
cn flag
I get page not found and requests to remove add blocker from your links.
Chayne avatar
ai flag
All my images are hosted in imgur and i have the boot.cfg pasted in justpaste.it
Score:0
ai flag

I figured it out This solution is only valid for LVM systems

  1. complete failed clone
  2. boot failed clone to live cd
  3. mount file system
  4. run in terminal pvdisplay & vgdisplay & lvdisplay & blkid to get the new UUID of your system
  5. edit fstab and boot.cfg and replace the current UUID with the new ones you got in the previous step ( i ran the same commands on the old system for cross reference)
  6. boot new system with supergrub2 iso this should get you into your "new" VM
  7. run sudo grub-install /dev/dsa
  8. run sudo update-grub

System should now boot without issue

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.