ACFS Replication Based On Tagging

ACFS tagging plays a crucial role in optimizing ACFS replication. Instead of duplicating an entire mount point tagging allows administrators to selectively replicate only specific files or directories. During the initial replication setup on the primary system, tags can be assigned to define the scope of data to be replicated. These tags can also be applied to additional files after replication is underway.

Before enabling ACFS replication, it’s important to plan which parts of the file system need to be included whether it’s the full directory tree or only certain files marked with ACFS tags. This decision can impact storage planning and replication performance.

By assigning a shared tag name to a group of files, ACFS enables replication processes to identify and transfer only those tagged items. This approach supports both targeted data replication and replication based on metadata attributes.

In my setup, ACFS replication was already configured and functional between the primary and standby systems for the entire /ACFS_PRMY mount point to stanbdy mount point /acfs_test However, the requirement has now changed—I only want to replicate specific file-level changes made on the primary node, rather than synchronizing all changes across all directories under the mount.

This selective replication approach is intended to reduce unnecessary data transfer and focus solely on the critical GoldenGate configuration directories and files.

To achieve this, I am leveraging ACFS tagging, which allows replication to be restricted to only those files or directories marked with a designated tag.

Now let me explain how to achive tag based on /acfs mount point . In order to set this up the target system where the replication is being established must be an empty ACFS mount point.”

1. First need to create the tag on primary as per below as i need to replicate test directory on the below mount point /ACFS_PRMY

    acfsutil tag set -r reptag /ACFS_PRMY/test

    2. Verify the tag created or not with the below command:

    acfsutil tag info -r /ACFS_PRMY

    /ACFS_PRMY/test
    Tags: reptag

    3. Start the Replicate using the below command:

    acfsutil repl init primary -s repluser@node2.localdomain  -m /acfs_test reptag /ACFS_PRMY -i 2

    In the above command -i option is the frequency of replication.

    Replication should be configured at the mount-point level and fine-tuned using tags

    Leave a comment

    About Me

    I’m Dhiraj Kumar, an Oracle RAC Database With over 15 years of experience, I’m passionate about building high-performance, scalable database solutions that support critical business operations.

    📘 Check out my latest articles and insights on Medium (@dhirajengr) .