Recover Zpool

Good day, Here a other newbie…
I had some problems with my TrueNas verion 12.0-U2
I had selected from the Truenas prompt " Reset Configuration to Defaults"
but now I cant access my Shares.
I can access \Truenas… but then its empty.
When I try \Truenas\Drunick it said " Cannot be found"

I run the floowing command.
root@truenas[~]# zpool status
pool: Drunick
state: DEGRADED
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:
scan: scrub repaired 0B in 19:24:34 with 2 errors on Sun Sep 8 10:24:35 2024
config:
NAME STATE READ WRITE CKSUM
Drunick DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
gptid/48e53be8-8a1b-11ea-8762-408d5c2c0593 DEGRADED 0 0 0 too many errors
gptid/48d221a3-8a1b-11ea-8762-408d5c2c0593 DEGRADED 0 0 0 too many errors
gptid/09e5d346-fb40-11ee-8e74-74563c62f481 ONLINE 0 0 0
gptid/2cfe2472-9549-11ec-a5fb-408d5c2c0593 DEGRADED 0 0 0 too many errors
ada2p2 DEGRADED 0 0 0 too many errors
gptid/956d25b6-3e81-11ed-89e6-e0d55eaf5a7e DEGRADED 0 0 0 too many errors

errors: 1 data errors, use ‘-v’ for a list

pool: boot-pool
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:
scan: scrub repaired 0B in 00:00:05 with 1 errors on Wed Oct 2 03:45:05 2024
config:

nvd0p2 ONLINE 0 0 0

errors: 1 data errors, use ‘-v’ for a list

Then I tried.
root@truenas[~]# zfs list
NAME USED AVAIL REFER MOUNTPOINT
Drunick 11.6T 2.75T 496K /mnt/Drunick
Drunick/.system 1.48G 2.75T 854M legacy
Drunick/.system/configs-965f587e0269498481ffd845a644ea5d 983K 2.75T 983K legacy
Drunick/.system/configs-ee21f3733ab34d689aed5079e9ac663b 221M 2.75T 221M legacy
Drunick/.system/cores 176K 1024M 176K legacy
Drunick/.system/rrd-965f587e0269498481ffd845a644ea5d 22.0M 2.75T 22.0M legacy
Drunick/.system/rrd-ee21f3733ab34d689aed5079e9ac663b 384M 2.75T 384M legacy
Drunick/.system/samba4 18.9M 2.75T 839K legacy
Drunick/.system/services 192K 2.75T 192K legacy
Drunick/.system/syslog-965f587e0269498481ffd845a644ea5d 743K 2.75T 743K legacy
Drunick/.system/syslog-ee21f3733ab34d689aed5079e9ac663b 13.2M 2.75T 13.2M legacy
Drunick/.system/webui 176K 2.75T 176K legacy
Drunick/Files 11.6T 2.75T 11.6T /mnt/Drunick/Files
Drunick/iocage 13.8M 2.75T 12.7M /mnt/Drunick/iocage
Drunick/iocage/download 176K 2.75T 176K /mnt/Drunick/iocage/download
Drunick/iocage/images 176K 2.75T 176K /mnt/Drunick/iocage/images
Drunick/iocage/jails 176K 2.75T 176K /mnt/Drunick/iocage/jails
Drunick/iocage/log 176K 2.75T 176K /mnt/Drunick/iocage/log
Drunick/iocage/releases 176K 2.75T 176K /mnt/Drunick/iocage/releases
Drunick/iocage/templates 176K 2.75T 176K /mnt/Drunick/iocage/templates
boot-pool 1.35G 208G 24K none
boot-pool/ROOT 1.34G 208G 24K none
boot-pool/ROOT/Initial-Install 1K 208G 1.29G legacy
boot-pool/ROOT/default 1.34G 208G 1.33G legacy

Then I try to export the Pool Drunick

root@truenas[~]# zpool export Drunick
cannot unmount ‘/var/db/system/syslog-965f587e0269498481ffd845a644ea5d’: pool or dataset is busy

Then I tried
root@truenas[~]# zpool status -xv
pool: Drunick
state: DEGRADED
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: Message ID: ZFS-8000-8A — OpenZFS documentation
scan: scrub repaired 0B in 19:24:34 with 2 errors on Sun Sep 8 10:24:35 2024
config:

    NAME                                            STATE     READ WRITE CKSUM
    Drunick                                         DEGRADED     0     0 0
      raidz2-0                                      DEGRADED     0     0 0
        gptid/48e53be8-8a1b-11ea-8762-408d5c2c0593  DEGRADED     0     0 0  too many errors
        gptid/48d221a3-8a1b-11ea-8762-408d5c2c0593  DEGRADED     0     0 0  too many errors
        gptid/09e5d346-fb40-11ee-8e74-74563c62f481  ONLINE       0     0 0
        gptid/2cfe2472-9549-11ec-a5fb-408d5c2c0593  DEGRADED     0     0 0  too many errors
        ada2p2                                      DEGRADED     0     0 0  too many errors
        gptid/956d25b6-3e81-11ed-89e6-e0d55eaf5a7e  DEGRADED     0     0 0  too many errors

Please what can I still do?

Is it possible to recover the " Drunick" Pool" ?

I dont have a Backup … (I know Stupid…)

Kind regards
Drunick

you’re running very old version…
did u try boot current 13.3 and see if still same errors happen? but if its hardware failure and you loose more than 2 HDDs from raidZ2 its gone… can be also faulty HBA or if its MOBO ports controller on that.

Hardware please:

Multiple failures suggest a hardware issue: Overheating controller, bad backplane, failing PSU…
You’ve lost a file (zpool status -v to know what), but the pool may still be saved.
12 is not that old; I’d try fixing the issue first, upgrading later, and then 13.0U6.2 rather than 13.3 if you have no jails.

If possible, get more drives for replacements and/or making a backup pool.

Good day , Thanks you all for the fast reply, here is some more information
I have buitld a computer:

  • motherboard - Gigabyte B560M DS3H V2
  • 32 GB memory
  • 6 x 4 TB harddisk
  • SSD 250 GB PNY CS1030 (to boot from)
  • 2 system fans

I dont think (hope) that it are my Harddisks, they where running oke.
I made a mistake bij selecting option 8 (reset Configuration to default)
Because I switch provider.

i run the command as you suggested

root@truenas[~]# zpool status -v
pool: Drunick
state: DEGRADED
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: Message ID: ZFS-8000-8A — OpenZFS documentation
scan: scrub repaired 0B in 19:24:34 with 2 errors on Sun Sep 8 10:24:35 2024
config:

    NAME                                            STATE     READ WRITE CKSUM
    Drunick                                         DEGRADED     0     0 0
      raidz2-0                                      DEGRADED     0     0 0
        gptid/48e53be8-8a1b-11ea-8762-408d5c2c0593  DEGRADED     0     0 0  too many errors
        gptid/48d221a3-8a1b-11ea-8762-408d5c2c0593  DEGRADED     0     0 0  too many errors
        gptid/09e5d346-fb40-11ee-8e74-74563c62f481  ONLINE       0     0 0
        gptid/2cfe2472-9549-11ec-a5fb-408d5c2c0593  DEGRADED     0     0 0  too many errors
        ada2p2                                      DEGRADED     0     0 0  too many errors
        gptid/956d25b6-3e81-11ed-89e6-e0d55eaf5a7e  DEGRADED     0     0 0  too many errors

errors: Permanent errors have been detected in the following files:
/mnt/Drunick/Files/Films/vakantie film 2023.mkv

Pool: boot-pool
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:
scan: scrub repaired 0B in 00:00:05 with 1 errors on Wed Oct 2 03:45:05 2024
config:

    NAME        STATE     READ WRITE CKSUM
    boot-pool   ONLINE       0     0     0
      nvd0p2    ONLINE	 0     0     0

errors: Permanent errors have been deleted in the following files:
//Python3.9.core

