TrueNAS

jh0wlett , in Reinstall without data loss

I’m not sure exactly what your setup is, if you have data in the OS pool that might be gone, unless you can boot the system from a stick and mount that disk to copy data over. Zpool export isn’t strictly necessary.

If your data is in a different pool then it should be theoretically easy to just import that pool in a new install.

loo OP ,
@loo@lemmy.world avatar

Hi, thanks for the reply. I reinstalled truenas and everything was fine.

jh0wlett ,

Glad to hear! :)

trilobite ,

This is good to know. I have my OS on nvram and my data pool on a disk array. If u lose a disk on the pool, zfs should take care of that. If I lose the os disk or is gets corrupt, then based on what u say above, it should be easy enough to reinstall Truenas scale on new nvram, import the pool and then import the last config file to setup all the shares which otherwise would have to be setup manually from scratch. Does that sound right?

jh0wlett ,

I’ll be honest, I never tried it that way. But it should be possible. If you have the possibility, I’d advise to simulate that in a VM, then you’ll know for sure! But basically importing zpools should even be OS agnostic, as it is an open standard that you can just install on any OS. I’ve heard stories about people even migrating pools from core to scale and vice versa, which is going from BSD (core) to scale (debian linux).

SteveTech , in SMB not working in Scale 23.10 (following Core migration) [SOLVED]

Have you set any auxiliary parameters? I think there a section for the SMB service, and one in each of the shares.

I had one become invalid, which would make truenas not save settings.

thumdinger OP ,

Thanks for the clue. I haven’t been able to find anything in my config. Is there supposed to be a text field for setting auxiliary parameters, or are we just referring to advanced options here? Do they need to be configured via the shell in Scale? I’ve included screenshots of my SMB/share config below.

Next step will be to just install Scale fresh and re-config from scratch, importing the existing pool. This will hopefully eliminate any odd parameters that shouldn’t have been carried over from BSD.

Also, and I’m just venting now, why isn’t any of this mentioned in the Truenas article for the migration, or the supplemental “Preparing to Migrate…” article…?

www.truenas.com/docs/scale/…/migratingfromcore/

www.truenas.com/docs/scale/…/migrateprep/

Samba Config

https://lemmy.world/pictrs/image/e84fbb7c-2a38-4949-8f65-ae569dd5688e.png

Advanced Settings

https://lemmy.world/pictrs/image/23bfa0de-1899-4414-a187-120d579824b1.png

Config for a new share, created for a new test dataset:

https://lemmy.world/pictrs/image/1c7965e6-d514-4135-8957-17a46741a890.png

I have tried both the default share parameters, and the private SMB dataset and shares options for Purpose https://lemmy.world/pictrs/image/f0a200ff-2784-4df6-b248-5ceb4dd3a71e.png

https://lemmy.world/pictrs/image/814fc1d7-b012-4254-adcf-6439ace2e822.png

https://lemmy.world/pictrs/image/8c0fda1d-b22b-40a9-8fb7-accdbbfd3b30.png

SteveTech ,

Yeah mine has a text field that says ‘Auxiliary Parameters’ inside the ‘Advanced Settings’

System Settings > Services > SMB (/ui/services/smb):

https://programming.dev/pictrs/image/6a530c73-0b0a-48ef-9255-f4dc450d5fb5.png

Shares > Edit SMB:

https://programming.dev/pictrs/image/3c9ea7b3-f9fd-4b6a-9e73-e62b88f920c0.png

I am slightly out of date with 22.12.3 though, so maybe they removed it?

I see you’ve solved it anyway though.

thumdinger OP ,

Yeah they must have removed the fields in 23.10. Thanks again

finkrat , in At what point should I start worrying about my hard drive temps?/s

Drive: reports -1 for a test

Application: “Guess the universe is melting”

kubica , in At what point should I start worrying about my hard drive temps?/s
@kubica@kbin.social avatar

We found the guy responsible of the climate change.

Sleeping OP Mod ,
@Sleeping@programming.dev avatar

Whoops, you found me. :P

AttackPanda ,

Dude I think your drive achieved nuclear fusion. Congrats man. I assume the Nobel committee will be in touch shortly.

elbarto777 ,

If only it was cold fusion, though…!

lemmyng , in ZFS Relication Exclude Directories
@lemmyng@lemmy.ca avatar

