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

質問済み 4ヶ月前250ビュー
4回答
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
エキスパート
回答済み 4ヶ月前
  • 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
エキスパート
Steve_M
回答済み 4ヶ月前
  • 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.

回答済み 4ヶ月前
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.

回答済み 4ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