部署 KB:如何使用 Veritas 磁片區管理員 (VxVM) 執行 Linux 主機型遷移。

Summary: 本文說明如何使用 Vxassist 命令,在獨立 RedHat Linux 伺服器上使用 veritas Volume Manager (VxVM) 移轉儲存裝置的步驟。

Acest articol se aplică pentru Acest articol nu se aplică pentru Acest articol nu este legat de un produs specific. Acest articol nu acoperă toate versiunile de produs existente.

Instructions

本文涵蓋 Linux 伺服器從 VNX 陣列遷移至 PowerMax 儲存陣列的作業。

從交換器端:
-在儲存裝置端設定主機和目標陣列上端口之間的分區 (用於埠群組 (PG)

的前端埠:
- 設定目標 Powermax 儲存裝置上的布建
- 建立與來源陣列相同大小的 LUN,並將其新增至儲存群組
- 具有主機
啟動器的建立啟動器群組 - 建立具有分區中
使用前端埠的埠 - 建立遮罩檢視,並將其新增至儲存群組、埠群組和啟動器群組

從伺服器端:
1- 伺服器上的預先檢查:
a- 顯示伺服器上的所有磁片
# vxdisk -o alldgs list
Example:
[root@hostname ~]# vxdisk -o alldgs list
DEVICE                     TYPE            DISK                       GROUP        STATUS
emc_clariion0_139 auto:cdsdisk    emc_clariion0_139  DG_name online thinrclm
b- 顯示伺服器上執行的所有磁片群組:
# vxdg list

c- 顯示伺服器上的磁片區:
 # vxprint -hrt
Example:
[root@hostname ~]#  vxprint -hrt
Disk group: DG_name
v  name_vol    -            ENABLED  ACTIVE   586647552 SELECT   -        fsgen
pl name_vol-01 name_vol    ENABLED  ACTIVE   586647552 CONCAT   -        RW
sd emc_clariion0_139-01 name_vol-01 emc_clariion0_139 0 73331168 0 emc_clariion0_139 ENA

 
 
2- 使用下列命令重新掃描伺服器以探索新的目標裝置:
# vxdisk scandisks
# /usr/bin/rescan-scsi-bus.sh

 列出伺服器上的裝置,以確認是否已探索到新裝置:
# vxdisk -o alldgs list
Example:
[root@hostname ~]#  vxdisk -o alldgs list
DEVICE                       TYPE                 DISK                           GROUP        STATUS
emc_clariion0_139 auto:cdsdisk    emc_clariion0_139  DG_name online thinrclm
emc0_04aa               auto:none        -                                     -               online invalid thinrclm
3- 格式化新磁片:
# vxdisksetup -i  format=cdsdisk 
Example:
[root@hostname ~]# vxdisksetup -i emc0_04aa format=cdsdisk 
確認磁片已格式化:
範例:
[root@hostname ~]# vxdisk -o alldgs list
DEVICE                  TYPE                DISK                      GROUP        STATUS
emc_clariion0_139 auto:cdsdisk    emc_clariion0_139  DG_name online thinrclm
emc0_04aa            auto:cdsdisk      -                                  -            online thinrclm

4- 將新磁片新增至磁片群組:
# vxdg -g  adddisk 

Example:
[root@hostname ~]# vxdg -g DG_name adddisk emc0_04aa
若要驗證:
[root@hostname ~]# vxdisk -o alldgs list
DEVICE                  TYPE                DISK                      GROUP        STATUS
emc_clariion0_139 auto:cdsdisk    emc_clariion0_139  DG_name online thinrclm
emc0_04aa            auto:cdsdisk    emc0_04aa              DG_name online thinrclm

5- 使用 vxassist 命令移轉磁片區中的資料:
vxassist 為新陣列上磁片區中的 plex 建立鏡像 
# vxassist -b -g  mirror   enclr: name logtype=none
Example:
[root@hostname ~]# vxassist -b -g DG_name mirror name_vol enclr:emc0 logtype=none
注意:此命令會在新陣列的磁片區內建立新的 plex。plex 狀態只會寫入,直到所有資料複製,然後其狀態將為 RW。
例子:
[root@hostname ~]#  vxprint -hrt
v  name_vol    -            ENABLED  ACTIVE   586647552 SELECT   -        fsgen
pl name_vol-01 name_vol    ENABLED  ACTIVE   586647552 CONCAT   -        RW
sd emc_clariion0_139-01 name_vol-01 emc_clariion0_139 0 73331168 0 emc_clariion0_139 ENA
pl name_vol-02 name_vol ENABLED TEMPRMSD 586647552 CONCAT - WO
sd emc0_04aa-01 name_vol-02 emc0_04aa 0 73333440 0     emc0_04aa EN

6- 使用命令監視資料複製:
# vxtask list

7- 資料複製完成後,磁片區會同步 2 個 plex,而新的 plex 狀態為 RW
範例:
[root@hostname ~]#  vxprint -hrt
v  name_vol    -            ENABLED  ACTIVE   586647552 SELECT   -        fsgen
pl name_vol-01 name_vol    ENABLED  ACTIVE   586647552 CONCAT   -        RW
sd emc_clariion0_139-01 name_vol-01 emc_clariion0_139 0 73331168 0 emc_clariion0_139 ENA
pl name_vol-02 name_vol    ENABLED  ACTIVE   586647552 CONCAT   -        RW
sd emc0_04aa-01 name_vol-02 emc0_04aa 0 73333440 0     emc0_04aa ENA

8- 移除舊 plex 來清理磁片區:
# vxplex -g  -o rm dis 
Example:
[root@hostname ~]# vxplex -g DG_name -o rm dis name_vol-01

確認已移除 plex:
[root@hostname ~]#  vxprint -hrt
v  name_vol    -            ENABLED  ACTIVE   586647552 SELECT   -        fsgen
pl name_vol-02 name_vol    ENABLED  ACTIVE   586647552 CONCAT   -        RW
sd emc0_04aa-01 name_vol-02 emc0_04aa 0 73333440 0     emc0_04aa ENA

9- 回收舊磁片:
# vxdisk reclaim 
Example:
[root@hostname ~]#  vxdisk reclaim emc_clariion0_139
10- 從磁片群組移除舊磁片:
# vxdg -g  rmdisk 
Example:
[root@hostname ~]#  vxdg -g  DG_name rmdisk emc_clariion0_139

驗證
[root@hostname ~]# vxdisk -o alldgs list
DEVICE                         TYPE            DISK         GROUP        STATUS
emc_clariion0_139 auto:cdsdisk    -            -            online thinrclm

11- 將磁片單次調整:
# vxdiskunsetup -C 
Example:
[root@hostname ~]#  vxdiskunsetup -C emc_clariion0_139

驗證:
[root@hostname ~]#   vxdisk -o alldgs list
DEVICE                         TYPE            DISK         GROUP        STATUS
emc_clariion0_139 auto:none       -            -            online invalid thinrclm

從交換器端:
- 移除舊來源陣列和伺服器之間的區域

Produse afectate

PowerMax, Red Hat Enterprise Linux Version 5, Red Hat Enterprise Linux Version 6, Red Hat Enterprise Linux Version 7, Red Hat Enterprise Linux Version 8
Proprietăți articol
Article Number: 000203683
Article Type: How To
Ultima modificare: 20 oct. 2025
Version:  3
Găsiți răspunsuri la întrebările dvs. de la alți utilizatori Dell
Servicii de asistență
Verificați dacă dispozitivul dvs. este acoperit de serviciile de asistență.