stevebaynet
Limp Gawd
- Joined
- Nov 9, 2011
- Messages
- 204
I know several ppl on here use zrep to backup their ZFS storage servers, so i'm hoping somone can chime in here.
I am going to be using zrep to one way sync my production ZFS servers to a napp-it "all in one" server for disaster recovery purposes.
seems like zrep is the easiest way to do this. Relevant snippet from the zrep manual:
The part that confuses me, is it states that zrep will create the "client" FS (the one i wanna backup) for you. I already have a FS and zpool setup. I'm fine with starting from scratch (this stuff isnt in production yet) but the thing i dont get is:
do i run zrep init {localfs} {clienthost} {clientfs} first and then create the zpool?
or do i create the zpool, and then run it.
*scratching head*
any thoughts appreciated.
I am going to be using zrep to one way sync my production ZFS servers to a napp-it "all in one" server for disaster recovery purposes.
seems like zrep is the easiest way to do this. Relevant snippet from the zrep manual:
Code:
Use in a backup server
Some folks may be looking just for a way to simplify their backup mechanisms, rather than doing fancy failover. In this scenario, there is one centralized backup server that has trusted root ssh OUT, but does not allow root ssh IN. (This way, it is possible to have independant clients, in separate zones of trust or system administration from each other)
In this setup, typical setup and use would look something like the following.
Set up the filesystem initially on the backup server
Do "zrep init {localfs} {clienthost} {clientfs}"
"zrep failover {localfs}"
You have now set up initial state cleanly.
If you already have a client zfs filesystem with a bunch of data, it is technically possible to do a manual initialization to the backup server. However, this is not supported at this time. A smart sysadmin should be able to figure out what is needed by looking at the output of "zrep list -v" after a normal init
Once this is done, you can then set up a special zrep job on the backup server, instead of the master. It will look just like a "zrep sync" job, but instead, you will want to call
zrep refresh pool/fs
Now, instead of the master side "pushing" new data, you will be "pulling" the latest bits to your read-only backup server copy of the filesystem.
The part that confuses me, is it states that zrep will create the "client" FS (the one i wanna backup) for you. I already have a FS and zpool setup. I'm fine with starting from scratch (this stuff isnt in production yet) but the thing i dont get is:
do i run zrep init {localfs} {clienthost} {clientfs} first and then create the zpool?
or do i create the zpool, and then run it.
*scratching head*
any thoughts appreciated.