Sun Cluster 3.0 系統管理手冊

8.1.3 如何備份 root(/)檔案系統

請使用這個程序來備份叢集節點的 root(/)檔案系統。請先確定叢集執行沒有任何錯誤再執行備份程序。

  1. 在您要備份之叢集節點上成為超級使用者(superuser)。

  2. 將要備份之節點的資料服務切換到叢集中的其他節點。


    # scswitch -z -D disk-device-group -h node
    
    -z

    執行切換。

    -D disk-device-group

    磁碟裝置群組的名稱,和磁碟組或磁碟群組名稱相同。

    -h node

    當作磁碟裝置群組主要節點的叢集節點的名稱。

  3. 停止節點。


    # shutdown -g0 -y
    
  4. ok 提示,重新啟動為非叢集模式。


    ok boot -x
    
  5. 備份 root(/)檔案系統。

    • 如果根磁碟為未密封,請使用下列指令。


      # ufsdump 0ucf dump-device /
      
    • 如果根磁碟為已密封,請使用下列指令。


      # ufsdump 0ucf dump-device /dev/vx/rdsk/rootvol
      

    請參閱 ufsdump(1M) 線上援助頁來取得詳細資訊。

  6. 將節點重新啟動為叢集模式。


    # init 6
    

8.1.3.1 範例-備份 root(/)檔案系統

在以下範例中,root(/)檔案系統備份到磁帶裝置 /dev/rmt/0


# ufsdump 0ucf /dev/rmt/0 /
  DUMP: Writing 63 Kilobyte records
  DUMP: Date of this level 0 dump: Tue Apr 18 18:06:15 2000
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rdsk/c0t0d0s0 (phys-schost-1:/) to /dev/rmt/0
  DUMP: Mapping (Pass I) [regular files]
  DUMP: Mapping (Pass II) [directories]
  DUMP: Estimated 859086 blocks (419.48MB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Dumping (Pass IV) [regular files]
  DUMP: 859066 blocks (419.47MB) on 1 volume at 2495 KB/sec
  DUMP: DUMP IS DONE
  DUMP: Level 0 dump on Tue Apr 18 18:06:15 2000