Truenas Core no gui nor SMB shares

stevenovice

Cadet
Joined
Aug 28, 2022
Messages
5
First time poster and just as my name suggests I am very new to this and hoping that someone can suggest some help on getting the server operational. Here is a little background on where I am at. I received a bunch of hard drives from my work. I decided to build a NAS for as cheap as I could. I put this together with mostly outdated components. I have less than fifty dollars into this server. It has been working for around two months, pretty decently for an old Core2Duo processor, when I went looking for something else to do with it and decided to try out plex. Today I went into the gui jails and created one. I was asked which pool to use. I pointed it at the only pool I had created. Next I went into plugins and received an error that boiled down to it was unable to get to github. Some searching pointed me to setting a gateway and DNS address. I set the gateway as my router and the DNS as the same router address. I rebooted. Now the web page nor the SMB shares work. After a bunch of playing around I have the server booting and it shows up to the console with options 1-11 available. I can ping the server and it replies but otherwise it is not available.

All I need operations is the SMB share as I would like to get what I put on the drives back off. In the meantime I purchased a much more modern motherboard and plan to completely rebuild the server with better hardware within a month. I think I am running 12.0 but as I am completely unfamiliar with BSD I am uncertain how to confirm even that. I can see from the console that option 9 offers up a shell. I hate to state the obvious but any command line suggestions would probably need me to enter them thorough this shell. Is that correct? Any help would be appreciated.
 

stevenovice

Cadet
Joined
Aug 28, 2022
Messages
5
Well, I let it sit powered down for around 48 hours and today when I powered it on, the web page is operational but the disk pool is empty. I can see all seven hard drives. One is listed as the boot-pool the other six show pool N/A. Is there any way to recover the original pool? I can now report that I am running 12.0-U8.1. There are two boot environments listed. Both are dated 7/16, likely the day I put this computer together.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
What do you see from zpool import at the shell?
 

stevenovice

Cadet
Joined
Aug 28, 2022
Messages
5
In reply to that command I received this:

Pool: HDPool
id: 9105795029914500690
state: ONLINE
action: the pool can be imported using its name on numeric identifier
config:

HDPool
raidz1-0
gptid/0f664458-06d7-11rd-9107-001a92d7b555 online
the above line repeated 5 more times, probably representing the six hard drives. Most of the information was the same except the portion immediately following the gptid/. The portion that started 06d7- was the same on each line.

I appreciate the help.

What next?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
the above line repeated 5 more times, probably representing the six hard drives. Most of the information was the same except the portion immediately following the gptid/. The portion that started 06d7- was the same on each line.

That's your pool topology and what would have been helpful is to see it in full (in code tags so the spacing is shown properly).

What we would be looking for is 2 things...

That all of your disks are at the same level (underneath the RAIDZ1 with the same indent) to ensure you don't have an additional single-drive VDEV, and

That all of those disks are showing as online (like the first one you listed) to ensure we would expect the pool to import.

If those things were OK (and I'm assuming from the header summary that they are), then you would run:
zpool import HDPool

then, if that works:
zpool export HDPool

Then go to Storage | Pools and click the Add button, then select "Import an existing pool"
 

stevenovice

Cadet
Joined
Aug 28, 2022
Messages
5
That did it. The pool has been created. I cannot access the pool from my laptop yet. I did create an SMB share but need to do a search on how to create an account and authorize the account to the share. I found that information once. I think I can find it again. I also need to locate some decent documentation on TrueNAS Core and start to get familiar with it. At least so that I can do some basic stuff.

Thank you for the help.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
I also need to locate some decent documentation on TrueNAS Core
Have you considered the following the listings in Documentation link on the masthead? Three clicks or so from there takes you to https://www.truenas.com/docs/core/coretutorials/

There's lots of help here to back that source up.

Learning suggestions:
  • connecting with your server via SSH - which requires a bit of setup; if your client machine is windows;
  • install WinSCP for a more familiar-looking access app;
  • and - get comfortable with the Search Tools here in the Forums so that you can tap into the wisdom resource on topics already covered (and often flogged to death) here.
Good luck.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
connecting with your server via SSH - which requires a bit of setup; if your client machine is windows;
Not if it's Windows 10 or newer--they ship with SSH.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Not if it's Windows 10 or newer--they ship with SSH.
Thanks @danb35 ! I meant to detail that but forgot ... winkey+x takes you to Powershell, then ssh root@severname, prompts for password, and "you're in".
 

stevenovice

Cadet
Joined
Aug 28, 2022
Messages
5
I got the authority working and access to my data again. I plan to back up the data. Play around with the current configuration and get plex installed. Once I succeed with those steps I will dismantle what I put together and build a new NAS with better hardware. I may add another drive or two. I will also get some documentation downloaded to peruse.

Thanks everyone.
 
Top