/usr/atria/etc/utils/mkorder -data filename -copy -fship hostname_of_siteB
2) How to manually export a packet to different site?
Manually generate the packet to be send to siteB
/usr/atria/bin/multitool sync -export -ship replicaname_of_siteB
find out the packet name generated in the above command and execute the mkorder command to send the packet to the other site.
/usr/atria/etc/mkorder -data packetname -copy -fship hostname_of_siteB
3) How to import a packet manually?
Run the lspacket command to find out the packet name.
/usr/atria/bin/multitool lspacket
Run the below command to import the packet.
usr/atria/bin/multitool sync -import packetname_tobe_imported
4) How to resolve the multitool error "multitool syncreplica –import packet-pathnameSync. packet packet-pathname
was not applied to VOB ... - packet depends on changes not yet received Packet requires changes up to 872; VOB has only 756 from replica: sanfran_hub Packet requires changes up to 605; VOB has only 500 from replica: bangalore
It means some packets have been lost and import command is not able to process the packets in the incoming bay sequentially.
We need to run chepoch command to correct the issue.
How to change the epoch numbers where there is no direct connection between two sites.
multitool lsepoch replica:replica_name_towhich_epoch_needs_tobechanged | grep -v deleted
find out the epoch row in which site you are going to change the epoch
test_default [adsita@hosta] /vobs/test> multitool lsepoch replica:"b_test_replica"
| grep -v deleted
For VOB replica "/vobs/test":
Oplog IDs for row "b_test_replica" (@ hostb):
oid:03a058ca.965d11de.934d.00:01:83:65:2d:2b=553153 (a_test_replica)
oid:6d2dc916.cb5311dd.8f84.00:01:83:0a:e8:e3=40023 (b_test_replica)
oid:24e16ab1.b8c711d5.aa4c.00:01:80:f0:6a:19=572102 (c_test_replica)
test_default [adsita@hosta] /vobs/test>
In the above example we are going to change the epoch of b_test_replica replica in site b from site a.
Loging to site b and find out its own state.
mt lsepoch replica:"b_test_replica" | grep -v deleted
test_default [adsitb@hostb] /vobs/test> mt lsepoch replica:"b_test_replica"
| grep -v deleted
For VOB replica "/vobs/test":
Oplog IDs for row "b_test_replica" (@ hostb):
oid:03a058ca.965d11de.934d.00:01:83:65:2d:2b=553150 (a_test_replica)
oid:6d2dc916.cb5311dd.8f84.00:01:83:0a:e8:e3=4002 (b_test_replica)
oid:24e16ab1.b8c711d5.aa4c.00:01:80:f0:6a:19=572001 (c_test_replica)
test_default [adsita@hosta] /vobs/test>
Login back to host a from site a and execute the below command.
multitool chepoch b_test_replica a_test_replica=4002 b_test_replica=553150 c_test_replica=572001
mt sync -export -ship b_test
login to site b and run the below command to find out the packet name.
mt lspacket
Run the below command to import the command.
mt sync -import packet_name
