Need help recovering my old TrueNAS/FreeNas setup

In the TrueNAS UI go to Credentials > Users and set a password for the “root” user. Also check the “ssh access” box for that user. It must be the root user, you cannot use another one for what we are trying to do.

Then in WinSCP use “root” as the username and the password you just set.

1 Like

You’re a genius! I’m copying my backup to external drive now.

Thanks a million.

OK, today I got an update for my drives and they will be here today, roughly 8 hours. I ordered 3 WD Red Plus 10TB drives (WD100EFGX).

I originally had SRM drives that need replacing. But the pool is degraded (I was able to do a full backup). Is there anything special I should do to fix the degraded pool?

I was wondering how I should swap out the drives without losing the current pool. or should I just start a fresh install?

Is there any other pre-setup that should be done?

If they were SRM drives it might be faster to make a new pool & copy data over vs resilvering 1 disk at a time (also safer)

1 Like

My SMART tests are aborting (sleeping) on me. How do I keep it alive long enough to run the long SMART tests?

…that uhh - shouldn’t happen to my knowledge. You’re running the tests on TrueNAS? Using CLI or the GUI?

I am using the GUI on my gaming PC to do long smart checking and my browser goes to sleep, when I wake, then it is aborted.

Try smartctl -a /dev/sdx (replace ‘x’ as needed) in the shell, should run until completion (I’m assuming you’re running it on TrueNAS but accessing it from your gaming pc & not that you have the drive plugged into your gaming PC & that it is being put to sleep by the OS)

So should I do it in the NAS or though my PC in the GUI?

OK, I did it though GUI shell, and it errors.

zsh:command not found: smartctl

You probably need sudo before the command to pull the drive data.

1 Like

sudo smartctl -a /dev/sdb

I used this command, but I’m not sure if this does a long smart scan.

I used smartctl -a /dev/sdb for second drive.

-a or -x read results. To initiate a long test:
sudo smartctl -t long /dev/sdb
…and then leave the computer/NAS powered on for the duration of the test (sleep doesn’t matter) and come back to it (-a) some time after expected completion.

1 Like

you can read the manual for commands by running man like man smartctl

Omg sorry, it should have been -t long instead of -a, mixed them up out of habbit to checking results more frequently than manually testing

No problem, with SmallBarky’s suggestion, I figured it out. It said it would be done 10:05 PM (PST).

Thanks for the help, again.

1 Like

Well, I didn’t get a report of the stress test of the long SMART test in GUI. It keeps disappearing (sleeping)?

Is there a command to show it’s progress? I seen nothing in the “man” for a report that it finished either.

I’m almost an hour past the time. Maybe it’ll show up in the morning. It’s getting late for me.

Remember the wrong command I gave earlier? smartctl -a /dev/sdx - that actually outputs the test results. Nothing gives any kind of indication that the test is done. Edit: it’ll give a note somewhere in the output if the test is still ongoing.

The test silently runs on the drive itself, so the GUI is never going to report anything.
You note down the expected time of completion (assuming that drive is inactive), and purposefully come back some time after that (to account for pool activity which might have slowed down the test).

This is also why it doesn’t matter if your TrueNAS GUI logs you or your client computer sleeps. The drive running the SMART test will do so on it’s own as long as the TrueNAS server remains powered up.

Ah that makes sense, it just reports when something is wrong.

On a side note, I was having so much trouble configuring Truenas, then I was watching another video, and he has pretty much the exact same setup as me.

I wiped my truenas server completely with using a win11 install USB, then cleaned each drive with diskpart, and wiped each drive as empty and reinstalled truenas and followed the guide and everything is running smooth, so far.

Again, thanks for everyone’s help.

2 Likes