Switch the Setup Mode to Semi-Automatic and input FreeNAS Secondary storage IP address as the Remote Hostname. On the FreeNAS Primary storage, navigate Tasks > Replication Tasks and Add On the secondary storage, I have also setup a zpool, pool0/backup to be the target dataset to receive the replicated snapshots from the Primary storage Things to do on the Primary Storage (Sending) Copy and paste the Replication Token to the FreeNAS Primary storage in the Replication Task setup. The Replication Token is a temporary authoritative token to allow the FreeNAS primary storage to establish a replication relationship with the FreeNAS secondary storage. FreeNAS SSH service setup shown below: Another configuration is to get the Replication Token from the FreeNAS secondary storage. I enabled root access for simplicity but you can have the FreeNAS replication task tied to a specific user. The first is to have the SSH (secure shell) service turned on. On the secondary system, there are several key steps to configure. Things to do on the Secondary Storage (Receiving) ZFS replication starts with ZFS snapshots on the Primary FreeNAS storage, which is shown below. ![]() This is the network diagram explaining the FreeNAS ZFS replication setup. Sending and receiving data in the snapshots rely on SSH service. Usually, the target ZFS dataset is on a secondary FreeNAS storage server, serving as a disaster recovery platform. Once the ZFS replication task has been setup, every snapshot occurred in the snapshot policy is automatically duplicated and copied to the target ZFS dataset. You can read more about each of the structures and more here. Yeah, I am using quite a few ZFS terminology here – zpool, zvol, dataset. This snapshot policy can be on a specific dataset or zvol, or even the entire zpool. To start, a running snapshot policy on a schedule must be in place. Once a snapshot has been triggered, either manually or on schedule (periodic), the file system tree and its metadata in the memory are committed to disk to ensure an updated and consistent state of the file system at all times. ZFS snapshot is an inherent feature from the ZFS file system, and often used as a point-in-time copy of the existing ZFS file system tree in memory. ZFS replication relies on periodic ZFS snapshots. I thought I document the whole thing about ZFS replication, the key steps to set it up and show how recovery is done. ![]() This week, my team and I took some time to create a FreeNAS replication demo for a potential client. RPO (recovery point objective) of 30 minutes can be challenging to small to medium sized companies, especially if there is an SLA (service level agreement) to meet. We get requests to recover data from a secondary platform all the time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |