Skip to main content
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

FLI online :准备 LUN 路径

贡献者

要为 FLI 联机迁移做准备,请验证主机和源 LUN 路径以及其他详细信息。

步骤
  1. 在 ONTAP 中,将权限级别更改为 advanced

    cluster::> set adv
    
    Warning: These advanced commands are potentially dangerous; use them only when directed to do so by NetApp personnel.
    Do you want to continue? {y|n}: y
  2. 验证是否可以在目标控制器上看到源阵列。

            cluster::*> storage array show
    Prefix                         Name   Vendor            Model Options
    -------- ---------------------------- -------- ---------------- ----------
    DGC-1                      DGC_LUNZ_1      DGC             LUNZ
    1 entries were displayed.
  3. 显示源 LUN 详细信息。

    cluster::*> storage array config show -array-name DGC_LUNZ_1 -instance
    
               Controller Name: ontaptme-fc-cluster-01
                     LUN Group: 0
            Array Target Ports: 500601643ea067da
                     Initiator: 0c
                    Array Name: DGC_LUNZ_1
       Target Side Switch Port: stme-5010-3:2-1
    Initiator Side Switch Port: stme-5010-3:2-3
          Number of array LUNs: 1
    
               Controller Name: ontaptme-fc-cluster-01
                     LUN Group: 0
            Array Target Ports: 500601653ea067da
                     Initiator: 0d
                    Array Name: DGC_LUNZ_1
       Target Side Switch Port: stme-5010-4:2-1
    Initiator Side Switch Port: stme-5010-4:2-3
          Number of array LUNs: 1
    ~~~~~~~~~~~ output truncated for readability ~~~~~~~~~~~~~~~~~
    8 entries were displayed.
  4. 验证是否已通过所有启动程序端口发现源阵列。

    cluster::*> storage array config show -array-name DGC_LUNZ_1
                 LUN   LUN
    Node         Group Count                   Array Name       Array Target Port Initiator
    ------------ ----- ----- ---------------------------- ----------------------- ---------
    ontaptme-fc-cluster-01
                     0     1                   DGC_LUNZ_1        500601643ea067da        0c
                                                                 500601653ea067da        0d
                                                                 5006016c3ea067da        0c
                                                                 5006016d3ea067da        0d
    ontaptme-fc-cluster-02
                     0     1                   DGC_LUNZ_1        500601643ea067da        0c
                                                                 500601653ea067da        0d
                                                                 5006016c3ea067da        0c
                                                                 5006016d3ea067da        0d
    8 entries were displayed.
    备注

    以下输出中的文字换行没有意义。

  5. 列出从源存储映射的 LUN 。验证磁盘属性和路径。

    cluster::*> storage disk show -array-name DGC_LUNZ_1 -instance
                      Disk: DGC-1.9
            Container Type: unassigned
                Owner/Home: -  / -
                   DR Home: -
        Stack ID/Shelf/Bay: -  / -  / -
                       LUN: 0
                     Array: DGC_LUNZ_1
                    Vendor: DGC
                     Model: VRAID
             Serial Number: 600601603F103100662E70861000E511
                       UID: 60060160:3F103100:662E7086:1000E511:00000000:00000000:00000000:00000000:00000000:00000000
                       BPS: 512
             Physical Size: -
                  Position: present
    Checksum Compatibility: block
                 Aggregate: -
                      Plex: -
    Paths:
                                   LUN  Initiator Side        Target Side                                                        Link
    Controller         Initiator     ID  Switch Port           Switch Port           Acc Use  Target Port                TPGN    Speed      I/O KB/s          IOPS
    ------------------ ---------  -----  --------------------  --------------------  --- ---  -----------------------  ------  -------  ------------  ------------
    ontaptme-fc-cluster-02
                       0c             0  stme-5010-3:2-4       stme-5010-3:2-2       AO  INU  5006016c3ea067da              2   4 Gb/S             0             0
    ontaptme-fc-cluster-02
                       0d             0  stme-5010-4:2-4       stme-5010-4:2-2       AO  INU  5006016d3ea067da              2   4 Gb/S             0             0
    ontaptme-fc-cluster-02
                       0d             0  stme-5010-4:2-4       stme-5010-4:2-1       ANO RDY  500601653ea067da              1   4 Gb/S             0             0
    
    Errors:
    -
  6. 查看源 LUN 。

    cluster::*> storage disk show -array-name DGC_LUNZ_1
                         Usable           Disk    Container   Container
    Disk                   Size Shelf Bay Type    Type        Name      Owner
    ---------------- ---------- ----- --- ------- ----------- --------- --------
    DGC-1.9                   -     -   - LUN     unassigned  -         -
  7. 将源 LUN 标记为外部。

    cluster::*> storage disk set-foreign-lun -is-foreign true -disk DGC-1.9
  8. 验证源 LUN 是否标记为外部。

    cluster::*> storage disk show -array-name DGC_LUNZ_1
                         Usable           Disk    Container   Container
    Disk                   Size Shelf Bay Type    Type        Name      Owner
    ---------------- ---------- ----- --- ------- ----------- --------- --------
    DGC-1.9
  9. 序列号用于 FLI LUN 导入命令。列出所有外部 LUN 及其序列号。

    cluster::*> storage disk show -container-type foreign -fields serial-number
    disk    serial-number
    ------- --------------------------------
    DGC-1.9 600601603F103100662E70861000E511
  10. 创建目标卷。

    cluster::*> vol create -vserver fli -volume fli_vol -aggregate aggr1 -size 2t
    [Job 13888] Job succeeded: Successful
  11. 验证卷。

    cluster::*> vol show -vserver fli
    Vserver   Volume       Aggregate    State      Type       Size  Available Used%
    --------- ------------ ------------ ---------- ---- ---------- ---------- -----
    fli       fli_root     aggr1        online     RW          1GB    972.6MB    5%
    fli       fli_vol      aggr1        online     RW          2TB     1.90TB    5%
    2 entries were displayed.
  12. 将每个卷的 frame_reserveoption 设置为 0 ,并将 Snapshot 策略设置为 none

    cluster::*> vol modify -vserver datamig -volume * -fractional-reserve 0 –snapshot-policy none
    Volume modify successful on volume winvol of Vserver datamig.
  13. 检查卷设置。

    cluster::*> vol show -vserver datamig -volume * -fields fractional-reserve,snapshot-policy
    vservervolumesnapshot-policyfractional-reserve
    -----------------------------------------------
    datamigdatamig_rootnone0%
    datamigwinvolnone0%
    Volume modify successful on volume winvol of Vserver datamig.
  14. 删除任何现有 Snapshot 副本。

    cluster::*> set advanced; snap delete –vserver datamig –vol winvol –snapshot * -force true
    1 entry was acted on.
    备注

    FLI 迁移会修改目标 LUN 的每个块。如果在进行 FLI 迁移之前某个卷上存在默认 Snapshot 副本或其他 Snapshot 副本,则该卷将填满。需要在进行 FLI 迁移之前更改策略并删除任何现有 Snapshot 副本。可以在迁移后重新设置 Snapshot 策略。

    备注

    lun create 命令会根据分区偏移检测大小和对齐情况,并使用外部磁盘选项相应地创建 LUN 。要查看 I/O 不对齐情况,请查看 NetApp 知识库文章 * 什么是未对齐的 I/O ?另请注意,某些 I/O 始终显示为部分写入,因此看起来似乎未对齐。例如,数据库日志。

  15. 创建目标 LUN 。lun create 命令可根据分区偏移检测大小和对齐,并使用 foreign-disk 参数相应地创建 LUN 。

    cluster::*> lun create -vserver fli -path /vol/fli_vol/OnlineFLI_LUN -ostype windows_2008 -foreign-disk 600601603F103100662E70861000E511
    
    Created a LUN of size 1t (1099511627776)
  16. 验证新的 LUN 。

    cluster::*> lun show -vserver fli
    Vserver   Path                            State   Mapped   Type        Size
    --------- ------------------------------- ------- -------- -------- --------
    fli       /vol/fli_vol/OnlineFLI_LUN      online  unmapped windows_2008  1TB
  17. 使用主机启动程序创建协议 FCP 的 igroup 。

    cluster::*> igroup create -vserver fli -igroup FLI -protocol fcp -ostype windows -initiator 10:00:00:00:c9:e6:e2:79
  18. 验证主机是否登录到新 igroup 的所有路径。

    cluster::*> igroup show –vserver fli –igroup FLI
       Vserver name: fli
        Igroup name: FLI
           Protocol: fcp
         OS Type: Windows
    Portset Binding Igroup: -
       Igroup UUID: 5c664f48-0017-11e5-877f-00a0981cc318
              ALUA: true
        Initiators: 10:00:00:00:c9:e6:e2:77 (logged in)
    10:00:00:00:c9:e6:e2:79 (logged in)
  19. 使目标 LUN 脱机。

    cluster::*> lun offline -vserver fli -path /vol/fli_vol/OnlineFLI_LUN
    
    Warning: This command will take LUN "/vol/fli_vol/OnlineFLI_LUN" in Vserver "fli" offline.
    Do you want to continue? {y|n}: y
  20. 将目标 LUN 映射到 igroup 。

    cluster::*> lun map -vserver fli -path /vol/fli_vol/OnlineFLI_LUN -igroup FLI
  21. 在新 LUN 和外部 LUN 之间创建导入关系。

    cluster::*> lun import create -vserver fli -path /vol/fli_vol/OnlineFLI_LUN -foreign-disk 600601603F103100662E70861000E511