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

asked 4 months ago256 views
4 Answers
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
EXPERT
answered 4 months ago
  • 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
EXPERT
Steve_M
answered 4 months ago
  • 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.

answered 4 months ago
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.

answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions