KB di deployment: Come eseguire la migrazione basata su host Linux utilizzando Veritas Volume Manager (VxVM).

Summary: Questo articolo illustra la procedura per eseguire la migrazione dello storage su server RedHat Linux standalone utilizzando veritas volume Manager (VxVM) utilizzando il comando VxAssist. ...

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

L'articolo illustra la migrazione del server Linux dall'array VNX all'array di storage PowerMax.

Dal lato switch:
- Configurare lo zoning tra l'host e le porte sull'array di destinazione (porte front-end che verranno utilizzate per il Port Group (PG)

Dal lato storage:
- Configurare il provisioning sullo storage Powermax di destinazione
- Creare LUN con le stesse dimensioni dell'array di origine e aggiungerle allo storage group
- Creare un initiator group con gli initiator dell'host
- Creare un port group con le porte front-end utilizzate nello zoning
- Creare una vista masking e aggiungervi lo storage group, il port group e l'initiator group

Dal lato server:
1 - Controlli preliminari sul server:
a- Visualizza tutti i dischi sul server
# 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- Visualizzare tutti i gruppi di dischi in esecuzione sul server:
# vxdg list

c- Visualizzare i volumi sul server:
 # 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- Ripetere la scansione del server per individuare i nuovi dispositivi di destinazione utilizzando i comandi:
# vxdisk scandisks
# /usr/bin/rescan-scsi-bus.sh

 Elencare i dispositivi sul server per verificare che i nuovi dispositivi vengano rilevati:
# 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- Formattare i nuovi dischi:
# vxdisksetup -i  format=cdsdisk 
Example:
[root@hostname ~]# vxdisksetup -i emc0_04aa format=cdsdisk 
Verificare che il disco sia formattato:
Esempio:
[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- Aggiungere il nuovo disco al gruppo di dischi:
# vxdg -g  adddisk 

Example:
[root@hostname ~]# vxdg -g DG_name adddisk emc0_04aa
Per verificare:
[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- Eseguire la migrazione dei dati nel volume utilizzando il comando vxassist:
vxassist crea un mirror per il plex nel volume sul nuovo array 
# vxassist -b -g  mirror   enclr: name logtype=none
Example:
[root@hostname ~]# vxassist -b -g DG_name mirror name_vol enclr:emc0 logtype=none
Nota: Questo comando creerà un nuovo plex all'interno del volume sul nuovo array. Lo stato plex verrà scritto solo fino a quando tutti i dati non vengono copiati, lo stato sarà RW.
Esempio:
[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- Monitorare la copia dei dati utilizzando il comando:
# vxtask list

7- Una volta completata la copia dei dati, il volume avrà 2 plex sincronizzati e il nuovo stato plex sarà RW
Esempio:
[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- Pulire il volume rimuovendo il vecchio plex:
# vxplex -g  -o rm dis 
Example:
[root@hostname ~]# vxplex -g DG_name -o rm dis name_vol-01

Verificare che il plex sia stato rimosso:
[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- Recuperare il disco precedente:
# vxdisk reclaim 
Example:
[root@hostname ~]#  vxdisk reclaim emc_clariion0_139
10- Rimuovere il disco precedente dal gruppo di dischi:
# vxdg -g  rmdisk 
Example:
[root@hostname ~]#  vxdg -g  DG_name rmdisk emc_clariion0_139

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

11- Annullare l'inizializzazione del disco:
# vxdiskunsetup -C 
Example:
[root@hostname ~]#  vxdiskunsetup -C emc_clariion0_139

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

Dal lato switch:
- Rimuovere la zona tra l'array di origine precedente e il server

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.