Show Table of Contents
4.6. 線上資料重置(Online Data Relocation)
您可透過使用
pvmove 指令來在系統使用中的時候移動資料。
pvmove 這項指令會將要移至不同部份中的資料分開並建立一個暫時性的鏡像來移動各個部份。如欲取得更多有關於 pvmove 指令作業上的相關資訊,請查看 pvmove(8) man page。
注意
為了要進行叢集中的
pvmove 作業,您應該確定已安裝 cmirror 與 cmirror-kmod 套件,同時 cmirror 服務處於執行狀態。必須安裝的 cmirror-kmod 套件端視執行中的 kernel 核心而定。舉例來說,如果執行中的 kernel 是 kernel-largesmp,那就需要有 cmirror-kmod-largesmp 以對應 kernel 版本。
下列指令會將所有經過分配的空間由實體卷冊
/dev/sdc1 上移至卷冊群組中其它可使用的實體卷冊上:
# pvmove /dev/sdc1
下列指令只會移動邏輯卷冊
MyLV 的扇區。
# pvmove -n MyLV /dev/sdc1
因為
pvmove 指令的執行可能會花上一段時間,我們建議您在背景環境(background)中執行這項指令來避免完成度更新顯示在前景環境(foreground)中。下列指令會將所有分配至實體卷冊 /dev/sdc1 的扇區移至背景環境中的 /dev/sdf1。
# pvmove -b /dev/sdc1 /dev/sdf1
下列指令會以每五秒間隔和百分比的方式來回報移動的完成度。
# pvmove -i5 /dev/sdd1
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.