mdadm: RAID5 Array crashed on reshape (shrink) due to file system error
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.
mdadm: RAID5 Array crashed on reshape (shrink) due to file system error
Hello there!
Unfortunately I messed up things when I attempted to shrink my RAID5 array. Originally this array had 5 x 16TB drives, which I wanted to downscale to a 4 x 16TB array. Therefore, I followed this doc: https://documentation.suse.com/sles/...id-resize.html
Dump as shit, I did not adjust the file-system before using mdadm, which broke the file-system apparently. The reshape process is stuck at 0% and the array is not mountable.
I tried some things like testdisk (which tells me, that "The harddisk (48 TB / 43 TiB) seems too small! (< 64 TB / 58 TiB)"
Code:
dmesg
said:
Code:
EXT4-fs (md1): bad geometry: block count 15627725312 exceeds size of device (11720793984 blocks)
So: Is there a way to revert the reshape process? (
Code:
--update=revert-reshape
does not work)
(linked to that Is there a way to extend the number of devices again? (so that the block count matches the device size)
Or is there a way to modify the file-system, so that reshape could continue?
Or is there a way to recover some of the data files?
Any suggestion is highly appreciated! Also, if you need more information, please let me know.
Thank you for your reply!! I have a backup from June, but unfortunately this is missing some important data. Therefore it is critical for me to restore this data.
If nothing works, I will consider this solution. But as long as there is a glimmer of hope, I would like to work on a rescue.
to re-create the array. Nevertheless, it is still not mountable, since the filesystem is still broken.
Is there any way to restore the file-system?
I tried to use testdisk, which detects at GTP file-system (as it should), but could not detect a proper partition so far.
RAID is very good at protecting your data. In fact, NEARLY ALL data lost as reported to the raid mailing list, is down to user error while attempting to recover a failed array.
In particular NEVER NEVER NEVER use "mdadm --create" on an already-existing array unless you are being guided by an expert. It is the single most effective way of turning a simple recovery exercise into a major forensic problem - it may not be quite as effective as "dd if=/dev/random of=/dev/sda", but it's pretty close ...
That's from the home page. Your prospects were pretty grim before that, but doing a scrape of all that data and hoping to get any/all the data since the last backup looks pretty forlorn.
Three lessons to take away from this:
1. If it is important enough to restore, it is important enough to have in a backup (or two, or three).
2. Never mess with your storage before backing up your data.
3. RAID IS NOT BACKUP! It is added availability or performance (or both), but not data security.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.