Looking for a good backup strategy - Having trouble with replication

Status
Not open for further replies.

John Spiewak

Cadet
Joined
Jan 1, 2017
Messages
9
I am new to freenas and the forums. I saw an article that used snapshots and rsync to backup one server to another. The snapshots got created on the source server, but then got copied to the destination server using rsync. This seems like it would be a good strategy for me as I do not need a real time fail over or anything like that. I just need to make sure I can recover my data if the source server has issues. The trouble is I didn't bookmark the page and now I can't seem to find it. I did look at the documentation and the forums and I think I could piece it together from there, but I was hoping someone would know what I was talking about and point me to the web page or a similar article and help me shortcut the process. Thanks in advance for the help.
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
I am new to freenas and the forums. I saw an article that used snapshots and rsync to backup one server to another. The snapshots got created on the source server, but then got copied to the destination server using rsync. This seems like it would be a good strategy for me as I do not need a real time fail over or anything like that. I just need to make sure I can recover my data if the source server has issues. The trouble is I didn't bookmark the page and now I can't seem to find it. I did look at the documentation and the forums and I think I could piece it together from there, but I was hoping someone would know what I was talking about and point me to the web page or a similar article and help me shortcut the process. Thanks in advance for the help.
Are you thinking of replication? Here is the relevant documentation: http://doc.freenas.org/9.10/storage.html?highlight=replication#replication-tasks
 

John Spiewak

Cadet
Joined
Jan 1, 2017
Messages
9
Well, I have snapshots working and that is good, but I can't seem to get replication to work. The source dataset is RAIDZ2INTERNAL. The source dataset name comes from the dropdown in the menus. The target dataset is RAIDZ2INTERNAL/snapshots (volume/dataset). I keep getting a message about the remote dataset doesn't exist. "Replication RAIDZ2INTERNAL -> 192.168.1.15:RAIDZ2INTERNAL/snapshots failed: Failed: cannot open 'remote': dataset does not exist". I have attached a screen shot of my source setup and my target set up for the replication. I am running 9.10.2 on both servers. I installed them both from the same CD. Does anyone have any idea what I am doing wrong? Thank you in advance.
 

Attachments

  • sourcesetup.PNG
    sourcesetup.PNG
    68.7 KB · Views: 250
  • targetsetup.PNG
    targetsetup.PNG
    18.1 KB · Views: 265

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
Something weird is going on there. You have that remote dataset on the remote. Is it possible you have more than one replication task?
 

John Spiewak

Cadet
Joined
Jan 1, 2017
Messages
9
It is possible I have some stuff messed up. I kept trying different things. I am going to clear it all out and try again. Hopefully, that will clear things up.
 

John Spiewak

Cadet
Joined
Jan 1, 2017
Messages
9
I cleared things out and the snaps shots and replication appears to be working because I can seem the listed in the snapshots for the target system, but I am getting a message every 10 seconds. I have pasted a portion of the message below. I did see some posts speaking about similar errors that suggested writing a cron job to unmount after replication to stop the messages. Does anyone know if there is a permanent fix or solution for this?
Code:
Jan  5 07:38:37 freenasbkp collectd[2911]: statvfs(/mnt/RAIDZ2INTERNAL/snapshots
/RAIDZ2INTERNAL) failed: No such file or directory							
Jan  5 07:38:47 freenasbkp collectd[2911]: statvfs(/mnt/RAIDZ2INTERNAL/snapshots
/RAIDZ2INTERNAL) failed: No such file or directory							
Jan  5 07:38:57 freenasbkp collectd[2911]: statvfs(/mnt/RAIDZ2INTERNAL/snapshots
/RAIDZ2INTERNAL) failed: No such file or directory							
Jan  5 07:39:07 freenasbkp collectd[2911]: statvfs(/mnt/RAIDZ2INTERNAL/snapshots
/RAIDZ2INTERNAL) failed: No such file or directory							
Jan  5 07:39:17 freenasbkp collectd[2911]: statvfs(/mnt/RAIDZ2INTERNAL/snapshots
/RAIDZ2INTERNAL) failed: No such file or directory							
Jan  5 07:39:27 freenasbkp collectd[2911]: statvfs(/mnt/RAIDZ2INTERNAL/snapshots
/RAIDZ2INTERNAL) failed: No such file or directory							
Jan  5 07:39:37 freenasbkp collectd[2911]: statvfs(/mnt/RAIDZ2INTERNAL/snapshots
/RAIDZ2INTERNAL) failed: No such file or directory							
Jan  5 07:39:47 freenasbkp collectd[2911]: statvfs(/mnt/RAIDZ2INTERNAL/snapshots
/RAIDZ2INTERNAL) failed: No such file or directory							
Jan  5 07:39:57 freenasbkp collectd[2911]: statvfs(/mnt/RAIDZ2INTERNAL/snapshots
/RAIDZ2INTERNAL) failed: No such file or directory							
Jan  5 07:40:07 freenasbkp collectd[2911]: statvfs(/mnt/RAIDZ2INTERNAL/snapshots
/RAIDZ2INTERNAL) failed: No such file or directory
 
Last edited by a moderator:

John Spiewak

Cadet
Joined
Jan 1, 2017
Messages
9
I tried unmounting/remounting to stop the messages. It does stop the messages, but I suspect they will start up again after another snapshot/replication cycle based on the other posts. I also hope I am using the proper tags for this.

Code:
zfs unmount /mnt/RAIDZ2INTERNAL/snapshots
zfs mount RAIDZ2INTERNAL/snapshots
 
Status
Not open for further replies.
Top