In Isilon, data replication is coordinated according to replication policies and jobs. Replication policies specify what data is replicated, where the data is replicated to, and how often the data is replicated. Replication jobs are the operations that replicate data from one Isilon cluster to another. SyncIQ generates replication jobs according to replication policies.
When SyncIQ transfers updates to a file
that was transferred during a previous SyncIQ job, SyncIQ transfers only the
blocks of that file that have changed since the last job, rather than
transferring the entire file.
Create replication policy:
# isi sync
policies create <policy name> sync <source path> <target cluster name> <target path> --schedule "<schedule name>"
--target-snapshot-archive on --target-snapshot-pattern
"%{PolicyName}-%{SrcCluster}-%Y-%m-%d_%H-%M"
Create SyncIQ domain:
It is required for the fail back operations.
# isi
job jobs start <domain name> --root <path> --dm-type SyncIQ
Assess a replication policy:
you can assess the status of a policy using below command. This can be useful if you want to preview the size of the data set that will be transferred if you run the policy
# isi sync jobs start <policy name> --test
# isi sync reports view <policy name> 1
Managing the replication:
You can manage the replication using the below commands
# isi sync jobs start <policy name>
# isi sync jobs pause <policy name>
# isi sync jobs resume <policy name>
# isi sync jobs cancel <policy name>
You can manage the replication using the below commands
# isi sync jobs start <policy name>
# isi sync jobs pause <policy name>
# isi sync jobs resume <policy name>
# isi sync jobs cancel <policy name>
View active replication jobs
# isi sync jobs list
# isi sync jobs view <policy name>
Delete replication policy
# isi sync policies delete <policy name>
Enable or disable a replication policy
# isi sync jobs list
# isi sync jobs view <policy name>
Delete replication policy
# isi sync policies delete <policy name>
Enable or disable a replication policy
# isi sync policies enable <policy name>
# isi sync policies disable <policy name>
View replication policies
# isi sync policies list
# isi sync policies view <policy name>
View replication policies targeting the local cluster
# isi sync target list
# isi sync target view <policy name>
View replication policies
# isi sync policies list
# isi sync policies view <policy name>
View replication policies targeting the local cluster
# isi sync target list
# isi sync target view <policy name>
Managing replication performance rules
# isi sync rules create
example: below command creates a network traffic rule that limits bandwidth consumption to 13500 kbps per second from 00:00 to 23:59 during Sun-Sat
# isi sync rules create bandwidth 00:00-23:59 Sun-Sat 13500
Below command creates a file-operations rule that limits the file-send rate to 3 files per second from 10:00 AM to 6:00 PM every weekday:
# isi sync rules create file_count 10:00-18:00 M-F 3
Enable or Disable the performance rule:
# isi sync rules list
# isi sync rules view --id bw-0
# isi sync rules modify bw-0 --enabled true
# isi sync rules modify bw-0 --enabled false
Managing replication reports:
# isi sync reports list
# isi sync reports view <policy name> 2
# isi sync reports subreports list <policy name> 1 -- to view sub-reports
Managing failed jobs:
If SyncIQ disables the replication due to policy error then you can resolve it using below command:
# isi sync policies resolve <policy name>
If you can't resolve the replication issue then you can reset the job as well. Resetting a policy causes OneFS to perform a full or differential replication the next time the policy is run
# isi sync policies reset <policy name>
Happy Learning!
# isi sync rules create
example: below command creates a network traffic rule that limits bandwidth consumption to 13500 kbps per second from 00:00 to 23:59 during Sun-Sat
# isi sync rules create bandwidth 00:00-23:59 Sun-Sat 13500
Below command creates a file-operations rule that limits the file-send rate to 3 files per second from 10:00 AM to 6:00 PM every weekday:
# isi sync rules create file_count 10:00-18:00 M-F 3
Enable or Disable the performance rule:
# isi sync rules list
# isi sync rules view --id bw-0
# isi sync rules modify bw-0 --enabled true
# isi sync rules modify bw-0 --enabled false
Managing replication reports:
# isi sync reports list
# isi sync reports view <policy name> 2
# isi sync reports subreports list <policy name> 1 -- to view sub-reports
Managing failed jobs:
If SyncIQ disables the replication due to policy error then you can resolve it using below command:
# isi sync policies resolve <policy name>
If you can't resolve the replication issue then you can reset the job as well. Resetting a policy causes OneFS to perform a full or differential replication the next time the policy is run
# isi sync policies reset <policy name>
Happy Learning!
Great blog Piyush. Was very helpful.
ReplyDelete