Put the ISOs in a different dataset from your irreplaceable media, and only snapshot the latter?

MSgtRedFox , in Truenas failover server
@MSgtRedFox@infosec.pub avatar

The answer to this is a little more dependent on what you have running on your primary. If it’s solely a file share, then yes. Rsync can be used to simply mirror your pool from one host to another, effectively making a mirror copy.

If you are running applications like jails, plugins, etc, then this answer can sometimes become more complex. Sometimes those applications, jails, whatever only need to have their files copied, which might mean you have to create the application on your backup and then restore the files.

Certain applications that are more complex are affected by a concept called crash consistency. If something uses a database or vm that’s reading and writing, when you copy the database it may not be consistent meaning there are things in the middle of being read and written. And that case you needed to have the application stop finish all of its operations and then copy the files. This is likely more complex for may not be applicable to your situation.

If you want to ask specific questions about restoring applications, jails, VMS on trunaz, I would suggest hitting up the trunez community forum after you read the manual a couple of times, they’ll eat your lunch if you ask a question that could be simply answered by reading the manual

FoD , in Hello world! What do you use TrueNAS for? And what's your setup look like?

Just got a system up and running. Silverstone cs382 chassis with 6 12tb drives. 4 are in a striped mirror set and the other two are mirrored. I wanted protection and speed. The os and docker apps each have their own 1tb SSD. Rest of the hardware is old from eBay.

I’m coming from open media vault so although I’m not running anything but rsync now, I will be setting up a wordle clone, an intranet, and backup for family photos. I run some of the same stuff as you but I’ll have to look up what the rest are. Tailscale is something I’ve wanted to do but haven’t dug into it yet.

I may set up a task list for the kids chores as well.

Plex and all the associated things.

Not sure what else yet as I’m still setting up replication and stuff to protect what I have first.

MSgtRedFox , in Question about ZFS
@MSgtRedFox@infosec.pub avatar

No, not really. You’re going to want to read the TrueNas forum primers for ZFS and vdevs if you haven’t already. It’s critically important.

The data parity, error correction, and rebuild is within the zdev. If you lose a drive in the mirror, it’s rebuilt from the other drive in the mirror.

If you lost a disk in a z1 vdevs, it’s rebuilt from the other drives in the set.

A key concept of there is no parity and error correction during the period of a loss of a drive in a mirror or z1 until the resolver is complete. That’s why there’s z2/3/… Or you can create mirrors with more than two disks. Obviously some trades on capacity.

The rebuild speed is more about the drive size. Spinning drives can only write so fast, doesn’t matter how many other disks in the vdev. 4TB is long time, 12TB+ is eternity. SSD, much faster.

jh0wlett OP , (edited )

I wasn’t completely clear I think. I currently have 1*mirror vdev of 8TB each disk. I’m thinking of adding another mirror vdev of the same capacity. That would stripe the data between both. Meaning that per vdev there would be less data. That would lead to quicker (thus safer?) resilversing in the case of a singular disk failure per vdev, correct?

MSgtRedFox ,
@MSgtRedFox@infosec.pub avatar

Short of, yes.

If you have two 8TB drives in mirror, oddly, ZFS doesn’t move the existing data when you add a second vdev of two drives. All newly written data will be stripped across both sets. If you want your existing data stripped, you have to move it back on.

As for rebuild(resilver), the data on the other device in the vdev and CPU power rebuilds the missing data.

If you have less data on each vdev, then only then could you consider it faster than if the vdev had more data on it. You are basically making the point that restoring less data is faster than more data.

People usually end up with more data as they expand a pool. This makes rebuild slower.

If you plan on lots of data, or want more protection, use z2. If you need performance like hosting VMs or databases, then use mirrors.

jh0wlett OP ,

I think for now that should be fine. I got daily cloud backups, and got a way to remotely turn off the PC if a disk degrades or faults. I might also even get a disk as hot or cold spare just to be sure. With 2 mirrors I got quite a bit of performance, and in a sense better off than with a single mirror.

I’m using the storage to host Nextcloud, and the performance was just not really good enough with a singular disk of speed. I’m hosting it for me and the wife so we can both share pictures with each other without needing a privacy invasive third party :)

possiblylinux127 , in At what point should I start worrying about my hard drive temps?/s
@possiblylinux127@lemmy.zip avatar

You might want to invest in liquid helium cooling

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • All magazines