csoltenborn
Cadet
- Joined
- Feb 7, 2021
- Messages
- 7
Hi,
I have a degraded TrueNAS pool, and I'm writing in the hope that you guys can help me out. And please let me know in case this isn't the the right place to ask...
I'm running TrueNAS Core 12.0-U4 on the following hardware: Asus B450M-A/CSM, AMD Ryzen 5 3400G, 2x 8GB Corsair DIMM DDR4-3000, 2x 16GB SanDisk Ultra Fit (Boot Device), 2x 4TB WD Red Plus SA3, 1x 512GB HDD TOSHIBA MK5061GSYN, 1x 256GB SSD SAMSUNG MMDOE56G5MXP-0VB.
The degraded pool is Main, which consists of the two 4TB WD HDDs (in mirror mode). Relevant structure of Main (not sure how to print that info via zpool):
Main (Filesystem)
-- Media (Filesystem)
-- VMs (Filesystem)
----- HomeAssistant_OS (Volume)
----- Ubuntu-94ajr6 (Volume)
The HomeAssistant_OS volume is an installation of HomeAssistant OS (following this tutorial if I remember correctly: https://community.home-assistant.io...os-on-freenas-without-iocage-or-docker/133738).
Output of "zpool status -v Main":
pool: Main
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: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
scan: scrub repaired 0B in 02:02:46 with 15 errors on Wed Jun 16 04:02:46 2021
config:
NAME STATE READ WRITE CKSUM
Main DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
gptid/60e2112b-0bab-11eb-90a2-3c7c3f7ce9b6 DEGRADED 0 0 52 too many errors
gptid/60eeea63-0bab-11eb-90a2-3c7c3f7ce9b6 DEGRADED 0 0 52 too many errors
errors: Permanent errors have been detected in the following files:
Main/VMs/HomeAssistant_OS@manual-2021-05-21_14-20:<0x1>
Main/Media:<0x0>
I have also attached the output of smartctl for drives ada2 and ada3 (the WD HDDs) - looks good to me (the drives are pretty new), but I'm not completely sure.
Now, I do not see any issues despite the fact that my HomeAssistant VM does not start any more - if I boot the machine and connect via VNC, I get lots of errors as seen in the attached screenshot (no idea how to copy VNC's output), and that never appears to stop.
So, here are my questions:
1) I do not understand the file format of the the zpool command - what does "@manual-2021-02-21_14-20:<0x1>" mean? The part after the @ obviously points to a snapshot, but what about the rest? Same for the other "file": What is "Main/Media:<0x0>"?
2) Unfortunately, I do not have a backup (this is not a critical system - I have now ordered an external backup drive
). Is there any way to repair the VM (or at least save my HomeAssistant configuration files from it)?
3) I suspect that the problem has been caused by an "unscheduled system reboot" reported by TrueNAS in the context of the problem (probably either because TrueNAS crashed or because of a power outage!? Not sure). Is there anything I can do to prevent the file system from being corrupted by problems like this?
4) Is there any tutorial which systematically explains how to solve problems like this? I'm a bit surprised by the lack of information/help TrueNAS provides for my problem via the UI...
Thanks in advance
Christian
I have a degraded TrueNAS pool, and I'm writing in the hope that you guys can help me out. And please let me know in case this isn't the the right place to ask...
I'm running TrueNAS Core 12.0-U4 on the following hardware: Asus B450M-A/CSM, AMD Ryzen 5 3400G, 2x 8GB Corsair DIMM DDR4-3000, 2x 16GB SanDisk Ultra Fit (Boot Device), 2x 4TB WD Red Plus SA3, 1x 512GB HDD TOSHIBA MK5061GSYN, 1x 256GB SSD SAMSUNG MMDOE56G5MXP-0VB.
The degraded pool is Main, which consists of the two 4TB WD HDDs (in mirror mode). Relevant structure of Main (not sure how to print that info via zpool):
Main (Filesystem)
-- Media (Filesystem)
-- VMs (Filesystem)
----- HomeAssistant_OS (Volume)
----- Ubuntu-94ajr6 (Volume)
The HomeAssistant_OS volume is an installation of HomeAssistant OS (following this tutorial if I remember correctly: https://community.home-assistant.io...os-on-freenas-without-iocage-or-docker/133738).
Output of "zpool status -v Main":
pool: Main
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: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
scan: scrub repaired 0B in 02:02:46 with 15 errors on Wed Jun 16 04:02:46 2021
config:
NAME STATE READ WRITE CKSUM
Main DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
gptid/60e2112b-0bab-11eb-90a2-3c7c3f7ce9b6 DEGRADED 0 0 52 too many errors
gptid/60eeea63-0bab-11eb-90a2-3c7c3f7ce9b6 DEGRADED 0 0 52 too many errors
errors: Permanent errors have been detected in the following files:
Main/VMs/HomeAssistant_OS@manual-2021-05-21_14-20:<0x1>
Main/Media:<0x0>
I have also attached the output of smartctl for drives ada2 and ada3 (the WD HDDs) - looks good to me (the drives are pretty new), but I'm not completely sure.
Now, I do not see any issues despite the fact that my HomeAssistant VM does not start any more - if I boot the machine and connect via VNC, I get lots of errors as seen in the attached screenshot (no idea how to copy VNC's output), and that never appears to stop.
So, here are my questions:
1) I do not understand the file format of the the zpool command - what does "@manual-2021-02-21_14-20:<0x1>" mean? The part after the @ obviously points to a snapshot, but what about the rest? Same for the other "file": What is "Main/Media:<0x0>"?
2) Unfortunately, I do not have a backup (this is not a critical system - I have now ordered an external backup drive
3) I suspect that the problem has been caused by an "unscheduled system reboot" reported by TrueNAS in the context of the problem (probably either because TrueNAS crashed or because of a power outage!? Not sure). Is there anything I can do to prevent the file system from being corrupted by problems like this?
4) Is there any tutorial which systematically explains how to solve problems like this? I'm a bit surprised by the lack of information/help TrueNAS provides for my problem via the UI...
Thanks in advance
Christian