4. Setting && Flow
Primary Secondary
Command: zfs send zpxxx/dsxxx@sn01 |
ssh –o StrictHostKeyChecking=no IP zfs receive zpxxx/dsxxx
Step1: Connect Setting
Use rsync transfer primary public key to secondary authorized_keys.
Step2: Create Snapshot
Primary create snapshot which do replication.
Step3: Execute zfs command
Execute zfs replication command.
5. Step1:Connect Setting
Primary
1.Install rsync
2.Setting rsync.secrets
setting the secondary rsync password in primary rsync.secrets.
1.Install rsync
2.Setting rsync.conf and rsync.secrets (/etc/..)
rsync connect setting.
1.Rsync Setting
Use ssh-keygen generator public key
ssh-keygen -t rsa (/root/.ssh/id_rsa.pub).
2.Primary generator the public key.
3.Primary use rsync command to transfer public key
Secondary
6. Step2: Create Snapshot
Primary Secondary
Snapshot A
Snapshot B
Snapshot C
ZFS Replication
Pool
Command:zfs snapshot zpxxx/dsxxx@snxx
7. Step3: Execute zfs Command
Primary Secondary
Snapshot A
Snapshot B
Snapshot C
ZFS Replication
Pool
Command:
zfs send [shapshot]
| ssh –o StrictHostKeyChecking=no IP zfs receive [dataset Path]
zfs send –i [shapshot1] [snapshot2]
| ssh –o StrictHostKeyChecking=no IP receive [dataset Path]
8. Software Block Diagram
Connect Setting
RPC Exe Fun
Put public key to remote
SSH Exe Fun
Gen Public Key
ZFS AP
Snapshot
Replication
Remote Host
~/.ssh/authorized_keys
ssh command
zfs send && zfs receive
sshkey transfer