This command has three forms: two forms to configure access controls for mastership requests and one form to request mastership of a branch or branch type from the replica that masters the object. For more information, see the IBM Rational ClearCase MultiSite Administrator's Guide.
To allow requests for mastership, the MultiSite administrator must set access controls at each replica:
Also, the type and the object must allow mastership requests. By default, type-level and object-level access are enabled. You can enable replica-level access, but deny requests for mastership of specific branches or branch types, or all branches of a specific type. Even if replica-level access is enabled, the reqmaster command fails if requests are denied at the type level or object level. Use the –deny option to deny requests at the type and object level.
Note: Mastership request settings are not replicated. The describe command and the Mastership tab in the Properties Browser on Windows display the current replica's settings.
This form of the reqmaster command contacts a sibling replica and requests that the replica transfer mastership to the current replica. You can also use reqmaster to display information about whether a mastership request will succeed.
If you specify multiple branches or branch types and the request fails for one or more items, reqmaster prints error messages for the failures and continues processing the other items.
If the reqmaster command fails, the error message indicates whether the failure occurred at the current replica or the sibling replica.
If the reqmaster command fails with the message can't get handle, reenter the command. If it continues to fail, ask the sibling replica's administrator to check the status of the VOB server.
When you request mastership, the reqmaster command may complete successfully, but the mastership is not transferred to your current replica. In this case, verify that the synchronization packet was sent from the sibling replica and that your current replica imported it successfully.
Errors that occur during the mastership request process, including errors occurring during the synchronization export, are written to the msadm log file. To view this log, use the cleartool getlog command or the ClearCase Administration Console (Windows).
For more information about error messages from the reqmaster command, see the IBM Rational ClearCase MultiSite Administrator's Guide.
cmdsyn.c@@/main/v3.8 header.h@@\main\v1\bugfix
cmdsyn.c@@/main/v3.8 header.h@@\main\v1\bugfix
brtype:main@/vobs/doc brtype:v2.0_integration@vob:\tests
multitool reqmaster –acl –get vob:/vobs/dev# Replica boston_hub@/vobs/dev
# Request for Mastership ACL:
Everyone: Read
cat > /tmp/boston_hub_aclfile
# Replica boston_hub@/vobs/dev
# Request for Mastership ACL:
User:purpledoc.com/ccadmin Full
User:purpledoc/ccadmin Full
User:purpledoc.com/gail Change
User:purpledoc/gail Change
User:purpledoc.com/paul Change
User:purpledoc/paul Change
multitool reqmaster –acl –set /tmp/boston_hub_aclfile vob:/vobs/dev
multitool reqmaster –acl –get vob:/vobs/dev
# Replica boston_hub@/vobs/dev
# Request for Mastership ACL:
User:purpledoc.com/ccadmin Full
User:purpledoc/ccadmin Full
User:purpledoc.com/gail Change
User:purpledoc/gail Change
User:purpledoc.com/paul Change
User:purpledoc/paul Change
multitool reqmaster –enable vob:\tests
Requests for mastership enabled in the replica object for "vob:\tests"
multitool reqmaster –deny –instances brtype:v2.0_integration@vob:\tests
Requests for mastership denied for all instances of
"brtype:v2.0_integration@vob:\tests"
multitool reqmaster –deny brtype:v2.0_integration@vob:\tests
Requests for mastership denied for "brtype:v2.0_integration@vob:\tests"
multitool reqmaster –enable vob:\dev Requests for mastership enabled in the replica object for "vob:\dev" multitool reqmaster –deny \dev\cmdsyn.m@@\main\v1.0_bugfix Requests for mastership denied for branch "\dev\cmdsyn.m@@\main\v1.0_bugfix"
multitool reqmaster –disable vob:/vobs/dev Requests for mastership disabled in the replica object for "vob:/vobs/dev"
multitool reqmaster –deny brtype:v2.0_integration@vob:\tests
Requests for mastership denied for "brtype:v2.0_integration@vob:\tests"
multitool reqmaster –list include.h@@\main\integ acc.c@@\main
multitool: Error: acc.c@@\main
The following would block the "reqmaster" operation at replica
"sydney".
At least one checkout prevents the request.
multitool reqmaster cmdsyn.m@@/main/v2.6_dev
cmdsyn.m@@/main/v2.6_dev: Change of mastership at sibling replica
"boston_hub" was successful.
Mastership is in transit to the new master replica.
multitool reqmaster brtype:v2.0_integration@vob:\tests
brtype:v2.0_integration@vob:\tests: Change of mastership at sibling
replica "sydney" was successful.
Mastership is in transit to the new master replica.