部署知识库文章:如何使用 Veritas 卷管理器 (VxVM) 执行基于 Linux 主机的迁移。

Summary: 本文介绍如何使用 veritas volume Manager (VxVM) 使用 Vxassist 命令在独立 RedHat Linux 服务器上迁移存储的步骤。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

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

从交换机端:
- 删除旧源阵列与服务器之间的分区

Affected Products

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
Article Properties
Article Number: 000203683
Article Type: How To
Last Modified: 20 Oct 2025
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.