產品 | 指令類型 |
---|---|
MultiSite | multiutil 次指令 |
平台 |
---|
UNIX |
Windows |
[ –cl/an clan-name ] [ –site site-name ] –fam/ily family-name
–u/ser username [ –p/assword] password
new-master-replica { { entity-selector... | { –all[ –l/ong] |
–working/master } [ –f/orce obsolete-replica | –forceall] }
}
這個指令將一或多個物件的主控權從一個抄本轉送到另一個抄本。只有現行抄本會立即受影響;會透過更新封包的正常交換向其他抄本通知已轉送主控權。
身分:您必須有 Super User 專用權。
主控權:您現行的抄本必須主控物件。使用 –force 或 –forceall 可置換這個限制;但除非遇到特殊情況,否則您絕不能使用這些選項。
網站:現行網站。如果在這個主機上有多個網站,則 –site 是必要的。
系列:無預設值;您必須指定系列。
綱目儲存庫系列:系列名稱為 MASTR。若使用 –workingmaster 選項,則必須指定 MASTR。
group:group-name
group:group-name<keysite-name>
如需使名稱成為唯一的相關資訊,請參閱本手冊中的「疑難排解 MultiSite 作業 - 解析命名衝突」。
使用 –long、chmaster 列出正在變更其主控權的物件。
您使用這個選項時,必須指定 –family MASTR。
使用 –force,chmaster 會將 obsolete-replica 指定之抄本中的所有物件主控權傳送出去。只有當不能再使用抄本 obsolete-replica 時(例如,意外加以刪除),才可以使用 chmaster 這個格式。
使用 –forceall,chmaster 會將物件的主控權轉送到指定的抄本,即使現行抄本未主控物件也一樣。
在這些範例中會斷行以便於閱讀,您必須在實際的一行中輸入每一個指令。
multiutil chmaster -clan telecomm -site boston_hub -family DEV -user
susan -p passwd sanfran_hub user:admin
Multiutil: The mastership of record 'admin' of type 'user' has been
changed from 'BOSTON_HUB' to 'SANFRAN_HUB'.
Multiutil: The mastership of some users or groups has been transferred
from this site. The local user administrator must update user
databases at the new mastering site 'sanfran_hub' before these changes
will be visible to any user database.
multiutil chmaster -clan testclan -site tokyo -family MASTR
-user masako -p passwd sydney -workingmaster
Multiutil: The working master has been changed from 'TOKYO' to 'SYDNEY'.
multiutil chmaster -clan telecomm -site sanfran_hub -family DEV
-user jcole -p passwd boston_hub -all
Multiutil: Total number of objects changed: 5.
multiutil chmaster -clan telecomm -site sanfran_hub -family DEV
-user jcole -p passwd boston_hub -all -long
Multiutil: The mastership(s) of the following object(s) in database
'DEV' was(were) changed from 'SANFRAN_HUB' to 'BOSTON_HUB'.
Multiutil: Type: customer, display Name: John Smith.
Multiutil: Type: customer, display Name: Ethan Hunt.
Multiutil: Type: customer, display Name: Jane Smith.
Multiutil: Type: customer, display Name: Anne Johnson.
Multiutil: Type: customer, display Name: Joe Lee.
multiutil chmaster -clan telecomm -site boston_hub -family DOC
-user susan -password passwd boston_hub -all -force bangalore
將使用者和群組的主控權從 bangalore 綱目儲存庫變更為 boston_hub。
multiutil chmaster -clan telecomm -site boston_hub -family MASTR
-user susan -password passwd boston_hub -all -force bangalore
將工作中綱目儲存庫的主控權從 bangalore 變更為 boston_hub。
multiutil chmaster -clan telecomm -site boston_hub -family MASTR
-user susan -password passwd boston-hub -workingmaster -force bangalore
multiutil chmaster -clan telecomm -site boston_hub -family DEV
-user susan -p passwd tokyo user:admin –forceall
Multiutil: The mastership of record 'admin' of type 'user' has
been changed from 'SANFRAN_HUB' to 'TOKYO'.