Jump to content

After upgrading to trixie, and keeping the sources unfortunately by mistake in rolling mode, my raid1 was unable to stay ok.


Go to solution Solved by Fabien Aurejac,

Recommended Posts

Posted

I fixed in the past some problems with sata drive by setting to "rolling" the sources in armbian-config.

A few day ago I wanted to upgrade to trixie (debian 13) sources.

I forgot to set up again the armbian-config sources to "stable" and I went in a bad situation with my raid1 : it completely disappeared from /etc/mdadm/mdadm.conf, and was unable to mount.
After several struggling with the command line tools, I managed to get it recreated by the  following command :
 

mdadm --create --force /dev/md0 \
  --level=1 \
  --raid-devices=2 \
  /dev/sdc1 /dev/sdd1 \
  --metadata=1.2 --data-offset=$(( 264192/2 ))K

Now it seems to be syncing, but I think the filesystem was damaged... (though I don't now, perhaps all be ok again after sync) Is there a way other than photorec to get my data back ?

Thanks a lot.

  • Solution
Posted

Hello and thanks for your answer.
Seems that no, I'm trying R-studio now and it's finding 7 superblocks, and for now it has found 5000+ files...
Will try to get this back after the scanning.

Posted

well, I'm certainly happy to hear the good news.  consider yourself lucky.  creating a raid with mdadm should certainly overwrite all your data.  Maybe you got lucky, maybe because you recreated it in the exact same way as before. who knows.  what counts is that you did not loose everything after all.  because that sucks.

Posted

I had the precise information about data-offset from "--examine" mdadm command, and also I was in raid1, that's far less sensitive to error than raid5 or raid0 for example.

I would not have been surprised that the resync, if taken to the end, would have worked...

But I will never know. As far as I know, I get the data back and I'm very lucky and happy. Thank you

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines