You right, the problem that my pool was offline, all the drives showed as exported, o tried to import from guy and I tas giving error, so I tris from shell zpool import HDD it was giving som IO error. I tried then zpool import -f HDD and it did import but all the datasets were missing.
Thank to @neofusion and @essinghigh who suggested to change the mounting point with the command zfs set mountpoint=/mnt/HDD HDD I got everything back.
So I don’t know what happened and I don’t know how the mounting post should be but Is working now and I´m most grateful.
Does Truenas has some command to run a diagnostic in case there are some miss configuration?
maybe I should have used zpool import -f /mnt/HDD
As @pmh mentioned, you should export and reimport the pool from UI so that middleware is properly aware. While setting the mountpoint directly might have worked, it’s really not a solution (and I’m going to go back and edit that post to make it more clear to anyone else who reads it).
When you imported via CLI, altroot will have been set to /
, it should be done via GUI so that middleware is aware or as mentioned you will invariably run into issues down the line, and that’s before those disk alerts catch up to you!
1 Like
Sorry for the delay, because it’s a new account I had to wait 24 hr before posting. Yesterday after fixing the mounting points I stopped the scrub when I reboot the system after. After reading @pmh post I tried to export from the GUI with all the option unchecked except the confirm export.
After the export, I then imported back and it apparently worked but the apps were not starting because the patch /mnt/HDD was missing. I tried to gp to the mnt folder, then HDD, there should have been my datasets for the apps but where missing.
So I run zpool import -f /mnt/HDD, this messed things even more, it created another mnt inside the mnt and the HDD in there, then I run again zfs set mountpoint=/mnt/HDD HDD. This sort of fixed the problem, then I deleted the empty mnt folder from the mnt and then I started the scrub manually. This time finished properly.
After the scrub finished, from the GUI, i export the pool with the only option selected Confirm Export again. When finished, from the GUI i imported back the pool and everything is working fine without the need of messing with the terminal.
Anyway thanks allot you guys saved my data. Plex, Nextcloud, Syncthing… What an adventure…
1 Like