在任一叢集節點上,成為超級使用者或成為提供 solaris.cluster.modify RBAC 授權的角色。
使用包含 HAStoragePlus 資源的非全域區域建立可延展的資源群組。
# clresourcegroup create \ -p Maximum_primaries=m\ -p Desired_primaries=n\ [-n 節點區域清單] hasp 資源群組 |
指定該資源群組使用中主要節點的最大數目。
指定資源群組應嘗試啟動的使用中節點數目。
在 HAStoragePlus 資源群組的節點清單中,指定節點名稱清單:區域名稱會配對為 HAStoragePlus 資源群組的節點清單,其中的 SAP 實例可以處於連線狀態。
指定要增加的可延展資源群組的名稱。此名稱必須以 ASCII 字元開頭。
為 HAStoragePlus 資源註冊資源類型。
# clresourcetype register HAStoragePlus |
建立 HAStoragePlus 資源 hasp-resource 並定義 SAP 檔案系統掛載點和全域裝置路徑。
# clresource create -g hasp 資源群組 -t SUNW.HAStoragePlus \ -p GlobalDevicePaths=/dev/global/dsk/d5s2,dsk/d6 \ -p affinityon=false -p FilesystemMountPoints=/sapmnt/JSC,/usr/sap/trans,/usr/sap/JSC hasp-resource |
指定資源群組名稱。
包含以下值:
全域裝置群組名稱,例如:sap-dg, dsk/d5
全域裝置路徑,例如:/dev/global/dsk/d5s2、 /dev/md/sap-dg/dsk/d6
包含以下值:
本機或叢集檔案系統的掛載點,例如:/local/mirrlogA,/local/mirrlogB,/sapmnt/JSC,/usr/sap/JSC
HAStoragePlus 資源會在已啟用的狀態下建立。
為 SAP 應用程式註冊資源類型。
# clresourcetype register 資源類型 |
指定要增加的資源類型名稱。如需更多資訊,請參閱支援的產品。
建立 SAP 資源群組。
# clresourcegroup create [-n node-zone-list] -p RG_affinities=++hastorageplus-rg resource-group-1 |
指定 SAP 服務的資源群組。
增加 SAP 應用程式資源到 resource-group-1 並設定相依性為 hastorageplus-1。
# clresource create -g resource-group-1 -t SUNW.application \ [-p "extension-property[{node-specifier}]"=value, ?] \ -p Resource_dependencies=hastorageplus-1 resource |
使容錯移轉資源群組上線運作。
# clresourcegroup online resource-group-1 |