SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
[RFE] Backup integrity monitor
Author Message
Post [RFE] Backup integrity monitor 
Hi all,

I was just thinking about my virtual tapes and the chances of a failed sector or
two going un-noticed until I needed to restore my data.
My solution, not that I have written it yet or have the time at the moment is an
addition to the daily backup schedule that runs an MD5 hash of each virtual tape:
Step 1. After backup run MD5 against latest backup, and store data in DB (Text
file?)
Step 2. run MD5 hash on all other virtual tapes and check against recorded
hashes in DB. If anything has changed send mail.
If a virtual tape is encountered that is not in the DB add it to the DB.

With luck I will get a script working at some point but if anyone has the time I
would be very happy to accept free labour Wink

Thanks,
Chris.

Post [RFE] Backup integrity monitor 
On Tue, 29 Mar 2011 12:01:49 +0100
Chris Lee <cslee-list < at > cybericom.co.uk> wrote:

I was just thinking about my virtual tapes and the chances of a
failed sector or two going un-noticed until I needed to restore my
data.

Modern hard drives handle bad sectors for you transparently. They swap
in a spare sector, without notifying you. The only way you will see a
report is if the hard drive runs out of spare sectors. If you see a bad
sector report, you have worse problems than a bad backup. Go buy a
replacement drive immediately.

If you are concerned about the reliability of your hard drives, look
into smartmontools. It uses the drive's firmware to test and collect
data. Unfortunately sometimes the reports can be rather cryptic to the
non-hard-drive-literate.

--

Charles Curley /"\ ASCII Ribbon Campaign
Looking for fine software \ / Respect for open standards
and/or writing? X No HTML/RTF in email
http://www.charlescurley.com / \ No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB

Post [RFE] Backup integrity monitor 
On 3/29/11 10:00 AM, Charles Curley wrote:
On Tue, 29 Mar 2011 12:01:49 +0100
Chris Lee<cslee-list < at > cybericom.co.uk> wrote:

I was just thinking about my virtual tapes and the chances of a
failed sector or two going un-noticed until I needed to restore my
data.
Modern hard drives handle bad sectors for you transparently. They swap
in a spare sector, without notifying you. The only way you will see a
report is if the hard drive runs out of spare sectors. If you see a bad
sector report, you have worse problems than a bad backup. Go buy a
replacement drive immediately.

If you are concerned about the reliability of your hard drives, look
into smartmontools. It uses the drive's firmware to test and collect
data. Unfortunately sometimes the reports can be rather cryptic to the
non-hard-drive-literate.

Or go with ZFS on Solaris or FreeBSD or ... see http://en.wikipedia.org/wiki/ZFS#Platforms.

See http://www.zdnet.com/blog/storage/zfs-data-integrity-tested/811


--
---------------

Chris Hoogendyk

-
O__ ---- Systems Administrator
c/ /'_ --- Biology& Geology Departments
(*) \(*) -- 140 Morrill Science Center
~~~~~~~~~~ - University of Massachusetts, Amherst

<hoogendyk < at > bio.umass.edu>

---------------

Erdös 4

View user's profile Send private message
Post [RFE] Backup integrity monitor 
On Tue, Mar 29, 2011 at 10:26:29AM -0400, Chris Hoogendyk wrote:


On 3/29/11 10:00 AM, Charles Curley wrote:
On Tue, 29 Mar 2011 12:01:49 +0100
Chris Lee<cslee-list < at > cybericom.co.uk> wrote:

I was just thinking about my virtual tapes and the chances of a
failed sector or two going un-noticed until I needed to restore my
data.
Modern hard drives handle bad sectors for you transparently. They swap
in a spare sector, without notifying you. The only way you will see a
report is if the hard drive runs out of spare sectors. If you see a bad
sector report, you have worse problems than a bad backup. Go buy a
replacement drive immediately.

If you are concerned about the reliability of your hard drives, look
into smartmontools. It uses the drive's firmware to test and collect
data. Unfortunately sometimes the reports can be rather cryptic to the
non-hard-drive-literate.

Or go with ZFS on Solaris or FreeBSD or ... see http://en.wikipedia.org/wiki/ZFS#Platforms.

See http://www.zdnet.com/blog/storage/zfs-data-integrity-tested/811

I think BtrFS also checksums data and metadata.

jon

--
Jon H. LaBadie jon < at > jgcomp.com
JG Computing
12027 Creekbend Drive (703) 787-0884
Reston, VA 20194 (703) 787-0922 (fax)

Post [RFE] Backup integrity monitor 
Another option is to use ZFS, which provides end-to-end data integrity checking. There are two current Linux offerings. Zfs-fuse is a little slow, but definately Usable. Zfs-on-linux is newer but progressing fast toward production ready

Charles Curley <charlescurley < at > charlescurley.com> wrote:

On Tue, 29 Mar 2011 12:01:49 +0100
Chris Lee <cslee-list < at > cybericom.co.uk> wrote:

I was just thinking about my virtual tapes and the chances of a
failed sector or two going un-noticed until I needed to restore my
data.

Modern hard drives handle bad sectors for you transparently. They swap
in a spare sector, without notifying you. The only way you will see a
report is if the hard drive runs out of spare sectors. If you see a bad
sector report, you have worse problems than a bad backup. Go buy a
replacement drive immediately.

If you are concerned about the reliability of your hard drives, look
into smartmontools. It uses the drive's firmware to test and collect
data. Unfortunately sometimes the reports can be rather cryptic to the
non-hard-drive-literate.

--

Charles Curley /"\ ASCII Ribbon Campaign
Looking for fine software \ / Respect for open standards
and/or writing? X No HTML/RTF in email
http://www.charlescurley.com / \ No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB

Post [RFE] Backup integrity monitor 
On 29/03/11 16:29, Jon LaBadie wrote:
On Tue, Mar 29, 2011 at 10:26:29AM -0400, Chris Hoogendyk wrote:

On 3/29/11 10:00 AM, Charles Curley wrote:
On Tue, 29 Mar 2011 12:01:49 +0100
Chris Lee<cslee-list < at > cybericom.co.uk> wrote:

I was just thinking about my virtual tapes and the chances of a
failed sector or two going un-noticed until I needed to restore my
data.
Modern hard drives handle bad sectors for you transparently. They swap
in a spare sector, without notifying you. The only way you will see a
report is if the hard drive runs out of spare sectors. If you see a bad
sector report, you have worse problems than a bad backup. Go buy a
replacement drive immediately.

If you are concerned about the reliability of your hard drives, look
into smartmontools. It uses the drive's firmware to test and collect
data. Unfortunately sometimes the reports can be rather cryptic to the
non-hard-drive-literate.
Or go with ZFS on Solaris or FreeBSD or ... see http://en.wikipedia.org/wiki/ZFS#Platforms.

See http://www.zdnet.com/blog/storage/zfs-data-integrity-tested/811
I think BtrFS also checksums data and metadata.

jon


All the file systems and hard drives only "fix" a problem if they happen to read
the data and find the problem.
What happens while those backups are just sitting there for months with no one
reading them, then we read it and find out there is just not enough left to
repair anything.
It only takes a stray cosmic particle to take out enough data to make a good
backup not good enough, and I would rather know about it before I need it.
Maybe just reading all the bits every day is enough to get the hard drive to
swap out bad blocks, but is the data all still there? was the damage enough to
fool the error correction code?
now that I can read my backups for very little cost I am happy to waste some
processor cycles hashing them to be sure they are all still happy.
Another use I have decided this hashing will be good for is keeping an eye on
all my old photos, and let me know if any of them have gone bad so I can restore
a recent backup.

Chris.

Post [RFE] Backup integrity monitor 
On Tue, Mar 29, 2011 at 08:44:24PM +0100, Chris Lee wrote:

On 29/03/11 16:29, Jon LaBadie wrote:
On Tue, Mar 29, 2011 at 10:26:29AM -0400, Chris Hoogendyk wrote:

On 3/29/11 10:00 AM, Charles Curley wrote:
On Tue, 29 Mar 2011 12:01:49 +0100
Chris Lee<cslee-list < at > cybericom.co.uk> wrote:

