* Superblock backup
@ 2012-05-10 17:44 Piergiorgio Sartor
2012-05-10 22:50 ` NeilBrown
0 siblings, 1 reply; 3+ messages in thread
From: Piergiorgio Sartor @ 2012-05-10 17:44 UTC (permalink / raw)
To: linux-raid
Hi,
again, following the RAID-5 story, I was wondering
if could make sense to have a new superblock type,
let's say 2.x, having backup copies (of persistent
or quasi persistent data) in different areas of the
drive components.
This would be similar to filesystem or gpt.
Is there anything planned for this?
In any case, it would be still interesting to have
a "backup" capability at hand, like a "dd" of the
superblock to some secure file.
Any idea or suggestions?
Thanks,
bye,
--
piergiorgio
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Superblock backup
2012-05-10 17:44 Superblock backup Piergiorgio Sartor
@ 2012-05-10 22:50 ` NeilBrown
2012-05-11 18:15 ` Piergiorgio Sartor
0 siblings, 1 reply; 3+ messages in thread
From: NeilBrown @ 2012-05-10 22:50 UTC (permalink / raw)
To: Piergiorgio Sartor; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]
On Thu, 10 May 2012 19:44:31 +0200 Piergiorgio Sartor
<piergiorgio.sartor@nexgo.de> wrote:
> Hi,
>
> again, following the RAID-5 story, I was wondering
> if could make sense to have a new superblock type,
> let's say 2.x, having backup copies (of persistent
> or quasi persistent data) in different areas of the
> drive components.
> This would be similar to filesystem or gpt.
>
> Is there anything planned for this?
This is one of the idea that has floated around in my head for a while,
possibly a v1.3 metadata.
However my thought there was always to protect against a bad block on the
device. Protecting against data corruption due to bugs or sys-admin mistakes
is always best handled by backups.
e.g. take a 'dump' (either binary or textual) of the metadata every day, or
every reboot or something. (And store it on a different host).
Both are probably useful, but for the recently problem, a regular backup
would be the most useful.
>
> In any case, it would be still interesting to have
> a "backup" capability at hand, like a "dd" of the
> superblock to some secure file.
"mdadm -E" would probably be enough - just write a cron job :-)
NeilBrown
>
> Any idea or suggestions?
>
> Thanks,
>
> bye,
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Superblock backup
2012-05-10 22:50 ` NeilBrown
@ 2012-05-11 18:15 ` Piergiorgio Sartor
0 siblings, 0 replies; 3+ messages in thread
From: Piergiorgio Sartor @ 2012-05-11 18:15 UTC (permalink / raw)
To: NeilBrown; +Cc: Piergiorgio Sartor, linux-raid
iHi Neil,
> > In any case, it would be still interesting to have
> > a "backup" capability at hand, like a "dd" of the
> > superblock to some secure file.
>
> "mdadm -E" would probably be enough - just write a cron job :-)
actually, I was thinking "dd" because a restore
operation could be another "dd" (from file to device).
Does this make sense? Or old superblocks should
never replace newer ones?
I mean, let's say each day the first few MB of
each component device is stored somewhere.
As soon as some irreparable damage happens, the
files can be restored in the proper devices.
Practically rolling back to the previous day
the superblock status.
Would this work?
Thanks,
bye,
--
piergiorgio
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-11 18:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10 17:44 Superblock backup Piergiorgio Sartor
2012-05-10 22:50 ` NeilBrown
2012-05-11 18:15 ` Piergiorgio Sartor
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).