Azure Linux VM restart issue (older version of VM instead of last one)

Al 6 Reputation points
2022-02-21T18:36:29.033+00:00

Hello all,

Today I've decided to restart my linux VM on azure

176504-image.png

Operating system
Linux (debian 9.5)
Size
Standard A2m v2 (2 vcpus, 16 GiB memory)

When the restart was done. I connected to my VM only to find that it went back to the past(or an older version of it?)
All the data are from 2020. Instead of this year 2022

Does anyone know how can I get back my last VM?

Thanks in advance,
Sincerely,

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,804 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Al 6 Reputation points
    2022-02-21T23:18:06.037+00:00

    Thank you Pituach for your answer.

    I found the real issue.
    When I restarted my linux VM. my disks were mounted differently and i was going into an old path. so I had to revert them with fstab...

    Don't know how it happened since it wasn't the first time that I've rebooted my VM.

    1 person found this answer helpful.

  2. Ronen Ariely 15,191 Reputation points
    2022-02-21T22:54:59.76+00:00

    Hi,

    Does anyone know how can I get back my last VM?

    I am not sure if you have a newer backup version at this time, but you can check it. Try to follow the documentation on how to restore to a point in time

    https://learn.microsoft.com/azure/backup/backup-azure-arm-restore-vms?WT.mc_id=DP-MVP-5001699

    The short version is:

    (1) Navigate to Backup center in the Azure portal

    (2) click Restore from the Overview tab

    176575-image.png

    (3) Select backup instance and click on Select backup instance

    (4) In the windows on the right that opened for you, select the relevant VM

    176582-image.png

    Hopefully you will see newer restore point.

    Check the time of the most new back if this fit your need

    If this did not solve your issue, then someone will need to make some manually check on the specific subscription which we cannot obviously - open a new support ticket from your Azure subscription

    0 comments No comments

  3. srbhatta-MSFT 8,551 Reputation points Microsoft Employee
    2022-02-22T05:59:33.137+00:00

    Hello @Al , thank you for sharing the resolution steps that helped you fix the issue. Re-summarizing the steps below.
    As you mentioned, after restarting your Linux VM, you found that your VM went into an older version and all the data was from 2020, instead of 2022. You said that the VMs disks were mounted differently and you were accessing an incorrect disk (that stored the older data) from the mountpoint (path) - that you thought was the correct one.
    After changing the entries in the fstab file (/etc/fstab) and placing the correct mountpoint (path) against the disk's UUID, you were able to access the recent files for 2022, and your issue got resolved.
    (Fstab is used to create persistent mountpoints across reboots).
    Thanks for using Microsoft QnA and helping us to continuously improve our community.

    0 comments No comments

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.