I was just thinking about my virtual tapes and the chances of a
failed sector or two going un-noticed until I needed to restore my
data.
Modern hard drives handle bad sectors for you transparently. They swap
in a spare sector, without notifying you. The only way you will see a
report is if the hard drive runs out of spare sectors. If you see a bad
sector report, you have worse problems than a bad backup. Go buy a
replacement drive immediately.

If you are concerned about the reliability of your hard drives, look
into smartmontools. It uses the drive's firmware to test and collect
data. Unfortunately sometimes the reports can be rather cryptic to the
non-hard-drive-literate.
Or go with ZFS on Solaris or FreeBSD or ... see http://en.wikipedia.org/wiki/ZFS#Platforms.

See http://www.zdnet.com/blog/storage/zfs-data-integrity-tested/811
I think BtrFS also checksums data and metadata.

jon


All the file systems and hard drives only "fix" a problem if they
happen to read the data and find the problem.
What happens while those backups are just sitting there for months
with no one reading them, then we read it and find out there is just
not enough left to repair anything.
It only takes a stray cosmic particle to take out enough data to
make a good backup not good enough, and I would rather know about it
before I need it.

If your checksum application detects an error, would you be able
to fix it? Probably not. If you still have the original, you
could back it up again.

But ZFS automatically gives you back corrected data for 1-bit,
and I think, 2-bit errors.

jl
--
Jon H. LaBadie jon < at > jgcomp.com
JG Computing
12027 Creekbend Drive (703) 787-0884
Reston, VA 20194 (703) 787-0922 (fax)

Post [RFE] Backup integrity monitor 
On 3/29/2011 12:44, Chris Lee wrote:

On 29/03/11 16:29, Jon LaBadie wrote:
On Tue, Mar 29, 2011 at 10:26:29AM -0400, Chris Hoogendyk wrote:

On 3/29/11 10:00 AM, Charles Curley wrote:
On Tue, 29 Mar 2011 12:01:49 +0100
Chris Lee<cslee-list < at > cybericom.co.uk> wrote:

I was just thinking about my virtual tapes and the chances of a
failed sector or two going un-noticed until I needed to restore my
data.
Modern hard drives handle bad sectors for you transparently. They swap
in a spare sector, without notifying you. The only way you will see a
report is if the hard drive runs out of spare sectors. If you see a
bad
sector report, you have worse problems than a bad backup. Go buy a
replacement drive immediately.

If you are concerned about the reliability of your hard drives, look
into smartmontools. It uses the drive's firmware to test and collect
data. Unfortunately sometimes the reports can be rather cryptic to the
non-hard-drive-literate.
Or go with ZFS on Solaris or FreeBSD or ... see
http://en.wikipedia.org/wiki/ZFS#Platforms.

See http://www.zdnet.com/blog/storage/zfs-data-integrity-tested/811
I think BtrFS also checksums data and metadata.

jon


All the file systems and hard drives only "fix" a problem if they
happen to read the data and find the problem.
What happens while those backups are just sitting there for months
with no one reading them, then we read it and find out there is just
not enough left to repair anything.
It only takes a stray cosmic particle to take out enough data to make
a good backup not good enough, and I would rather know about it before
I need it.
Maybe just reading all the bits every day is enough to get the hard
drive to swap out bad blocks, but is the data all still there? was the
damage enough to fool the error correction code?
now that I can read my backups for very little cost I am happy to
waste some processor cycles hashing them to be sure they are all still
happy.
Another use I have decided this hashing will be good for is keeping an
eye on all my old photos, and let me know if any of them have gone bad
so I can restore a recent backup.

Chris.
ZFS stores the integrity verification and repair data on disk, has
options to keep complete duplicates or just parity data, and performs
integrity checks before writing, after writing, and on demand (in the
form of a "scrub"), and works automatically without appreciable user
intervention. Supports automatic physical disk mirroring, and raid
5-themed raidz, which lacks the write hole. If you REALLY want to
ensure checksums are run directly after a backup, you can write the
following script:
run-backup.sh
#!/bin/bash
amdump $1
zfs scrub $2
# usage: run-backup [backup set] [zpool it's stored on]
and call "run-backup.sh DailySet1 backup-pool" from cron.

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB