How do I mount RHEL LVs in/on the recovery server ?

Harry Carmichael 0 Reputation points
2024-08-22T16:15:55.8166667+00:00

Need to boot from the old kernel - currently trying to change it by creating a recovery image and trying to mount the drive in/on that - problem is that / is on a LV .

Get the error:

root@repair-AZSU-DN:/# mount /dev/sdc2 /mnt2

mount: /mnt2: unknown filesystem type 'LVM2_member'.

root@repair-AZSU-DN:/#

[ this is why I don't put root on LVM ]

Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
718 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Harry Carmichael 0 Reputation points
    2024-08-23T12:02:25.68+00:00

    Boot to another kernel ( GRUB ). On most systems the grub menue is displayed at boot time on the console - Azure starts the console AFTER grub.

    easy solution:

    1. start VM - open virtual console
    2. start Azure Shell in another session
    3. in the shell
      1. Restart-AzVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"
    4. back on the virtual console hit esc repeatedly as it reboots, this gets you to the GRUB screen.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.