Backup & Recovery Made Easy: TrueNAS ZFS Replication Tutorial

  Рет қаралды 41,777

Lawrence Systems

Lawrence Systems

Күн бұрын

Пікірлер: 70
@Z0eff
@Z0eff 9 ай бұрын
Having the two different TrueNAS systems use a different color theme makes a huge difference, thanks!
@Mudflap1110
@Mudflap1110 9 ай бұрын
That's basically how I have my 2 truenas boxes setup. Been running them for years now. It works perfectly 😊 That said I still use core. I'll go to scale when core goes EOL
@karelsantana2729
@karelsantana2729 6 ай бұрын
The best contents about truenas, just here, thank u. I have learn a lot since I find ur videos and forums. Thanks again
@parl-88
@parl-88 9 ай бұрын
Loving these TrueNAS Scale videos! Thanks Tom. Great job.
@2008mjb
@2008mjb 9 ай бұрын
This was what I had planned for next week. Perfect timing. Thanks... :)
@jifgif
@jifgif 9 ай бұрын
Just a note, I use Tailscale in subnet router mode on each side. I had to select Netcat Active Site as REMOTE for the replication task to commence.
@jgren4048
@jgren4048 5 ай бұрын
Good tip thanks
@leozendo3500
@leozendo3500 8 ай бұрын
For encryption, the fact you must type a directory name to make a new directory instead of making a dataset and choosing it, is extremely confusing and impossible without this video. Thank you so much. for more info, no matter the property you set for the designation it will not work, unless you double encrypt (encrypted designation inherited folder, and re-encrypt the snapshots sent to put in there).
@Mahesh-j8y
@Mahesh-j8y Ай бұрын
Thanks for the vivid explanation, Tom! Great job.
@mhrsolanki2020
@mhrsolanki2020 Ай бұрын
Hi tom, Thanks for the wonderful video. I am still wondering if it's possible to replicate the snapshots to a cloud provider like OneDrive/Google drive ? (I already have a connection to backup my data there, i am looking for a way to push my snapshots)
@Brakken99
@Brakken99 5 ай бұрын
@LAWRENCESYSTEMS A question that I see myself and others struggle with about snapshots and restoring as a backup solution is: If I just start creating snapshots on an already established dataset that is 4TB in size, and a year from now I need to rebuild that dataset from a catastrophic failure, how would it be rebuilt from the most recent snapshot if it only reflects the last changes of say, a single pdf that was added? Wouldn't restoring with this snapshot only restore what it had detected as what changed since the previous snapshot and nothing before that? I have a hard time wrapping my head around how a 10kb snapshot can restore a 4TB+ dataset with this.
@TheDillio187
@TheDillio187 8 ай бұрын
doing pulls of data from a production TrueNAS to a backup one is a pretty awesome way to create hidden backups.
@mutosanrc1933
@mutosanrc1933 8 ай бұрын
so niceeee. Just what I needed now as I bumbed into problems. Got a secondhand HP DL380 Gen9 to get rid of my very loud and very old IBM 360. Hope I can manage the replication with this tutorial. also boot disk is failing on the old system and dont know if I can replace that so I move to the new system.
@dyong888
@dyong888 4 ай бұрын
Great video. I'm just about to build a 2nd TrueNAS system to do just his. One question: I plan on replicating from the current system that is still running FreeNAS-11.3-U5 to a new system running the latest version of TrueNAS SCALE. Do you think this will be a problem? What can I do instead? Thanks.
@jgren4048
@jgren4048 5 ай бұрын
Thank you so much for this. It helped me realize what I need to do for backup. Question I have , does the drive capacity of the backup server need to be as large as the data set that is snapshot? I ask because say all the data on my main pool is gone. 4 drives dead, z3, so the data is essentially gone. Is it possible to use these snapshots to layer back onto a new pool of drives say larger in capacity than before? That are currently blank? Or would those existing drives also need to be used? Would it be possible to recreate from scratch like that? I’m scared to death to lose my zpool disks and need someway to replicate the data if kind of a total failure happens
@saphy-old
@saphy-old 9 ай бұрын
brilliant, thank you for this well timed video. i don't suppose you have a "cloud sync" tutorial in the works?
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 9 ай бұрын
I have some older videos on CloudBackup I might do some newer ones but the cloud backups are easier than TrueNAS Replication ones.
@jesper1010
@jesper1010 11 күн бұрын
Would it be possible to set this up to send the snapshots to a cloud storage server?
@JonnieZuramski
@JonnieZuramski 6 ай бұрын
Okay, I had a misunderstanding of replication. When a task is completed the files are written to the other pools and appear in a filesystem the same way they are on the source end so you can interact with them. I thought replication stored it in a way where the data wasn't accessible unless recovered. I'll be using this for sure! I have two TrueNAS scale systems one at my house, one at my parents, both running Plex. Would like to back up there to their Plex library so they can also view the movies I add and it seems like this would be a good solution. Does that sound about right?
@ramachandrants2849
@ramachandrants2849 6 ай бұрын
Thank you for the great tutorial. I successfully replicated my dataset, but I'm having trouble replicating "ix-application." I'm running Immich (App) on my primary TrueNAS Scale server. How can I replicate it to my offline TrueNAS server?
@jonathanchevallier7046
@jonathanchevallier7046 9 ай бұрын
Thank you for this great and detailed explanations.
@Sanyi83
@Sanyi83 5 ай бұрын
I am building a second system next week to do this exact thing.
@dozerd42
@dozerd42 9 ай бұрын
I've seen a lot of videos like this in setting up replication, but I haven't found anything on restoring TrueNAS from a replication after a complete failure. If system A replicates to system B, how do I restore system A from B after system A fails?
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 9 ай бұрын
You simply reverse the process
@dozerd42
@dozerd42 9 ай бұрын
​@@LAWRENCESYSTEMSawesome. Thanks for the reply.
@BlackC5Z06
@BlackC5Z06 9 ай бұрын
You do a one time, non scheduled, replication from the backup server to the main server and proceed as normal.
@IPD2001
@IPD2001 4 ай бұрын
I would like to replicate from Core to Scale. Everything is setup propperly with SSH. Problem is after just a few moments I am getting this error and I don't know which permission are wrong and how to fix that. :( Replication "Datasetname" failed: cannot receive new filesystem stream: permission denied warning: cannot send "Snapshotname" signal received.
@peterworsley
@peterworsley 9 ай бұрын
How can you us the Zpool iostat and other commands in Truenas Scale?
@rokyo401
@rokyo401 9 ай бұрын
Perfect, just what I need! So, the replication task always does a RAW send (zfs send -w), so that encrypted datasets are always sent encrypted on the wire by default? And the SSH encryption (if turned on) would basically send doubly encrypted data? What does the other "Encryption" checkbox on the right side (under the destination) do? From the video it looks like the destination dataset automatically was set as encrypted because the source was, even though, this "Encryption" checkbox was not checked in the setup of the replication. Is this checkbox only needed to turn unencrypted source datasets into encrypted ones on the target? One technical question: Does the encrypted dataset need to be locked in the moment when "zfs send -w" (or the replication task) is run in order to be sent encrypted or will it be sent encrypted even when the dataset on the source is currently unlocked (like in the example here)?
@entelin
@entelin 9 ай бұрын
The locked / unlocked status of a volume, indeed even if it's mounted or not, has no impact on the ability to send. Keep in mind, you're sending a snapshot anyway, not the truly live data. In fact the destination server doesn't even need the encryption key for this to work, it's not important that the destination server be able to actually decrypt the volume it's receiving. ZFS send operates at the volume level, not the file level.
@rokyo401
@rokyo401 9 ай бұрын
@@entelin oh yeah right, the replication sends the snapshot! Then it makes perfect sense that it would always be sent encrypted
@goldfingerdash
@goldfingerdash 9 ай бұрын
Thanks for the video. Replication from scratch is still a bit unclear to me. Let's say the backup server has replication data from multiple TrueNAS servers. Will Replication from scratch delete all snapshots regardless of destination paths, or just the snapshots for a set destination path?
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 9 ай бұрын
From scratch is just for that dataset path on the destination
@phasechange5053
@phasechange5053 3 ай бұрын
This definitely seems to be the Ticket for Full speed no overhead Truenas-Scale backups/Replications for DATA. I also like you can turn the backup/Replication Truenas Box into a Big JBOD Mixed Capacity Disk so I was able to put together a 35TB backup repository easily with some Misc Large/Med TB Drives i had to just serve as a backup form my ZFS Raided data. Even Still it replicated at 2.5GB/s on HDDS (Not SSDS) maxing out the 2.5GB network in my home. I tried to do this with Veeam B&R CE via - W10/11 Backing up Proxmox VM and it was stuck Sub 1GBPS for what ever reason Didn't mater if i run the Veeam B&R CE on another HEDT or a worker on the destination off the Backup Box or with a Root install of windows just slow never broke 1GBPS I ended up giving up i just have way to much TB for it to not get a full 2.5.
@HermieDaddy
@HermieDaddy 9 ай бұрын
If you manually snapshot the source and the destination, can it determine differences and copy just those or will the destination allways be wiped out? this was not clear.
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 9 ай бұрын
You can have it send over all snapshots from source both manual and automatic, but don't make changes on the destination because they will either be over written or cause the process to fail.
@nicoladellino8124
@nicoladellino8124 9 ай бұрын
Very useful video, THX.
@itupdate156
@itupdate156 5 ай бұрын
what do you think about FreeNas 11.2 replication to TrueNas, it's Possible ?
@johnharrison712
@johnharrison712 9 ай бұрын
Would this be a good idea for say something like a active failover if your running your own hardware? Then on XCPNG just manual flip the connection?
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 9 ай бұрын
There is not a simple process for that, so not really.
@johnharrison712
@johnharrison712 9 ай бұрын
That is what I thought, I'm trying to use 2 of the same hardware I have for an Failover just incase trying to be like a normal SAN without like XOSAN or vSAN@@LAWRENCESYSTEMS
@franktippin9150
@franktippin9150 9 ай бұрын
Did I miss it but did you ever state that that netdata is now the built-in system reporting app?
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 9 ай бұрын
You can load Netdata as an app
@UnwalledGarden
@UnwalledGarden 9 ай бұрын
Is replication an extension provided by Truenas, or a built in feature of zfs? In other words, can one replicate zfs snapshots between systems that aren’t Truenas?
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 9 ай бұрын
This is a function of ZFS but for simplicity of this video I kept it just to showing how to use it in TrueNAS.
@UnwalledGarden
@UnwalledGarden 9 ай бұрын
Thanks for the reply.
@JamesTremblay
@JamesTremblay Ай бұрын
Have you ever used replication when TrueNAS is hosting proxmox VMs?
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS Ай бұрын
I prefer XCP-ng and it works fine but it should work fine for Proxmox as well.
@rodri1030
@rodri1030 8 ай бұрын
Is Raidz necessary with a setup like this if availability is not important but data integrity is?
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 8 ай бұрын
You need at least 2 drives to validate & fix data integrity issues.
@npham1198
@npham1198 9 ай бұрын
Does this still work well if you use the truenas box for esxi datastores
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 9 ай бұрын
Yes
@MikelManitius
@MikelManitius 4 ай бұрын
Very helpful, thank you.
@rameshy-ex6gn
@rameshy-ex6gn 8 ай бұрын
sir explain from other system to nas..........in local network file sync............
@mspencerl87
@mspencerl87 9 ай бұрын
Why is ZFS replication on target system read only by default?
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 9 ай бұрын
So you don't mess with the backup data because if you do it will need to resend the snapshots again from the source
@HermieDaddy
@HermieDaddy 9 ай бұрын
@@LAWRENCESYSTEMSaha thats what I am doing wrong. I really cannot touch anything in the replica? I was thinking they could both be doing snapshots and sync...
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 9 ай бұрын
@@HermieDaddy That is why in the beginning of the video I explained the concepts of how it works and that it IS NOT a syncing system.
@this_is_tn
@this_is_tn 9 ай бұрын
Great video!
@Robert-sj8ld
@Robert-sj8ld 9 ай бұрын
👍🏻👍🏻👍🏻👍🏻👍🏻
@Wilarico
@Wilarico 9 ай бұрын
Encrypt everything... the actual cost of time/bandwidth is not that significant anymore IMHO
@JohanH1990
@JohanH1990 2 ай бұрын
You are missing the basics with users, rights and home shares, thats where I am struggling with atm. SMB shares killed itself and Replication to the second pool for backup causes errors on both pools and crashes the NAS. New drives... So really happy with this, not. Unnecessary complicated, and I consider myself as an above average user. Really frustrating
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 2 ай бұрын
Not missing. permissions are in a different video kzbin.info/www/bejne/a2qxeIGQZdCCZpYsi=_khl9MkG1zcZb-Lt
@TechySpeaking
@TechySpeaking 9 ай бұрын
first
@SuzanneFleming-nj5cc
@SuzanneFleming-nj5cc 4 ай бұрын
Smith Helen Perez Ruth Anderson Cynthia
Configuring TrueNAS NFS Share for XCP-ng
12:41
Lawrence Systems
Рет қаралды 21 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
Proxmox, VM Redundancy Using ZFS Replication
30:21
Tech Tutorials - David McKone
Рет қаралды 6 М.
TrueNAS TrueCloud: Affordable Secure Cloud Backup With Storj
12:27
Lawrence Systems
Рет қаралды 8 М.
Explaining ZFS LOG and L2ARC Cache: Do You Need One and How Do They Work?
25:08
Getting the Most Performance out of TrueNAS and ZFS
18:31
Techno Tim
Рет қаралды 124 М.
How to Layout 60 Hard Drives in a ZFS Pool & Benchmarking Performance.
15:56
STOP! ZFS is the Storage Upgrade You NEED (and it's FREE)
18:03
I had VDEV Layouts all WRONG! ...and you probably do too!
17:42
Fixing my worst TrueNAS Scale mistake!
10:40
Christian Lempa
Рет қаралды 152 М.
Proxmox Backup Server Saves You Money And Time!
24:48
Jim's Garage
Рет қаралды 64 М.