After recovered LVM from Too Small for Target, XFS does not mount
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
However, my filesystem cannot be mount. Appreciate if anyone could help.
Here's the description of my problem.
Quote:
Hi rknichols & JWolberg,
This thread is very helpful! I'm facing the exact problem, the server suddenly cannot see the volume when I was copying data over SMB into the volume. All disks health are good. Not using any thin-provisioning. I have no clue at all why it happened.
I've managed to recover my volume following the steps discussed above. However, after creating /dev/zzbigdev, I cannot mount it.
Code:
mount: Structure needs cleaning
I'm using:
Ubuntu 14.04
LVM2 on a mdadm RAID-6
The volume formatted with XFS
I googled and people are suggesting to do xfs_metadump to a file to test it. But whenever I run xfs_metadump, it either give an error (see below) or just hang there (the server still responding to putty but cannot login new session, it displays nothing after password is enter. GUI screen also halted). I've restarted the server multiple times but still cannot. Any clue?
Code:
root@xe5:~# xfs_metadump /dev/xe5-2tr6/lfcold /media/lfxe3/8TB-backup/recover/output.dump
xfs_metadump: cannot init perag data (117)
xfs_metadump: duplicate name for inode 0 in dir inode 6500231229
*** Error in `xfs_db': free(): invalid next size (normal): 0x0000000000ca8000 ***
The storage device contains a filesystem with inconsistent data that, it seems, can't be repaired automatically (when necessary, XFS performs automatic repairs at mount time). I guess that human intervention is required to decide whether some data can be deleted.
I would run xfs_repair and carefully analyze the output to see what kind of data would be overwritten to restore consistency. xfs_db could be used to recover data without mounting.
I managed to ddrescue to an image file, and run xfs_repair -L to the image file. However, the recovered files are mostly in lost+found, losing directory structure and filename. =( Too much manual work need to be done, so I'm going to try another approach.
I'm wondering if I grow the size of the /dev/md0 (my raid device,which claim by LVM that it is too small... it is kinda weird that it happened suddenly though)。 I will post the result here.
It's probably too late for that - the errors are in the filesystem structure itself. Adding space to the array is pretty safe, but I'm never keen to do recovery on the real data - work on another image. Create another vg (non-RAID is fine) and screw around with a copy of the data over there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.