Retrieving Data and Files from crashed EBS Volume (XFS)

0

Hi, my EC2 instance suddenly crashed. I don't know what happened. Tried rebooting the instance but to no avail. Status checks keeps on getting 1/2. The instance is where my website is hosted. All webpage and database are stored there. I tried to attached the EBS volume of the failing EC2 instance to a newly created instance as an additional volume but I am unable to mount it. When hitting the "mount" command, the command is stucked, no error.

Can someone help me as I badly need to recover all the files.

Unfortunately, I do not have a backup

gefragt vor 4 Monaten251 Aufrufe
4 Antworten
0

Hi,

XFS volume uuid often cause problems which prevent mounts. See https://repost.aws/knowledge-center/ebs-mount-volume-issues for example

Or this blog post: https://aws.amazon.com/blogs/compute/how-to-mount-linux-volume-and-keep-mount-point-consistency/

So, can you try to mount with mount -o nouuid to see if you can mount the EBS disk ?

Best,

Didier

profile pictureAWS
EXPERTE
beantwortet vor 4 Monaten
  • Tried it but no luck. Im still getting the same result. After hitting enter with this command "mount -o nouuid /dev/xvdp1 /mnt/rescue-volume", it is stuck, no error, no whatsoever

0

Have you tried running xfs_repair on the slice with the corrupted filesystem?

profile picture
EXPERTE
Steve_M
beantwortet vor 4 Monaten
  • Already tried, it says device is busy. Had a session with AWS support. And he also had no idea why it is hanging when running the mount command.

0

Update: mount command still hangs, tried waiting for about an hour but it still hangs.

beantwortet vor 4 Monaten
0

Anyone also experience this issue? tried mounting the EBS volume to a Rescue instance, but the mount command hangs. Tried xfs_repair but it says drive is busy.

beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen