setrgysvrtype

Provides a simple mechanism to configure registry server type on a local host

Applicability

Product

Command type

VersionVault

command

Platform

UNIX

Synopsis

setrgysvrtype { –master | –standby | –backup | –slave }

Description

In your HCL VersionVault network environment you can designate a host as a standby registry server host. The standby registry server host can be promoted to perform the duty of the primary registry server host in the event the primary registry server host fails.

Executed on a standby registry server host, the setrgysvrtype command promotes the standby registry server host to the primary registry server host. Once promoted, the host immediately functions as a primary registry server. The command can later demotes the same host to a standby registry server host when the primary registry server is back in service. The demotion of a primary registry server host to a standby registry server host is allowed only if the host has been promoted from a standby registry server host.

The command can also be used to set a backup or a slave registry server host.

Restrictions

Identities

root

Locks

No locks apply.

Mastership

(Replicated VOBs only) No mastership restrictions.

Options and arguments

Default
None.
–master
Configure the local registry server host to a primary registry server host if the host is currently a standby registry server host.
–standby
Configure the local registry server host to a standby registry server host. When executed on a non-primary registry server host, it prepares the host for the possibility of the promotion to a primary registry server host.
–backup
Configure the local registry server host to a backup registry server host. The backup registry server host takes snapshots of the VersionVault registry files on the primary registry server host and the primary registry host's client list.
–slave
Configure the local registry server host to a slave registry server host. A slave registry server host is synonymous with a typical client host. It does not change the client host's functionality in any way in support of future enhancement.
Note: You can switch between the following three types in any way at will:
  • standby
  • backup
  • slave

Examples

  • On a standby registry server host, make the host the new primary registry host.

    setrgysvrtype  -master

UNIX files

  • /var/adm/hcl/versionvault/config/rgy_hosts.conf
  • /var/adm/hcl/versionvault/config/rgy_svr.conf