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

從使用非叢集模式啟動的節點中取得 Solaris Volume Manager Metaset

Procedure如何從使用非叢集模式啟動的節點中取得 Solaris Volume Manager Metaset

使用此程序在叢集外執行應用程式,以進行測試。

  1. 判定法定裝置是否在 Solaris Volume Manager metaset 中使用,並判定法定裝置是否使用 scsi2 或 scsi3 保留。


    # clquorum show
    
    1. 如果法定裝置位於 Solaris Volume Manager metaset,請增加一個不屬於該 metaset 的新法定裝置,以便於稍後在非叢集模式中取得。


      # clquorum add did
      
    2. 移除舊的法定裝置。


      # clqorum remove did
      
    3. 如果法定裝置使用 scsi2 保留, 請從舊的法定裝置清理 scsi2 保留並驗證未剩下 scsi2 保留。


      # /usr/cluster/lib/sc/pgre -c pgre_scrub -d /dev/did/rdsk/dids2
      # /usr/cluster/lib/sc/pgre -c pgre_inkeys -d /dev/did/rdsk/dids2
      
  2. 撤除您想在非叢集模式中啟動的節點。


    # clresourcegroup evacuate -n 目標節點
    
  3. 使任何包含 HAStorage 或 HAStoragePlus 資源和包含受 metaset (稍後要在非叢集模式中取得) 影響的裝置或檔案系統的資源群組離線。


    # clresourcegroup offline 資源群組名稱
    
  4. 停用資源群組中所有離線的資源。


    # clresource disable 資源名稱
    
  5. 取消管理資源群組。


    # clresourcegroup unmanage 資源群組名稱
    
  6. 使對應的一個或多個裝置群組離線。


    # cldevicegroup offline 裝置群組名稱
    
  7. 停用裝置群組。


    # cldevicegroup disable 裝置群組名稱
    
  8. 將被動節點啟動為非叢集模式。


    # reboot -x
    
  9. 在繼續之前,驗證被動節點上的啟動程序是否已完成。

    • Solaris 9

      此登入提示只會在啟動程序完成後出現,因此不需要進行任何動作。

    • Solaris 10


      # svcs -x
      
  10. 判定 metaset 中的磁碟上是否有任何 scsi3 保留。請在 metaset 中的所有磁碟上執行下列指令。


    # /usr/cluster/lib/sc/scsi -c inkeys -d /dev/did/rdsk/dids2
    
  11. 如果磁碟上有任何 scsi3 保留,請清理它們。


    # /usr/cluster/lib/sc/scsi -c scrub -d /dev/did/rdsk/dids2
    
  12. 取得位在已撤除節點上的 metaset。


    # metaset -s name -C take -f
    
  13. 掛載 metaset 上包含已定義裝置的檔案系統。


    # mount 裝置 掛載點
    
  14. 啟動應用程式並執行想要進行的測試。測試結束後,停止應用程式。

  15. 重新啟動節點並等待直到啟動程序結束。


    # reboot
    
  16. 將一個或多個裝置群組連線。


    # cldevicegroup online -e 裝置群組名稱
    
  17. 請啟動資源群組。


    # clresourcegroup online -eM  資源群組名稱