linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* The mysterious case of the disappearing superblock ...
@ 2022-01-18 19:51 anthony
  2022-01-18 20:00 ` Phil Turmel
  2022-01-18 23:00 ` NeilBrown
  0 siblings, 2 replies; 10+ messages in thread
From: anthony @ 2022-01-18 19:51 UTC (permalink / raw)
  To: Linux RAID; +Cc: Phil Turmel, NeilBrown

You all know the story of how the cobbler's children are the worst shod, 
I expect :-) Well, the superblock to my raid (containing /home, etc) has 
disappeared, and I don't have a backup ... (well I do but it's now well 
out of date).

So, a new hard drive is on order, for backup ...

Firstly, given that superblocks seem to disappear every now and then, 
does anybody have any ideas for something that might help us track it 
down? The 1.2 superblock is 4K into the device I believe? So if I copy 
the first 8K ( dd if=/dev/sda4 of=sda4.img bs=4K count=2 ) of each 
partition, that might help provide any clues as to what's happened to 
it? What am I looking for? What is the superblock supposed to look like?

Secondly, once I've backed up my partitions, I obviously need to do 
--create --assume-clean ... The only snag is, the array has been 
rebuilt, so I doubt my data offset is the default. The history of the 
array is simple. It's pretty new, so it will have been created with the 
latest mdadm, and was originally a mirror of sda4 and sdb4.

A new drive was added and the array upgraded to raid-5, and I BELIEVE 
the order is sdc4, sda4, sdb1 - sdb1 being the new drive that was added.

Am I safe to assume that sdc4 and sda4 will have the same data offset? 
What is it likely to be? And seeing as it was the last added am I safe 
to assume that sdb1 is the last drive, so all I have to do is see which 
way round the other two should be?

At least the silver lining behind this, is that having been forced to 
recover my own array, I'll understand it much better helping other 
people recover theirs!

Cheers,
Wol

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-01-21 20:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-18 19:51 The mysterious case of the disappearing superblock anthony
2022-01-18 20:00 ` Phil Turmel
2022-01-18 20:11   ` anthony
2022-01-18 23:00 ` NeilBrown
2022-01-19  8:52   ` PANIC OVER! " Wols Lists
2022-01-21 19:28     ` Nix
2022-01-21 19:37       ` Wols Lists
2022-01-21 19:55       ` Wols Lists
2022-01-21 19:42     ` Roger Heflin
2022-01-21 17:04   ` Roger Heflin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).