I have a spare 4 TB harddisk.

What must I do to save the pool. ?

Kind regards
Patrick

As I see it the pool is mounted, so you should be able to access your files (except the one that is damaged). So you can backup your files to external storage—at least the most important ones.

I would run a scrub and see what ZFS can repair.
You should also run long SMART tests on all drives (you can do it all at the same time: teh test run on the drives) to check their health; this will tell you whether there is a need to replace them.

I suppose that all drives are connected to motherboard SATA ports. Is the chipset overheating? (Probably not but…)
Errors on all drives can result from a faulty PSU. But here the number is “0”, so “too many errors” is puzzling.

I run the command zfs list -r -t filesystem -o space Drunick.
that shows the directories but only the roots.

root@truenas[~]# zfs list -r -t filesystem -o space Drunick
NAME AVAIL USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD
Drunick 2.75T 11.6T 0B 496K 0B 11.6T
Drunick/.system 2.75T 1.48G 0B 854M 0B 666M
Drunick/.system/configs-965f587e0269498481ffd845a644ea5d 2.75T 1.67M 0B 1.67M 0B 0B
Drunick/.system/configs-ee21f3733ab34d689aed5079e9ac663b 2.75T 221M 0B 221M 0B 0B
Drunick/.system/cores 1024M 176K 0B 176K 0B 0B
Drunick/.system/rrd-965f587e0269498481ffd845a644ea5d 2.75T 25.6M 0B 25.6M 0B 0B
Drunick/.system/rrd-ee21f3733ab34d689aed5079e9ac663b 2.75T 384M 0B 384M 0B 0B
Drunick/.system/samba4 2.75T 19.3M 18.5M 839K 0B 0B
Drunick/.system/services 2.75T 192K 0B 192K 0B 0B
Drunick/.system/syslog-965f587e0269498481ffd845a644ea5d 2.75T 823K 0B 823K 0B 0B
Drunick/.system/syslog-ee21f3733ab34d689aed5079e9ac663b 2.75T 13.2M 0B 13.2M 0B 0B
Drunick/.system/webui 2.75T 176K 0B 176K 0B 0B
Drunick/Files 2.75T 11.6T 0B 11.6T 0B 0B
Drunick/iocage 2.75T 13.8M 0B 12.7M 0B 1.03M
Drunick/iocage/download 2.75T 176K 0B 176K 0B 0B
Drunick/iocage/images 2.75T 176K 0B 176K 0B 0B
Drunick/iocage/jails 2.75T 176K 0B 176K 0B 0B
Drunick/iocage/log

is it possible that i have to mount or add the Drunick / Files some where so that I can Access this.

Because from a Windows machine , I can Access \Truenas, but not \Truenas\Drunick
then it gave a error " Files cannot been found"

I hope someone can help me ?

Kind regards
Patrick

Sorry you’re having trouble. But when you “Reset Configuration to Defaults” you deleted all the configurations of your shares and you will need to recreate them to access your data.

If you saved a configuration file from the button on System/General:


then what you should do is hit the Upload Config button also shown there and your shares’ availability should return

Good day, thank you all for your support,
I restored the settings, now I can Access the root and sub, but there is notting in the sub directories or the directories underneath.

What must I do next.

Kind regards
Patrick

Maybe recreate users and groups with suitables UID/GID?

Good day All

I think I have to do one thing … and then my problem is solved.

I can access the NAS and the data set.

\Drunickfiles/(sub) directory)… but I can go lower in the directories.

When I look at the

I recreated us user and give the rights

But still the same problem it can get to drunickfiles\diverse…\ but not lower then that.

Or go to drunickfiles\films\Vakantie 2010\ but not lower and there is more subdirectories underneath that.

Can I run a command that he is going to inventory the sub folders, or must I change some settings

Please help me I feel im so close, and that I can access my files (foto’s off my child)

Patrick

Tick “Apply permissions recursively”.

Many Thanks , that solves the problem, I can access all files , thanks you the support.

1 Like