Page 1 of 1

We had a power outage today and one hdd has been affected corrupting some files

Posted: Mon May 24, 2021 2:12 pm
by chrisfromgreece
We had a power outage today and one hdd has been affected corrupting some files
I don't know but i didn't used these files for sure its some steam files.
Is there any way i can do something about those files ?
Would i have this problem with ufs too ? i don't know but that never happened with ufs or other bsds and filesystems




pool: Diskos
state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
scan: scrub repaired 0B in 00:06:49 with 14 errors on Mon May 24 19:22:09 2021
config:

NAME STATE READ WRITE CKSUM
Diskos ONLINE 0 0 0
ada1 ONLINE 0 0 0

errors: Permanent errors have been detected in the following files:

Re: We had a power outage today and one hdd has been affected corrupting some files

Posted: Wed Jun 09, 2021 12:44 pm
by JTJersey
If a power outage damaged your HDD not much you can do except restore from a backup. You do have backups, right? I'd also replace that drive and get a UPS.

OpenZFS: reportedly permanent errors following a disruption

Posted: Sun Jun 13, 2021 5:36 am
by grahamperrin
chrisfromgreece wrote: Mon May 24, 2021 2:12 pm

errors: Permanent errors have been detected in the following files:
Can you tell us which files?

zpool status -v

Then:

zpool scrub Diskos

In my experience: a simple scrub is nearly always (maybe always) enough to handle errors that are reportedly permanent, following interruptions such as loss of power – even where the pool comprises just one device.

It's possible that I have been lucky, repeatedly, however my gut tells me that OpenZFS is designed to minimise the risk of truly permanent damage.

UFS

Posted: Sun Jun 13, 2021 5:46 am
by grahamperrin
… Would i have this problem with ufs too ?
Possibly, or probably, worse.
i don't know but that never happened with ufs …
Photographs at https://forums.FreeBSD.org/threads/80655/post-516049 are of a FreeBSD base operating system, on UFS, that was apparently wrecked following an interruption during installation of packages; packages that are separate from the base OS.

https://forums.FreeBSD.org/threads/80655/post-516073 essentially "UFS file system repaired, checked and CLEAN; the operating system remains unusable as a consequence of interruption to power during writes to the file system." in other words, need to wipe the disk and reinstall the OS.

I never found anything so terrible with interruptions whilst writing to ZFS.

Hard disk drives and power outages

Posted: Sun Jun 13, 2021 5:48 am
by grahamperrin
With respect,
JTJersey wrote: Wed Jun 09, 2021 12:44 pm … replace that drive …
– is that not overkill, following a simple power outage?

Re: Hard disk drives and power outages

Posted: Sat Jun 19, 2021 7:00 pm
by JTJersey
grahamperrin wrote: Sun Jun 13, 2021 5:48 am With respect,
JTJersey wrote: Wed Jun 09, 2021 12:44 pm … replace that drive …
– is that not overkill, following a simple power outage?
Not if the drive got fried.