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

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
chrisfromgreece
Posts: 42
Joined: Mon Feb 19, 2018 11:19 am

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

Post 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:
JTJersey
Posts: 11
Joined: Sat Apr 03, 2021 8:18 pm

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

Post 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.
grahamperrin
Posts: 84
Joined: Sun Sep 04, 2016 6:06 am

OpenZFS: reportedly permanent errors following a disruption

Post 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.
grahamperrin
Posts: 84
Joined: Sun Sep 04, 2016 6:06 am

UFS

Post 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.
Last edited by grahamperrin on Sun Jun 13, 2021 5:49 am, edited 1 time in total.
grahamperrin
Posts: 84
Joined: Sun Sep 04, 2016 6:06 am

Hard disk drives and power outages

Post 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?
JTJersey
Posts: 11
Joined: Sat Apr 03, 2021 8:18 pm

Re: Hard disk drives and power outages

Post 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.
Post Reply