Sun Cluster 3.2 版本說明 (適用於 Solaris 作業系統)

在非全域區域上設定 SAP Web Application Server 以配置 HASP (6530281)

使用下列程序為非全域區域配置 HAStoragePlus 資源。


備註 –

Procedure如何在非全域區域上設定 SAP Web Application Server 進行 HAStoragePlus 配置

  1. 在任一叢集節點上,成為超級使用者或成為提供 solaris.cluster.modify RBAC 授權的角色。

  2. 使用包含 HAStoragePlus 資源的非全域區域建立可延展的資源群組。


       # clresourcegroup create \
         -p Maximum_primaries=m\
         -p Desired_primaries=n\
        [-n 節點區域清單] hasp 資源群組
    
    -p Maximum_primaries=m

    指定該資源群組使用中主要節點的最大數目。

    -p Desired_primaries=n

    指定資源群組應嘗試啟動的使用中節點數目。

    -n 節點區域清單

    HAStoragePlus 資源群組的節點清單中,指定節點名稱清單:區域名稱會配對為 HAStoragePlus 資源群組的節點清單,其中的 SAP 實例可以處於連線狀態。

    hasp 資源群組

    指定要增加的可延展資源群組的名稱。此名稱必須以 ASCII 字元開頭。

  3. HAStoragePlus 資源註冊資源類型。


    # clresourcetype register HAStoragePlus
  4. 建立 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
    
    -g hasp 資源群組

    指定資源群組名稱。

    GlobalDevicePaths

    包含以下值:

    • 全域裝置群組名稱,例如:sap-dg, dsk/d5

    • 全域裝置路徑,例如:/dev/global/dsk/d5s2/dev/md/sap-dg/dsk/d6

    FilesystemMountPoints

    包含以下值:

    • 本機或叢集檔案系統的掛載點,例如:/local/mirrlogA,/local/mirrlogB,/sapmnt/JSC,/usr/sap/JSC

    HAStoragePlus 資源會在已啟用的狀態下建立。

  5. 為 SAP 應用程式註冊資源類型。


    # clresourcetype register 資源類型
    
    資源類型

    指定要增加的資源類型名稱。如需更多資訊,請參閱支援的產品

  6. 建立 SAP 資源群組。


      # clresourcegroup create [-n node-zone-list] -p 
    RG_affinities=++hastorageplus-rg resource-group-1
    
    resource-group-1

    指定 SAP 服務的資源群組。

  7. 增加 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
    
  8. 使容錯移轉資源群組上線運作。


    # clresourcegroup online resource-group-1