Starting the vxfstaskd and vxfsrepld file replication daemons

The vxfstaskd daemon is a scheduler daemon that takes scheduled Storage Checkpoints, starts the replication process against newly created Storage Checkpoints, and cleans up unused Storage Checkpoints. The daemon periodically scans Veritas File System (VxFS) mount points for replication job configuration and automatically schedules any enabled jobs. The vxfstaskd daemon must be started on the source system before a replication job can be scheduled.

The replication scheduler and target daemon can be started and stopped by either using the init script located at /etc/init.d/vxfs_replication or by running the vfradmin command directly. To start both the daemons using the init script, run following command on both the source and the target system:

# /etc/init.d/vxfs_replication start

By default, the init script will not start the daemons at system bootup or when run manually. If you want to start the replication daemons, edit the replication configuration file at /etc/vx/vxfs_repltab and set VXFS_REPLICATION_START=1 . The replication daemon, by default uses TCP port 56987. If this port is not free in the environment, specify a desired port in VXFS_REPLICATION_TGT_PORT=port number.

To stop the replication scheduler and the target daemon, run the following command:

# etc/init.d/vxfs_replication stop

To start the vxfstaskd scheduler daemon manually, type the following command on the source system:

# vfradmin startsched

To stop the vxfstaskd daemon, type the following command on the source system:

# vfradmin stopsched [-f]

The vfradmin stopsched command stops the scheduler process after all the in progress replication jobs are complete. If the -f option is specified, all currently scheduled replication jobs are aborted. Specifying the -f option may leave the file system Storage Checkpoints mounted and may leave the target file system in an intermediate state.

The vxfsrepld daemon must be running on the systems that function as replication targets. This daemon listens on the replication port and applies the delta changes sent by the source system. The vxfsrepld daemon must be started on the target system before a replication job can be started.

To start the vxfsrepld replication target daemon manually, type the following command on the target system:

# vfradmin startvxfsrepld [-p port]

where port specifies the port on which the vxfsrepld daemon will listen for the incoming connection.

Note:

By default, the replication daemon uses port 56987. If this port is not free in the environment, you must specify a different port number, using the -p option.

To stop the vxfsrepld daemon, type the following command on the target system:

# vfradmin stopvxfsrepld [-f]

The vfradmin stopvxfsrepld command stops the vxfsrepld daemon after all the in-progress replication jobs are complete. If the -f option is specified, all in progress replication jobs are aborted. This may result in a file system in an intermediate state.

Note:

If either daemon processes are killed, they must be manually re-started using the init script or the vfradmin command.