Skip to main content
NetApp data management solutions
본 한국어 번역은 사용자 편의를 위해 제공되는 기계 번역입니다. 영어 버전과 한국어 버전이 서로 어긋나는 경우에는 언제나 영어 버전이 우선합니다.

7-Mode에서 ONTAP 으로 데이터 마이그레이션

기여자 kevin-hoke

이 섹션에서는 7-Mode에서 작동하는 NetApp Data ONTAP 에서 ONTAP 으로 데이터를 마이그레이션하는 자세한 단계를 제공합니다.

NFS 데이터를 위해 7-Mode NFSv3 스토리지를 ONTAP 으로 전환

이 섹션에서는 다음 표에 나와 있는 단계별 절차를 통해 소스 7-모드 NFSv3 내보내기를 ONTAP 시스템으로 전환하는 방법을 설명합니다.

NetApp 소스 7-Mode NFSv3 볼륨이 클라이언트 시스템으로 내보내지고 마운트되었으며 XCP가 이미 Linux 시스템에 설치되어 있다고 가정합니다.

  1. 대상 ONTAP 시스템이 정상인지 확인합니다.

    CLUSTER::> cluster show
    Node                  Health  Eligibility
    --------------------- ------- ------------
    CLUSTER-01            true    true
    CLUSTER-02            true    true
    2 entries were displayed.
    CLUSTER::> node show
    Node      Health Eligibility Uptime        Model       Owner    Location
    --------- ------ ----------- ------------- ----------- -------- ---------------
    CLUSTER-01
              true   true        78 days 21:01 FAS8060              RTP
    CLUSTER-02
              true   true        78 days 20:50 FAS8060              RTP
    2 entries were displayed.
    CLUSTER::> storage failover show
                                  Takeover
    Node           Partner        Possible State Description
    -------------- -------------- -------- -------------------------------------
    CLUSTER-01     CLUSTER-02     true     Connected to CLUSTER-02
    CLUSTER-02     CLUSTER-01     true     Connected to CLUSTER-01
    2 entries were displayed.
  2. 대상 시스템에 최소한 하나의 비루트 집계가 있는지 확인합니다. 집계는 정상입니다.

    CLUSTER::> storage aggregate show
    Aggregate     Size Available Used% State   #Vols  Nodes            RAID Status
    --------- -------- --------- ----- ------- ------ ---------------- ------------
    aggr0      368.4GB   17.85GB   95% online       1 CLUSTER-01       raid_dp,
                                                                       normal
    aggr0_CLUSTER_02_0
               368.4GB   17.85GB   95% online       1 CLUSTER-02       raid_dp,
                                                                       normal
    source      1.23TB    1.10TB   11% online       6 CLUSTER-01       raid_dp,
                                                                       normal
    3 entries were displayed.

    데이터 집계가 없는 경우 다음을 사용하여 새 데이터를 만듭니다. storage aggr create 명령.

  3. 대상 클러스터 시스템에 스토리지 가상 머신(SVM)을 생성합니다.

    CLUSTER::> vserver create -vserver dest -rootvolume dest_root -aggregate poc -rootvolume-security-style mixed
    [Job 647] Job succeeded:
    Vserver creation completed
    Verify the security style and language settings of the source
    
    Verify that the SVM was successfully created.
    CLUSTER::> vserver show -vserver dest
                                        Vserver: dest
                                   Vserver Type: data
                                Vserver Subtype: default
                                   Vserver UUID: 91f6d786-0063-11e5-b114-00a09853a969
                                    Root Volume: dest_root
                                      Aggregate: poc
                                     NIS Domain: -
                     Root Volume Security Style: mixed
                                    LDAP Client: -
                   Default Volume Language Code: C.UTF-8
                                Snapshot Policy: default
                                        Comment:
                                   Quota Policy: default
                    List of Aggregates Assigned: -
     Limit on Maximum Number of Volumes allowed: unlimited
                            Vserver Admin State: running
                      Vserver Operational State: running
       Vserver Operational State Stopped Reason: -
                              Allowed Protocols: nfs, cifs, fcp, iscsi, ndmp
                           Disallowed Protocols: -
                Is Vserver with Infinite Volume: false
                               QoS Policy Group: -
                                    Config Lock: false
                                   IPspace Name: Default
  4. 대상 SVM에서 FCP, iSCSI, NDMP 및 CIDS 프로토콜을 제거합니다.

    CLUSTER::> vserver remove-protocols -vserver dest -protocols fcp,iscsi,ndmp,cifs

    이 SVM에 대해 NFS가 허용되는 프로토콜인지 확인하세요.

    CLUSTER::> vserver show -vserver dest -fields allowed-protocols
    vserver allowed-protocols
    ------- -----------------
    dest    nfs
  5. 대상 SVM에 새로운 읽기-쓰기 데이터 볼륨을 만듭니다. 보안 스타일, 언어 설정 및 용량 요구 사항이 소스 볼륨과 일치하는지 확인하세요.

    CLUSTER::> vol create -vserver dest -volume dest_nfs -aggregate poc -size 150g -type RW -state online -security-style mixed
    [Job 648] Job succeeded: Successful
  6. NFS 클라이언트 요청을 처리하기 위해 데이터 LIF를 생성합니다.

    CLUSTER::> network interface create -vserver dest -lif dest_lif -address 10.61.73.115 -netmask 255.255.255.0 -role data -data-protocol nfs -home-node CLUSTER-01 -home-port e0l

    LIF가 성공적으로 생성되었는지 확인하세요.

    CLUSTER::> network interface show -vserver dest
                Logical    Status     Network            Current       Current Is
    Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
    ----------- ---------- ---------- ------------------ ------------- ------- ----
    dest
                dest_lif
                             up/up    10.61.73.113/24    CLUSTER-01    e0i     true
  7. 필요한 경우 SVM으로 정적 경로를 만듭니다.

    CLUSTER::> network route create -vserver dest -destination 0.0.0.0/0 -gateway 192.168.100.111

    경로가 성공적으로 생성되었는지 확인하세요.

    CLUSTER::> network route show -vserver source
    Vserver             Destination     Gateway         Metric
    ------------------- --------------- --------------- ------
    dest
                        0.0.0.0/0       10.61.73.1      20
  8. SVM 네임스페이스에 대상 NFS 데이터 볼륨을 마운트합니다.

    CLUSTER::> volume mount -vserver dest -volume dest_nfs -junction-path /dest_nfs -active true

    볼륨이 성공적으로 마운트되었는지 확인하세요.

    CLUSTER::> volume show -vserver dest -fields junction-path
    vserver volume   junction-path
    ------- -------- -------------
    dest    dest_nfs /dest_nfs
    dest    dest_root
                     /
    2 entries were displayed.

    볼륨 마운트 옵션(접합 경로)을 지정할 수도 있습니다. volume create 명령.

  9. 대상 SVM에서 NFS 서비스를 시작합니다.

    CLUSTER::> vserver nfs start -vserver dest

    서비스가 시작되어 실행 중인지 확인하세요.

    CLUSTER::> vserver nfs status
    The NFS server is running on Vserver "dest".
    CLUSTER::> nfs show
    Vserver: dest
            General Access:  true
                        v3:  enabled
                      v4.0:  disabled
                       4.1:  disabled
                       UDP:  enabled
                       TCP:  enabled
      Default Windows User:  -
     Default Windows Group:  -
  10. 기본 NFS 내보내기 정책이 대상 SVM에 적용되었는지 확인합니다.

    CLUSTER::> vserver export-policy show -vserver dest
    Vserver          Policy Name
    ---------------  -------------------
    dest             default
  11. 필요한 경우 대상 SVM에 대한 새 사용자 지정 내보내기 정책을 만듭니다.

    CLUSTER::> vserver export-policy create -vserver dest -policyname xcpexportpolicy

    새로운 사용자 지정 내보내기 정책이 성공적으로 생성되었는지 확인하세요.

    CLUSTER::> vserver export-policy show -vserver dest
    Vserver          Policy Name
    ---------------  -------------------
    dest             default
    dest             xcpexportpolicy
    2 entries were displayed.
  12. NFS 클라이언트에 대한 액세스를 허용하도록 내보내기 정책 규칙을 수정합니다.

    CLUSTER::> export-policy rule modify -vserver dest -ruleindex 1 -policyname xcpexportpolicy -clientmatch 0.0.0.0/0 -rorule any -rwrule any -anon 0
    Verify the policy rules have modified
    CLUSTER::> export-policy rule show -instance
                                        Vserver: dest
                                    Policy Name: xcpexportpolicy
                                     Rule Index: 1
                                Access Protocol: nfs3
    Client Match Hostname, IP Address, Netgroup, or Domain: 0.0.0.0/0
                                 RO Access Rule: none
                                 RW Access Rule: none
    User ID To Which Anonymous Users Are Mapped: 65534
                       Superuser Security Types: none
                   Honor SetUID Bits in SETATTR: true
                      Allow Creation of Devices: true
  13. 클라이언트가 볼륨에 액세스할 수 있는지 확인하세요.

    CLUSTER::> export-policy check-access -vserver dest -volume dest_nfs -client-ip 10.61.82.215 -authentication-method none -protocol nfs3 -access-type read-write
                                             Policy    Policy       Rule
    Path                          Policy     Owner     Owner Type  Index Access
    ----------------------------- ---------- --------- ---------- ------ ----------
    /                             xcpexportpolicy
                                             dest_root volume          1 read
    /dest_nfs                     xcpexportpolicy
                                             dest_nfs  volume          1 read-write
    2 entries were displayed.
  14. Linux NFS 서버에 연결합니다. NFS로 내보낸 볼륨에 대한 마운트 지점을 만듭니다.

    [root@localhost /]# cd /mnt
    [root@localhost mnt]# mkdir dest
  15. 이 마운트 지점에 대상 NFSv3 내보낸 볼륨을 마운트합니다.

    참고 NFSv3 볼륨은 내보내야 하지만 반드시 NFS 서버에 의해 마운트될 필요는 없습니다. 이러한 볼륨을 마운트할 수 있는 경우 XCP Linux 호스트 클라이언트가 해당 볼륨을 마운트합니다.
    [root@localhost mnt]# mount -t nfs 10.61.73.115:/dest_nfs /mnt/dest

    마운트 지점이 성공적으로 생성되었는지 확인하세요.

    [root@ localhost /]# mount | grep nfs
    10.61.73.115:/dest_nfs on /mnt/dest type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.61.82.215,mountvers=3,mountport=4046,mountproto=udp,local_lock=none,addr=10.61.73.115)
  16. NFS로 내보낸 마운트 지점에 테스트 파일을 만들어 읽기-쓰기 액세스를 활성화합니다.

    [root@localhost dest]# touch test.txt
    Verify the file is created
    [root@localhost dest]# ls -l
    total 0
    -rw-r--r-- 1 root bin 0 Jun  2 03:16 test.txt
    참고 읽기-쓰기 테스트가 완료되면 대상 NFS 마운트 지점에서 파일을 삭제합니다.
  17. XCP가 설치된 Linux 클라이언트 시스템에 연결합니다. XCP 설치 경로를 찾습니다.

    [root@localhost ~]# cd /linux/
    [root@localhost linux]#
  18. 다음을 실행하여 소스 7-Mode NFSv3 내보내기를 쿼리합니다. xcp show XCP Linux 클라이언트 호스트 시스템의 명령입니다.

    [root@localhost]#./xcp show 10.61.82.215
    == NFS Exports ==
    Mounts  Errors  Server
          4       0  10.61.82.215
         Space    Files      Space    Files
          Free     Free       Used     Used Export
      23.7 GiB  778,134    356 KiB       96 10.61.82.215:/vol/nfsvol1
      17.5 GiB  622,463   1.46 GiB      117 10.61.82.215:/vol/nfsvol
       328 GiB    10.8M   2.86 GiB    7,904 10.61.82.215:/vol/vol0/home
       328 GiB    10.8M   2.86 GiB    7,904 10.61.82.215:/vol/vol0
    == Attributes of NFS Exports ==
    drwxr-xr-x --- root wheel 4KiB 4KiB 2d21h 10.61.82.215:/vol/nfsvol1
    drwxr-xr-x --- root wheel 4KiB 4KiB 2d21h 10.61.82.215:/vol/nfsvol
    drwxrwxrwx --t root wheel 4KiB 4KiB 9d22h 10.61.82.215:/vol/vol0/home
    drwxr-xr-x --- root wheel 4KiB 4KiB  4d0h 10.61.82.215:/vol/vol0
    3.89 KiB in (5.70 KiB/s), 7.96 KiB out (11.7 KiB/s), 0s.
  19. 소스 NFSv3에서 내보낸 경로를 스캔하고 해당 파일 구조의 통계를 인쇄합니다.

    NetApp xcp 동안 소스 NFSv3 내보내기를 읽기 전용 모드로 전환할 것을 권장합니다. scan , copy , 그리고 sync 운영.

    [root@localhost /]# ./xcp scan 10.61.82.215:/vol/nfsvol
    nfsvol
    nfsvol/n5000-uk9.5.2.1.N1.1.bin
    nfsvol/821_q_image.tgz
    nfsvol/822RC2_q_image.tgz
    nfsvol/NX5010_12_node_RCF_v1.3.txt
    nfsvol/n5000-uk9-kickstart.5.2.1.N1.1.bin
    nfsvol/NetApp_CN1610_1.1.0.5.stk
    nfsvol/glibc-common-2.7-2.x86_64.rpm
    nfsvol/glibc-2.7-2.x86_64.rpm
    nfsvol/rhel-server-5.6-x86_64-dvd.iso.filepart
    nfsvol/xcp
    nfsvol/xcp_source
    nfsvol/catalog
    23 scanned, 7.79 KiB in (5.52 KiB/s), 1.51 KiB out (1.07 KiB/s), 1s.
  20. 소스 7-모드 NFSv3 내보내기를 대상 ONTAP 시스템의 NFSv3 내보내기로 복사합니다.

    [root@localhost /]# ./xcp copy 10.61.82.215:/vol/nfsvol 10.61.73.115:/dest_nfs
     44 scanned, 39 copied, 264 MiB in (51.9 MiB/s), 262 MiB out (51.5 MiB/s), 5s
     44 scanned, 39 copied, 481 MiB in (43.3 MiB/s), 479 MiB out (43.4 MiB/s), 10s
     44 scanned, 40 copied, 748 MiB in (51.2 MiB/s), 747 MiB out (51.3 MiB/s), 16s
     44 scanned, 40 copied, 1.00 GiB in (55.9 MiB/s), 1.00 GiB out (55.9 MiB/s), 21s
     44 scanned, 40 copied, 1.21 GiB in (42.8 MiB/s), 1.21 GiB out (42.8 MiB/s), 26s
    Sending statistics...
    44 scanned, 43 copied, 1.46 GiB in (47.6 MiB/s), 1.45 GiB out (47.6 MiB/s), 31s.
  21. 복사가 완료된 후 소스 및 대상 NFSv3 내보내기에 동일한 데이터가 있는지 확인합니다. 실행하다 xcp verify 명령.

    [root@localhost /]# ./xcp verify 10.61.82.215:/vol/nfsvol 10.61.73.115:/dest_nfs
    44 scanned, 44 found, 28 compared, 27 same data, 2.41 GiB in (98.4 MiB/s), 6.25 MiB out (255 KiB/s), 26s
    44 scanned, 44 found, 30 compared, 29 same data, 2.88 GiB in (96.4 MiB/s), 7.46 MiB out (249 KiB/s), 31s
    44 scanned, 100% found (43 have data), 43 compared, 100% verified (data, attrs, mods), 2.90 GiB in (92.6 MiB/s), 7.53 MiB out (240 KiB/s), 32s.

    만약에 xcp verify 소스 데이터와 대상 데이터 간의 차이점을 찾은 다음 오류를 찾습니다. no such file or directory 요약에 보고되어 있습니다. 해당 문제를 해결하려면 다음을 실행하세요. xcp sync 소스 변경 사항을 대상에 복사하는 명령입니다.

  22. 컷오버 전과 컷오버 중에 실행 verify 다시. 소스에 새 데이터나 업데이트된 데이터가 있는 경우 증분 업데이트를 수행합니다. 실행하다 xcp sync 명령.

    For this operation, the previous copy index name or number is required.
    [root@localhost /]# ./xcp sync -id 3
    Index: {source: '10.61.82.215:/vol/nfsvol', target: '10.61.73.115:/dest_nfs1'}
    64 reviewed, 64 checked at source, 6 changes, 6 modifications, 51.7 KiB in (62.5 KiB/s), 22.7 KiB out (27.5 KiB/s), 0s.
    xcp: sync '3': Starting search pass for 1 modified directory...
    xcp: sync '3': Found 6 indexed files in the 1 changed directory
    xcp: sync '3': Rereading the 1 modified directory to find what's new...
    xcp: sync '3': Deep scanning the 1 directory that changed...
    11 scanned, 11 copied, 12.6KiB in (6.19KiBps), 9.50 KiB out (4.66KiBps), 2s.
  23. 이전에 중단된 복사 작업을 재개하려면 다음을 실행하세요. xcp resume 명령.

    [root@localhost /]# ./xcp resume -id 4
    Index: {source: '10.61.82.215:/vol/nfsvol', target: '10.61.73.115:/dest_nfs7'}
    xcp: resume '4': WARNING: Incomplete index.
    xcp: resume '4': Found 18 completed directories and 1 in progress
    106 reviewed, 24.2 KiB in (30.3 KiB/s), 7.23 KiB out (9.06 KiB/s), 0s.
    xcp: resume '4': Starting second pass for the in-progress directory...
    xcp: resume '4': Found 3 indexed directories and 0 indexed files in the 1 in-progress directory
    xcp: resume '4': In progress dirs: unindexed 1, indexed 0
    xcp: resume '4': Resuming the 1 in-progress directory...
     20 scanned, 7 copied, 205 MiB in (39.6 MiB/s), 205 MiB out (39.6 MiB/s), 5s
     20 scanned, 14 copied, 425 MiB in (42.1 MiB/s), 423 MiB out (41.8 MiB/s), 11s
     20 scanned, 14 copied, 540 MiB in (23.0 MiB/s), 538 MiB out (23.0 MiB/s), 16s
     20 scanned, 14 copied, 721 MiB in (35.6 MiB/s), 720 MiB out (35.6 MiB/s), 21s
     20 scanned, 15 copied, 835 MiB in (22.7 MiB/s), 833 MiB out (22.7 MiB/s), 26s
     20 scanned, 16 copied, 1007 MiB in (34.3 MiB/s), 1005 MiB out (34.3 MiB/s), 31s
     20 scanned, 17 copied, 1.15 GiB in (33.9 MiB/s), 1.15 GiB out (33.9 MiB/s), 36s
     20 scanned, 17 copied, 1.27 GiB in (25.5 MiB/s), 1.27 GiB out (25.5 MiB/s), 41s
     20 scanned, 17 copied, 1.45 GiB in (36.1 MiB/s), 1.45 GiB out (36.1 MiB/s), 46s
     20 scanned, 17 copied, 1.69 GiB in (48.7 MiB/s), 1.69 GiB out (48.7 MiB/s), 51s
    Sending statistics...
    20 scanned, 20 copied, 21 indexed, 1.77 GiB in (33.5 MiB/s), 1.77 GiB out (33.4 MiB/s), 54s.

    후에 resume 파일 복사를 완료하고 실행합니다. verify 다시 말해서 소스와 대상 저장소에 동일한 데이터가 있게 됩니다.

  24. NFSv3 클라이언트 호스트는 7-Mode 스토리지에서 프로비저닝된 소스 NFSv3 내보내기를 마운트 해제하고 ONTAP 에서 대상 NFSv3 내보내기를 마운트해야 합니다. 컷오버에는 정전이 필요합니다.

7-모드 볼륨 스냅샷 복사본을 ONTAP 으로 전환

이 섹션에서는 소스 7-Mode 볼륨 NetApp Snapshot 복사본을 ONTAP 으로 전환하는 절차에 대해 설명합니다.

참고 NetApp 소스 7-Mode 볼륨이 클라이언트 시스템으로 내보내지고 마운트되었으며 XCP가 이미 Linux 시스템에 설치되어 있다고 가정합니다. 스냅샷 복사본은 마지막 스냅샷 복사본 이후의 증분 변경 사항을 기록하는 볼륨의 특정 시점 이미지입니다. 사용하세요 -snap 7모드 시스템을 소스로 사용하는 옵션입니다.

경고: 기본 스냅샷 사본을 보관하세요. 기준 복사가 완료된 후에는 기본 스냅샷 복사본을 삭제하지 마세요. 추가 동기화 작업을 위해서는 기본 스냅샷 사본이 필요합니다.

  1. 대상 ONTAP 시스템이 정상인지 확인합니다.

    CLUSTER::> cluster show
    Node                  Health  Eligibility
    --------------------- ------- ------------
    CLUSTER-01            true    true
    CLUSTER-02            true    true
    2 entries were displayed.
    CLUSTER::> node show
    Node      Health Eligibility Uptime        Model       Owner    Location
    --------- ------ ----------- ------------- ----------- -------- ---------------
    CLUSTER-01
              true   true        78 days 21:01 FAS8060              RTP
    CLUSTER-02
              true   true        78 days 20:50 FAS8060              RTP
    2 entries were displayed.
    CLUSTER::> storage failover show
                                  Takeover
    Node           Partner        Possible State Description
    -------------- -------------- -------- -------------------------------------
    CLUSTER-01     CLUSTER-02     true     Connected to CLUSTER-02
    CLUSTER-02     CLUSTER-01     true     Connected to CLUSTER-01
    2 entries were displayed.
  2. 대상 시스템에 최소한 하나의 비루트 집계가 있는지 확인합니다. 집계는 정상입니다.

    CLUSTER::> storage aggregate show
    Aggregate     Size Available Used% State   #Vols  Nodes            RAID Status
    --------- -------- --------- ----- ------- ------ ---------------- ------------
    aggr0      368.4GB   17.85GB   95% online       1 CLUSTER-01       raid_dp,
                                                                       normal
    aggr0_CLUSTER_02_0
               368.4GB   17.85GB   95% online       1 CLUSTER-02       raid_dp,
                                                                       normal
    source      1.23TB    1.10TB   11% online       6 CLUSTER-01       raid_dp,
                                                                       normal
    3 entries were displayed.

    데이터 집계가 없는 경우 다음을 사용하여 새 데이터를 만듭니다. storage aggr create 명령.

  3. 대상 클러스터 시스템에 SVM을 생성합니다.

    CLUSTER::> vserver create -vserver dest -rootvolume dest_root -aggregate poc -rootvolume-security-style mixed
    [Job 647] Job succeeded:
    Vserver creation completed
    Verify the security style and language settings of the source
    
    Verify that the SVM was successfully created.
    CLUSTER::> vserver show -vserver dest
                                        Vserver: dest
                                   Vserver Type: data
                                Vserver Subtype: default
                                   Vserver UUID: 91f6d786-0063-11e5-b114-00a09853a969
                                    Root Volume: dest_root
                                      Aggregate: poc
                                     NIS Domain: -
                     Root Volume Security Style: mixed
                                    LDAP Client: -
                   Default Volume Language Code: C.UTF-8
                                Snapshot Policy: default
                                        Comment:
                                   Quota Policy: default
                    List of Aggregates Assigned: -
     Limit on Maximum Number of Volumes allowed: unlimited
                            Vserver Admin State: running
                      Vserver Operational State: running
       Vserver Operational State Stopped Reason: -
                              Allowed Protocols: nfs, cifs, fcp, iscsi, ndmp
                           Disallowed Protocols: -
                Is Vserver with Infinite Volume: false
                               QoS Policy Group: -
                                    Config Lock: false
                                   IPspace Name: Default
  4. 대상 SVM에서 FCP, iSCSI, NDMP 및 CIFS 프로토콜을 제거합니다.

    CLUSTER::> vserver remove-protocols -vserver dest -protocols fcp,iscsi,ndmp,cifs
    Verify that NFS is the allowed protocol for this SVM.
    CLUSTER::> vserver show -vserver dest -fields allowed-protocols
    vserver allowed-protocols
    ------- -----------------
    dest    nfs
  5. 대상 SVM에 새로운 읽기-쓰기 데이터 볼륨을 만듭니다. 보안 스타일, 언어 설정 및 용량 요구 사항이 소스 볼륨과 일치하는지 확인하세요.

    CLUSTER::> vol create -vserver dest -volume dest_nfs -aggregate poc -size 150g -type RW -state online -security-style mixed
    [Job 648] Job succeeded: Successful
  6. NFS 클라이언트 요청을 처리하기 위해 데이터 LIF를 생성합니다.

    CLUSTER::> network interface create -vserver dest -lif dest_lif -address 10.61.73.115 -netmask 255.255.255.0 -role data -data-protocol nfs -home-node CLUSTER-01 -home-port e0l

    LIF가 성공적으로 생성되었는지 확인하세요.

    CLUSTER::> network interface show -vserver dest
                Logical    Status     Network            Current       Current Is
    Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
    ----------- ---------- ---------- ------------------ ------------- ------- ----
    dest
                dest_lif
                             up/up    10.61.73.113/24    CLUSTER-01    e0i     true
  7. 필요한 경우 SVM으로 정적 경로를 만듭니다.

    CLUSTER::> network route create -vserver dest -destination 0.0.0.0/0 -gateway 192.168.100.111

    경로가 성공적으로 생성되었는지 확인하세요.

    CLUSTER::> network route show -vserver source
    Vserver             Destination     Gateway         Metric
    ------------------- --------------- --------------- ------
    dest
                        0.0.0.0/0       10.61.73.1      20
  8. SVM 네임스페이스에 대상 NFS 데이터 볼륨을 마운트합니다.

    CLUSTER::> volume mount -vserver dest -volume dest_nfs -junction-path /dest_nfs -active true

    볼륨이 성공적으로 마운트되었는지 확인하세요.

    CLUSTER::> volume show -vserver dest -fields junction-path
    vserver volume   junction-path
    ------- -------- -------------
    dest    dest_nfs /dest_nfs
    dest    dest_root
                     /
    2 entries were displayed.

    또한 볼륨 마운트 옵션(접합 경로)을 지정할 수 있습니다. volume create 명령.

  9. 대상 SVM에서 NFS 서비스를 시작합니다.

    CLUSTER::> vserver nfs start -vserver dest

    서비스가 시작되어 실행 중인지 확인하세요.

    CLUSTER::> vserver nfs status
    The NFS server is running on Vserver "dest".
    CLUSTER::> nfs show
    Vserver: dest
            General Access:  true
                        v3:  enabled
                      v4.0:  disabled
                       4.1:  disabled
                       UDP:  enabled
                       TCP:  enabled
      Default Windows User:  -
     Default Windows Group:  -
  10. 기본 NFS 내보내기 정책이 대상 SVM에 적용되었는지 확인합니다.

    CLUSTER::> vserver export-policy show -vserver dest
    Vserver          Policy Name
    ---------------  -------------------
    dest             default
  11. 필요한 경우 대상 SVM에 대한 새 사용자 지정 내보내기 정책을 만듭니다.

    CLUSTER::> vserver export-policy create -vserver dest -policyname xcpexportpolicy

    새로운 사용자 지정 내보내기 정책이 성공적으로 생성되었는지 확인하세요.

    CLUSTER::> vserver export-policy show -vserver dest
    Vserver          Policy Name
    ---------------  -------------------
    dest             default
    dest             xcpexportpolicy
    2 entries were displayed.
  12. 대상 시스템의 NFS 클라이언트에 대한 액세스를 허용하도록 내보내기 정책 규칙을 수정합니다.

    CLUSTER::> export-policy rule modify -vserver dest -ruleindex 1 -policyname xcpexportpolicy -clientmatch 0.0.0.0/0 -rorule any -rwrule any -anon 0
    Verify the policy rules have modified
    CLUSTER::> export-policy rule show -instance
                                        Vserver: dest
                                    Policy Name: xcpexportpolicy
                                     Rule Index: 1
                                Access Protocol: nfs3
    Client Match Hostname, IP Address, Netgroup, or Domain: 0.0.0.0/0
                                 RO Access Rule: none
                                 RW Access Rule: none
    User ID To Which Anonymous Users Are Mapped: 65534
                       Superuser Security Types: none
                   Honor SetUID Bits in SETATTR: true
                      Allow Creation of Devices: true
  13. 클라이언트가 대상 볼륨에 액세스할 수 있는지 확인합니다.

    CLUSTER::> export-policy check-access -vserver dest -volume dest_nfs -client-ip 10.61.82.215 -authentication-method none -protocol nfs3 -access-type read-write
                                             Policy    Policy       Rule
    Path                          Policy     Owner     Owner Type  Index Access
    ----------------------------- ---------- --------- ---------- ------ ----------
    /                             xcpexportpolicy
                                             dest_root volume          1 read
    /dest_nfs                     xcpexportpolicy
                                             dest_nfs  volume          1 read-write
    2 entries were displayed.
  14. Linux NFS 서버에 연결합니다. NFS로 내보낸 볼륨에 대한 마운트 지점을 만듭니다.

    [root@localhost /]# cd /mnt
    [root@localhost mnt]# mkdir dest
  15. 이 마운트 지점에 대상 NFSv3 내보낸 볼륨을 마운트합니다.

    참고 NFSv3 볼륨은 내보내야 하지만 반드시 NFS 서버에 의해 마운트될 필요는 없습니다. 이러한 볼륨을 마운트할 수 있는 경우 XCP Linux 호스트 클라이언트가 해당 볼륨을 마운트합니다.
    [root@localhost mnt]# mount -t nfs 10.61.73.115:/dest_nfs /mnt/dest

    마운트 지점이 성공적으로 생성되었는지 확인하세요.

    [root@ localhost /]# mount | grep nfs
    10.61.73.115:/dest_nfs on /mnt/dest type nfs
  16. NFS로 내보낸 마운트 지점에 테스트 파일을 만들어 읽기-쓰기 액세스를 활성화합니다.

    [root@localhost dest]# touch test.txt
    Verify the file is created
    [root@localhost dest]# ls -l
    total 0
    -rw-r--r-- 1 root bin 0 Jun  2 03:16 test.txt
    참고 읽기-쓰기 테스트가 완료되면 대상 NFS 마운트 지점에서 파일을 삭제합니다.
  17. XCP가 설치된 Linux 클라이언트 시스템에 연결합니다. XCP 설치 경로를 찾습니다.

    [root@localhost ~]# cd /linux/
    [root@localhost linux]#
  18. 다음을 실행하여 소스 7-Mode NFSv3 내보내기를 쿼리합니다. xcp show XCP Linux 클라이언트 호스트 시스템의 명령입니다.

    [root@localhost]#./xcp show 10.61.82.215
    == NFS Exports ==
    Mounts  Errors  Server
          4       0  10.61.82.215
         Space    Files      Space    Files
          Free     Free       Used     Used Export
      23.7 GiB  778,134    356 KiB       96 10.61.82.215:/vol/nfsvol1
      17.5 GiB  622,463   1.46 GiB      117 10.61.82.215:/vol/nfsvol
       328 GiB    10.8M   2.86 GiB    7,904 10.61.82.215:/vol/vol0/home
       328 GiB    10.8M   2.86 GiB    7,904 10.61.82.215:/vol/vol0
    == Attributes of NFS Exports ==
    drwxr-xr-x --- root wheel 4KiB 4KiB 2d21h 10.61.82.215:/vol/nfsvol1
    drwxr-xr-x --- root wheel 4KiB 4KiB 2d21h 10.61.82.215:/vol/nfsvol
    drwxrwxrwx --t root wheel 4KiB 4KiB 9d22h 10.61.82.215:/vol/vol0/home
    drwxr-xr-x --- root wheel 4KiB 4KiB  4d0h 10.61.82.215:/vol/vol0
    3.89 KiB in (5.70 KiB/s), 7.96 KiB out (11.7 KiB/s), 0s.
  19. 소스 NFSv3에서 내보낸 경로를 스캔하고 해당 파일 구조의 통계를 인쇄합니다.

    NetApp 소스 NFSv3 내보내기를 읽기 전용 모드로 설정하는 것을 권장합니다. xcp scan , copy , 그리고 sync 운영. ~ 안에 sync 작업을 수행하려면 다음을 통과해야 합니다. -snap 해당 가치가 있는 옵션.

    [root@localhost /]# ./xcp scan 10.61.82.215:/vol/nfsvol/.snapshot/snap1
    nfsvol
    nfsvol/n5000-uk9.5.2.1.N1.1.bin
    nfsvol/821_q_image.tgz
    nfsvol/822RC2_q_image.tgz
    nfsvol/NX5010_12_node_RCF_v1.3.txt
    nfsvol/n5000-uk9-kickstart.5.2.1.N1.1.bin
    nfsvol/catalog
    23 scanned, 7.79 KiB in (5.52 KiB/s), 1.51 KiB out (1.07 KiB/s), 1s.
    [root@scspr1202780001 vol_acl4]# ./xcp  sync -id 7msnap1  -snap 10.236.66.199:/vol/nfsvol/.snapshot/snap10
    (show scan and sync)
  20. 소스 7-Mode NFSv3 스냅샷(기본)을 대상 ONTAP 시스템의 NFSv3 내보내기로 복사합니다.

    [root@localhost /]# /xcp copy 10.61.82.215:/vol/nfsvol/.snapshot/snap1
    10.61.73.115:/dest_nfs
     44 scanned, 39 copied, 264 MiB in (51.9 MiB/s), 262 MiB out (51.5 MiB/s), 5s
     44 scanned, 39 copied, 481 MiB in (43.3 MiB/s), 479 MiB out (43.4 MiB/s), 10s
     44 scanned, 40 copied, 748 MiB in (51.2 MiB/s), 747 MiB out (51.3 MiB/s), 16s
     44 scanned, 40 copied, 1.00 GiB in (55.9 MiB/s), 1.00 GiB out (55.9 MiB/s), 21s
     44 scanned, 40 copied, 1.21 GiB in (42.8 MiB/s), 1.21 GiB out (42.8 MiB/s), 26s
    Sending statistics...
    44 scanned, 43 copied, 1.46 GiB in (47.6 MiB/s), 1.45 GiB out (47.6 MiB/s), 31s.
    참고 이후의 동기화 작업을 위해 이 기본 스냅샷을 보관하세요.
  21. 복사가 완료된 후 소스 및 대상 NFSv3 내보내기에 동일한 데이터가 있는지 확인합니다. 실행하다 xcp verify 명령.

    [root@localhost /]# ./xcp verify 10.61.82.215:/vol/nfsvol 10.61.73.115:/dest_nfs
    44 scanned, 44 found, 28 compared, 27 same data, 2.41 GiB in (98.4 MiB/s), 6.25 MiB out (255 KiB/s), 26s
    44 scanned, 44 found, 30 compared, 29 same data, 2.88 GiB in (96.4 MiB/s), 7.46 MiB out (249 KiB/s), 31s
    44 scanned, 100% found (43 have data), 43 compared, 100% verified (data, attrs, mods), 2.90 GiB in (92.6 MiB/s), 7.53 MiB out (240 KiB/s), 32s.

    만약에 verify 소스 데이터와 대상 데이터 간의 차이점을 찾은 다음 오류를 찾습니다. no such file or directory `is reported in the summary. To fix that issue, run the `xcp sync 소스 변경 사항을 대상에 복사하는 명령입니다.

  22. 컷오버 전과 컷오버 중에 실행 verify 다시. 소스에 새 데이터나 업데이트된 데이터가 있는 경우 증분 업데이트를 수행합니다. 증분 변경 사항이 있는 경우 이러한 변경 사항에 대한 새 스냅샷 복사본을 만들고 해당 스냅샷 경로를 다음과 함께 전달합니다. -snap 동기화 작업을 위한 옵션입니다.

    실행하다 xcp sync 명령으로 -snap 옵션 및 스냅샷 경로.

     [root@localhost /]# ./xcp sync -id 3
    Index: {source: '10.61.82.215:/vol/nfsvol/.snapshot/snap1', target: '10.61.73.115:/dest_nfs1'}
    64 reviewed, 64 checked at source, 6 changes, 6 modifications, 51.7 KiB in (62.5
    KiB/s), 22.7 KiB out (27.5 KiB/s), 0s.
    xcp: sync '3': Starting search pass for 1 modified directory...
    xcp: sync '3': Found 6 indexed files in the 1 changed directory
    xcp: sync '3': Rereading the 1 modified directory to find what's new...
    xcp: sync '3': Deep scanning the 1 directory that changed...
    11 scanned, 11 copied, 12.6 KiB in (6.19 KiB/s), 9.50 KiB out (4.66 KiB/s), 2s..
    참고 이 작업에는 기본 스냅샷이 필요합니다.
  23. 이전에 중단된 복사 작업을 재개하려면 다음을 실행하세요. xcp resume 명령.

    [root@scspr1202780001 534h_dest_vol]# ./xcp resume -id 3
    XCP <version>; (c) 2020 NetApp, Inc.; Licensed to xxxxx [NetApp Inc] until Mon Dec 31 00:00:00 2029
    xcp: Index: {source: '10.61.82.215:/vol/nfsvol',/.snapshot/snap1, target: 10.237.160.55:/dest_vol}
    xcp: resume '7msnap_res1': Reviewing the incomplete index...
    xcp: diff '7msnap_res1': Found 143 completed directories and 230 in progress
    39,688 reviewed, 1.28 MiB in (1.84 MiB/s), 13.3 KiB out (19.1 KiB/s), 0s.
    xcp: resume '7msnap_res1': Starting second pass for the in-progress directories...
    xcp: resume '7msnap_res1': Resuming the in-progress directories...
    xcp: resume '7msnap_res1': Resumed command: copy {-newid: u'7msnap_res1'}
    xcp: resume '7msnap_res1': Current options: {-id: '7msnap_res1'}
    xcp: resume '7msnap_res1': Merged options: {-id: '7msnap_res1', -newid: u'7msnap_res1'}
    xcp: resume '7msnap_res1': Values marked with a * include operations before resume
     68,848 scanned*, 54,651 copied*, 39,688 indexed*, 35.6 MiB in (7.04 MiB/s), 28.1 MiB out (5.57 MiB/s), 5s
  24. NFSv3 클라이언트 호스트는 7-Mode 스토리지에서 프로비저닝된 소스 NFSv3 내보내기를 마운트 해제하고 ONTAP 에서 대상 NFSv3 내보내기를 마운트해야 합니다. 이 전환에는 중단이 필요합니다.

NetApp 7-Mode에서 NetApp 스토리지 시스템으로 ACLv4 마이그레이션

이 섹션에서는 소스 NFSv4 내보내기를 ONTAP 시스템으로 전환하는 단계별 절차를 다룹니다.

참고 NetApp 소스 NFSv4 볼륨이 클라이언트 시스템으로 내보내지고 마운트되었으며 XCP가 이미 Linux 시스템에 설치되어 있다고 가정합니다. 소스는 ACL을 지원하는 NetApp 7-Mode 시스템이어야 합니다. ACL 마이그레이션은 NetApp NetApp 만 지원됩니다. 이름에 특수 문자가 포함된 파일을 복사하려면 소스와 대상이 UTF-8 인코딩 언어를 지원하는지 확인하세요.

소스 NFSv4 내보내기를 ONTAP 으로 마이그레이션하기 위한 전제 조건

소스 NFSv4 내보내기를 ONTAP 으로 마이그레이션하기 전에 다음 필수 조건을 충족해야 합니다.

  • 대상 시스템에는 NFSv4가 구성되어 있어야 합니다.

  • NFSv4 소스와 대상은 XCP 호스트에 마운트되어야 합니다. 소스 및 대상 스토리지를 일치시키려면 NFS v4.0을 선택하고 소스 및 대상 시스템에서 ACL이 활성화되어 있는지 확인합니다.

  • XCP에서는 ACL 처리를 위해 소스/대상 경로가 XCP 호스트에 마운트되어야 합니다. 다음 예에서는 vol1(10.63.5.56:/vol1) 에 장착됩니다 /mnt/vol1 길:

 [root@localhost ~]# df -h
Filesystem                                                   Size  Used Avail Use% Mounted on
10.63.5.56:/vol1                                             973M  4.2M  969M   1% /mnt/vol1
[root@localhost ~]# ./xcp scan -l -acl4 10.63.5.56:/vol1/
XCP <version>; (c) 2020 NetApp, Inc.; Licensed to XXX [NetApp Inc] until Sun Mar 31 00:00:00 2029
drwxr-xr-x --- root root 4KiB 4KiB 23h42m vol1
rw-r--r-- --- root root    4    0 23h42m vol1/DIR1/FILE
drwxr-xr-x --- root root 4KiB 4KiB 23h42m vol1/DIR1/DIR11
drwxr-xr-x --- root root 4KiB 4KiB 23h42m vol1/DIR1
rw-r--r-- --- root root    4    0 23h42m vol1/DIR1/DIR11/FILE
drwxr-xr-x --- root root 4KiB 4KiB 23h42m vol1/DIR1/DIR11/DIR2
rw-r--r-- --- root root    4    0 23h42m vol1/DIR1/DIR11/DIR2/FILE
drwxr-xr-x --- root root 4KiB 4KiB 17m43s vol1/DIR1/DIR11/DIR2/DIR22
8 scanned, 8 getacls, 1 v3perm, 7 acls, 3.80 KiB in (3.86 KiB/s), 1.21 KiB out (1.23 KiB/s), 0s.

하위 디렉토리 옵션

하위 디렉토리를 다루는 두 가지 옵션은 다음과 같습니다.

  • XCP가 하위 디렉토리에서 작동하려면 (/vol1/DIR1/DIR11 ), 전체 경로를 마운트합니다(10.63.5.56:/vol1/DIR1/DIR11 ) XCP 호스트에서.

    전체 경로가 마운트되지 않으면 XCP는 다음 오류를 보고합니다.

[root@localhost ~]# ./xcp scan -l -acl4 10.63.5.56:/vol1/DIR1/DIR11
XCP <version>; (c) 2020 NetApp, Inc.; Licensed to XXX [NetApp Inc] until Sun Mar 31 00:00:00 2029
xcp: ERROR: For xcp to process ACLs, please mount 10.63.5.56:/vol1/DIR1/DIR11 using the OS nfs4 client.
  • 하위 디렉토리 구문을 사용하세요(mount: subdirectory/qtree/.snapshot ), 아래 예에서 보여지는 것과 같습니다.

[root@localhost ~]# ./xcp scan -l -acl4 10.63.5.56:/vol1:/DIR1/DIR11
XCP <version>; (c) 2020 NetApp, Inc.; Licensed to XXX [NetApp Inc] until Sun Mar 31 00:00:00 2029
drwxr-xr-x --- root root 4KiB 4KiB 23h51m DIR11
rw-r--r-- --- root root    4    0 23h51m DIR11/DIR2/FILE
drwxr-xr-x --- root root 4KiB 4KiB  26m9s DIR11/DIR2/DIR22
rw-r--r-- --- root root    4    0 23h51m DIR11/FILE
drwxr-xr-x --- root root 4KiB 4KiB 23h51m DIR11/DIR2
5 scanned, 5 getacls, 5 acls, 2.04 KiB in (3.22 KiB/s), 540 out (850/s), 0s.

NetApp 7-Mode에서 NetApp 스토리지 시스템으로 ACLv4를 마이그레이션하려면 다음 단계를 완료하세요.

  1. 대상 ONTAP 시스템이 정상인지 확인합니다.

    CLUSTER::> cluster show
    Node                  Health  Eligibility
    --------------------- ------- ------------
    CLUSTER-01            true    true
    CLUSTER-02            true    true
    2 entries were displayed.
    CLUSTER::> node show
    Node      Health Eligibility Uptime        Model       Owner    Location
    --------- ------ ----------- ------------- ----------- -------- ---------------
    CLUSTER-01
              true   true        78 days 21:01 FAS8060              RTP
    CLUSTER-02
              true   true        78 days 20:50 FAS8060              RTP
    2 entries were displayed.
    CLUSTER::> storage failover show
                                  Takeover
    Node           Partner        Possible State Description
    -------------- -------------- -------- -------------------------------------
    CLUSTER-01     CLUSTER-02     true     Connected to CLUSTER-02
    CLUSTER-02     CLUSTER-01     true     Connected to CLUSTER-01
    2 entries were displayed.
  2. 대상 시스템에 최소한 하나의 비루트 집계가 있는지 확인합니다. 집계는 정상입니다.

    CLUSTER::> storage aggregate show
    Aggregate     Size Available Used% State   #Vols  Nodes            RAID Status
    --------- -------- --------- ----- ------- ------ ---------------- ------------
    aggr0      368.4GB   17.85GB   95% online       1 CLUSTER-01       raid_dp,
                                                                       normal
    aggr0_CLUSTER_02_0
               368.4GB   17.85GB   95% online       1 CLUSTER-02       raid_dp,
                                                                       normal
    source      1.23TB    1.10TB   11% online       6 CLUSTER-01       raid_dp,
                                                                       normal
    3 entries were displayed.

    데이터 집계가 없는 경우 다음을 사용하여 새 데이터를 만듭니다. storage aggr create 명령.

  3. 대상 클러스터 시스템에 SVM을 생성합니다.

    CLUSTER::> vserver create -vserver dest -rootvolume dest_root -aggregate poc -rootvolume-security-style mixed
    [Job 647] Job succeeded:
    Vserver creation completed
    Verify the security style and language settings of the source

    SVM이 성공적으로 생성되었는지 확인하세요.

    CLUSTER::> vserver show -vserver dest
                                        Vserver: dest
                                   Vserver Type: data
                                Vserver Subtype: default
                                   Vserver UUID: 91f6d786-0063-11e5-b114-00a09853a969
                                    Root Volume: dest_root
                                      Aggregate: poc
                                     NIS Domain: -
                     Root Volume Security Style: mixed
                                    LDAP Client: -
                   Default Volume Language Code: C.UTF-8
                                Snapshot Policy: default
                                        Comment:
                                   Quota Policy: default
                    List of Aggregates Assigned: -
     Limit on Maximum Number of Volumes allowed: unlimited
                            Vserver Admin State: running
                      Vserver Operational State: running
       Vserver Operational State Stopped Reason: -
                              Allowed Protocols: nfs, cifs, fcp, iscsi, ndmp
                           Disallowed Protocols: -
                Is Vserver with Infinite Volume: false
                               QoS Policy Group: -
                                    Config Lock: false
                                   IPspace Name: Default
  4. 대상 SVM에서 FCP, iSCSI, NDMP 및 CIFS 프로토콜을 제거합니다.

    CLUSTER::> vserver remove-protocols -vserver dest -protocols fcp,iscsi,ndmp,cifs

    이 SVM에 대해 NFS가 허용되는 프로토콜인지 확인하세요.

    CLUSTER::> vserver show -vserver dest -fields allowed-protocols
    vserver allowed-protocols
    ------- -----------------
    dest    nfs
  5. 대상 SVM에 새로운 읽기-쓰기 데이터 볼륨을 만듭니다. 보안 스타일, 언어 설정 및 용량 요구 사항이 소스 볼륨과 일치하는지 확인하세요.

    CLUSTER::> vol create -vserver dest -volume dest_nfs -aggregate poc -size 150g -type RW -state online -security-style mixed
    [Job 648] Job succeeded: Successful
  6. NFS 클라이언트 요청을 처리하기 위해 데이터 LIF를 생성합니다.

    CLUSTER::> network interface create -vserver dest -lif dest_lif -address 10.61.73.115 -netmask 255.255.255.0 -role data -data-protocol nfs -home-node CLUSTER-01 -home-port e0l

    LIF가 성공적으로 생성되었는지 확인하세요.

    CLUSTER::> network interface show -vserver dest
                Logical    Status     Network            Current       Current Is
    Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
    ----------- ---------- ---------- ------------------ ------------- ------- ----
    dest
                dest_lif
                             up/up    10.61.73.113/24    CLUSTER-01    e0i     true
  7. 필요한 경우 SVM으로 정적 경로를 만듭니다.

    CLUSTER::> network route create -vserver dest -destination 0.0.0.0/0 -gateway 192.168.100.111

    경로가 성공적으로 생성되었는지 확인하세요.

    CLUSTER::> network route show -vserver source
    Vserver             Destination     Gateway         Metric
    ------------------- --------------- --------------- ------
    dest
                        0.0.0.0/0       10.61.73.1      20
  8. SVM 네임스페이스에 대상 NFS 데이터 볼륨을 마운트합니다.

    CLUSTER::> volume mount -vserver dest -volume dest_nfs -junction-path /dest_nfs -active true

    볼륨이 성공적으로 마운트되었는지 확인하세요.

    CLUSTER::> volume show -vserver dest -fields junction-path
    vserver volume   junction-path
    ------- -------- -------------
    dest    dest_nfs /dest_nfs
    dest    dest_root
                     /
    2 entries were displayed.

    또한 볼륨 마운트 옵션(접합 경로)을 지정할 수 있습니다. volume create 명령.

  9. 대상 SVM에서 NFS 서비스를 시작합니다.

    CLUSTER::> vserver nfs start -vserver dest

    서비스가 시작되어 실행 중인지 확인하세요.

    CLUSTER::> vserver nfs status
    The NFS server is running on Vserver "dest".
    CLUSTER::> nfs show
    Vserver: dest
            General Access:  true
                        v3:  enabled
                      v4.0:  enabled
                       4.1:  disabled
                       UDP:  enabled
                       TCP:  enabled
      Default Windows User:  -
     Default Windows Group:  -
  10. 기본 NFS 내보내기 정책이 대상 SVM에 적용되었는지 확인하세요.

    CLUSTER::> vserver export-policy show -vserver dest
    Vserver          Policy Name
    ---------------  -------------------
    dest             default
  11. 필요한 경우 대상 SVM에 대한 새 사용자 지정 내보내기 정책을 만듭니다.

    CLUSTER::> vserver export-policy create -vserver dest -policyname xcpexportpolicy

    새로운 사용자 지정 내보내기 정책이 성공적으로 생성되었는지 확인하세요.

    CLUSTER::> vserver export-policy show -vserver dest
    Vserver          Policy Name
    ---------------  -------------------
    dest             default
    dest             xcpexportpolicy
    2 entries were displayed.
  12. NFS 클라이언트에 대한 액세스를 허용하도록 내보내기 정책 규칙을 수정합니다.

    CLUSTER::> export-policy rule modify -vserver dest -ruleindex 1 -policyname xcpexportpolicy -clientmatch 0.0.0.0/0 -rorule any -rwrule any -anon 0

    정책 규칙이 수정되었는지 확인하세요.

    CLUSTER::> export-policy rule show -instance
                                        Vserver: dest
                                    Policy Name: xcpexportpolicy
                                     Rule Index: 1
                                Access Protocol: nfs3
    Client Match Hostname, IP Address, Netgroup, or Domain: 0.0.0.0/0
                                 RO Access Rule: none
                                 RW Access Rule: none
    User ID To Which Anonymous Users Are Mapped: 65534
                       Superuser Security Types: none
                   Honor SetUID Bits in SETATTR: true
                      Allow Creation of Devices: true
  13. 클라이언트가 볼륨에 액세스할 수 있는지 확인하세요.

    CLUSTER::> export-policy check-access -vserver dest -volume dest_nfs -client-ip 10.61.82.215 -authentication-method none -protocol nfs3 -access-type read-write
                                             Policy    Policy       Rule
    Path                          Policy     Owner     Owner Type  Index Access
    ----------------------------- ---------- --------- ---------- ------ ----------
    /                             xcpexportpolicy
                                             dest_root volume          1 read
    /dest_nfs                     xcpexportpolicy
                                             dest_nfs  volume          1 read-write
    2 entries were displayed.
  14. Linux NFS 서버에 연결합니다. NFS로 내보낸 볼륨에 대한 마운트 지점을 만듭니다.

    [root@localhost /]# cd /mnt
    [root@localhost mnt]# mkdir dest
  15. 이 마운트 지점에 대상 NFSv4 내보낸 볼륨을 마운트합니다.

    참고 NFSv4 볼륨은 내보내야 하지만 반드시 NFS 서버에 의해 마운트될 필요는 없습니다. 이러한 볼륨을 마운트할 수 있는 경우 XCP Linux 호스트 클라이언트가 해당 볼륨을 마운트합니다.
    [root@localhost mnt]# mount -t nfs4 10.63.5.56:/vol1 /mnt/vol1

    마운트 지점이 성공적으로 생성되었는지 확인하세요.

    [root@localhost mnt]# mount | grep nfs
    10.63.5.56:/vol1 on /mnt/vol1 type nfs4 (rw,relatime,vers=4.0,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,
    retrans=2,sec=sys,clientaddr=10.234.152.84,local_lock=none,addr=10.63.5.56)
  16. NFS로 내보낸 마운트 지점에 테스트 파일을 만들어 읽기-쓰기 액세스를 활성화합니다.

    [root@localhost dest]# touch test.txt

    파일이 생성되었는지 확인하세요.

    [root@localhost dest]# ls -l
    total 0
    -rw-r--r-- 1 root bin 0 Jun  2 03:16 test.txt
    참고 읽기-쓰기 테스트가 완료되면 대상 NFS 마운트 지점에서 파일을 삭제합니다.
  17. XCP가 설치된 Linux 클라이언트 시스템에 연결합니다. XCP 설치 경로를 찾습니다.

    [root@localhost ~]# cd /linux/
    [root@localhost linux]#
  18. 다음을 실행하여 소스 NFSv4 내보내기를 쿼리합니다. xcp show XCP Linux 클라이언트 호스트 시스템의 명령입니다.

    root@localhost]# ./xcp show 10.63.5.56
    XCP <version>; (c) 2020 NetApp, Inc.; Licensed to xxx [NetApp Inc] until Mon Dec 31 00:00:00 2029
    getting pmap dump from 10.63.5.56 port 111...
    getting export list from 10.63.5.56...
    sending 6 mounts and 24 nfs requests to 10.63.5.56...
    == RPC Services ==
    '10.63.5.56': UDP rpc services: MNT v1/2/3, NFS v3, NLM v4, PMAP v2/3/4, STATUS v1
    '10.63.5.56': TCP rpc services: MNT v1/2/3, NFS v3/4, NLM v4, PMAP v2/3/4, STATUS v1
    == NFS Exports ==
     Mounts  Errors  Server
          6       0  10.63.5.56
         Space    Files      Space    Files
          Free     Free       Used     Used Export
      94.7 MiB   19,883    324 KiB      107 10.63.5.56:/
       971 MiB   31,023   2.19 MiB       99 10.63.5.56:/vol2
       970 MiB   31,024   2.83 MiB       98 10.63.5.56:/vol1
      9.33 GiB  310,697    172 MiB      590 10.63.5.56:/vol_005
      43.3 GiB    1.10M   4.17 GiB    1.00M 10.63.5.56:/vol3
      36.4 GiB    1.10M   11.1 GiB    1.00M 10.63.5.56:/vol4
    == Attributes of NFS Exports ==
    drwxr-xr-x --- root root 4KiB 4KiB 6d2h 10.63.5.56:/
    drwxr-xr-x --- root root 4KiB 4KiB 3d2h 10.63.5.56:/vol2
    drwxr-xr-x --- root root 4KiB 4KiB 3d2h 10.63.5.56:/vol1
    drwxr-xr-x --- root root 4KiB 4KiB 9d2h 10.63.5.56:/vol_005
    drwxr-xr-x --- root root 4KiB 4KiB 9d4h 10.63.5.56:/vol3
    drwxr-xr-x --- root root 4KiB 4KiB 9d4h 10.63.5.56:/vol4
    6.09 KiB in (9.19 KiB/s), 12.2 KiB out (18.3 KiB/s), 0s.
  19. 소스 NFSv4에서 내보낸 경로를 스캔하고 해당 파일 구조의 통계를 인쇄합니다.

    NetApp 소스 NFSv4 내보내기를 읽기 전용 모드로 설정하는 것을 권장합니다. xcp scan , copy , 그리고 sync 운영.

    [root@localhost]# ./xcp scan -acl4 10.63.5.56:/vol1
    XCP <version>; (c) 2020 NetApp, Inc.; Licensed to xxx [NetApp Inc] until Mon Dec 31 00:00:00 2029
    vol1
    vol1/test/f1
    vol1/test
    3 scanned, 3 getacls, 3 v3perms, 1.59 KiB in (1.72 KiB/s), 696 out (753/s), 0s.
  20. 소스 NFSv4 내보내기를 대상 ONTAP 시스템의 NFSv4 내보내기로 복사합니다.

    [root@localhost]# ./xcp copy -acl4 -newid id1 10.63.5.56:/vol1 10.63.5.56:/vol2
    XCP <version>; (c) 2020 NetApp, Inc.; Licensed to xxx [NetApp Inc] until Mon Dec 31 00:00:00 2029
    3 scanned, 2 copied, 3 indexed, 3 getacls, 3 v3perms, 1 setacl, 14.7 KiB in (11.7 KiB/s), 61 KiB out (48.4 KiB/s), 1s..
  21. 후에 copy 완료되면 소스 및 대상 NFSv4 내보내기에 동일한 데이터가 있는지 확인하세요. 실행하다 xcp verify 명령.

    [root@localhost]# ./xcp verify -acl4 -noid 10.63.5.56:/vol1 10.63.5.56:/vol2
    XCP <version>; (c) 2020 NetApp, Inc.; Licensed to xxx [NetApp Inc] until Mon Dec 31 00:00:00 2029
    3 scanned, 100% found (0 have data), 100% verified (data, attrs, mods, acls), 6 getacls, 6 v3perms, 2.90 KiB in (4.16 KiB/s), 2.94 KiB out (4.22 KiB/s), 0s.

    만약에 verify 소스 데이터와 대상 데이터 간의 차이점을 찾은 다음 오류를 찾습니다. no such file or directory 요약에 보고되어 있습니다. 해당 문제를 해결하려면 다음을 실행하세요. xcp sync 소스 변경 사항을 대상에 복사하는 명령입니다.

  22. 컷오버 전과 컷오버 중에 실행 verify 다시. 소스에 새 데이터나 업데이트된 데이터가 있는 경우 증분 업데이트를 수행합니다. 실행하다 xcp sync 명령.

    [root@ root@localhost]# ./xcp sync -id id1
    XCP <version>; (c) 2020 NetApp, Inc.; Licensed to xxx [NetApp Inc] until Mon Dec 31 00:00:00 2029
    xcp: Index: {source: 10.63.5.56:/vol1, target: 10.63.5.56:/vol2}
    3 reviewed, 3 checked at source, no changes, 3 reindexed, 25.6 KiB in (32.3 KiB/s), 23.3 KiB out (29.5 KiB/s), 0s.
    참고 이 작업에는 이전 복사본 인덱스 이름 또는 번호가 필요합니다.
  23. 이전에 중단된 작업을 다시 시작하려면 copy 작업을 실행하세요 xcp resume 명령.

    [root@localhost]# ./xcp resume -id id1
    XCP <version>; (c) 2020 NetApp, Inc.; Licensed to xxx [NetApp Inc] until Mon Dec 31 00:00:00 2029
    xcp: Index: {source: 10.63.5.56:/vol3, target: 10.63.5.56:/vol4}
    xcp: resume 'id1': Reviewing the incomplete index...
    xcp: diff 'id1': Found 0 completed directories and 8 in progress
    39,899 reviewed, 1.64 MiB in (1.03 MiB/s), 14.6 KiB out (9.23 KiB/s), 1s.
    xcp: resume 'id1': Starting second pass for the in-progress directories...
    xcp: resume 'id1': Resuming the in-progress directories...
    xcp: resume 'id1': Resumed command: copy {-acl4: True}
    xcp: resume 'id1': Current options: {-id: 'id1'}
    xcp: resume 'id1': Merged options: {-acl4: True, -id: 'id1'}
    xcp: resume 'id1': Values marked with a * include operations before resume
     86,404 scanned, 39,912 copied, 39,899 indexed, 13.0 MiB in (2.60 MiB/s), 78.4 KiB out (15.6 KiB/s), 5s 86,404 scanned, 39,912 copied, 39,899 indexed, 13.0 MiB in (0/s), 78.4 KiB out (0/s), 10s
    1.00M scanned, 100% found (1M have data), 1M compared, 100% verified (data, attrs, mods, acls), 2.00M getacls, 202 v3perms, 1.00M same acls, 2.56 GiB in (2.76 MiB/s), 485 MiB out (524 KiB/s), 15m48s.

    후에 resume 파일 복사를 완료하고 실행합니다. verify 다시 말해서 소스와 대상 저장소에 동일한 데이터가 있게 됩니다.

CIFS 데이터를 위해 7-Mode SMB 스토리지를 ONTAP 으로 전환

이 섹션에서는 소스 7-모드 SMB 공유를 ONTAP 시스템으로 전환하는 단계별 절차를 다룹니다.

참고 NetApp 7-Mode와 ONTAP 시스템이 SMB 라이센스를 받았다고 가정합니다. 대상 SVM이 생성되고, 소스 및 대상 SMB 공유가 내보내지고, XCP가 설치되고 라이선스가 부여됩니다.
  1. SMB 공유에서 파일과 디렉토리를 스캔합니다.

    C:\xcp>xcp scan -stats \\10.61.77.189\performance_SMB_home_dirs
    XCP SMB 1.6; (c) 2020 NetApp, Inc.; Licensed to xxxx xxxx[NetApp Inc] until Mon Dec 31 00:00:00 2029
    == Maximum Values ==
    Size Depth Namelen Dirsize
    15.6MiB 2 8 200
    == Average Values ==
    Size Depth Namelen Dirsize
    540KiB 2 7 81
    == Top File Extensions ==
    .txt .tmp
    5601 2200
    == Number of files ==
    empty <8KiB 8-64KiB 64KiB-1MiB 1-10MiB 10-100MiB >100MiB
    46 6301 700 302 200 252
    == Space used ==
    empty <8KiB 8-64KiB 64KiB-1MiB 1-10MiB 10-100MiB >100MiB
    0 6.80MiB 8.04MiB 120MiB 251MiB 3.64GiB 0
    == Directory entries ==
    empty 1-10 10-100 100-1K 1K-10K >10k
    18 1 77 1
    == Depth ==
    0-5 6-10 11-15 16-20 21-100 >100
    7898
    == Modified ==
    >1 year >1 month 1-31 days 1-24 hrs <1 hour <15 mins future
    2167 56 322 5353
    == Created ==
    >1 year >1 month 1-31 days 1-24 hrs <1 hour <15 mins future
    2171 54 373 5300
    Total count: 7898
    Directories: 97
    Regular files: 7801
    Symbolic links:
    Junctions:
    Special files:
    Total space for regular files: 4.02GiB
    Total space for directories: 0
    Total space used: 4.02GiB
    7,898 scanned, 0 errors, 0s
  2. 소스에서 대상 SMB 공유로 파일을 복사합니다(ACL 포함 여부와 관계없이). 다음 예에서는 ACL을 사용한 복사를 보여줍니다.

    C:\xcp>xcp copy -acl -fallback-user "DOMAIN\gabi" -fallback-group "DOMAIN\Group" \\10.61.77.189\performance_SMB_home_dirs \\10.61.77.56\performance_SMB_home_dirs
    XCP SMB 1.6; (c) 2020 NetApp, Inc.; Licensed to xxxx xxxx[NetApp Inc] until Mon Dec 31 00:00:00 2029
    7,898 scanned, 0 errors, 0 skipped, 184 copied, 96.1MiB (19.2MiB/s), 5s
    7,898 scanned, 0 errors, 0 skipped, 333 copied, 519MiB (84.7MiB/s), 10s
    7,898 scanned, 0 errors, 0 skipped, 366 copied, 969MiB (89.9MiB/s), 15s
    7,898 scanned, 0 errors, 0 skipped, 422 copied, 1.43GiB (99.8MiB/s), 20s
    7,898 scanned, 0 errors, 0 skipped, 1,100 copied, 1.69GiB (52.9MiB/s), 25s
    7,898 scanned, 0 errors, 0 skipped, 1,834 copied, 1.94GiB (50.4MiB/s), 30s
    7,898 scanned, 0 errors, 0 skipped, 1,906 copied, 2.43GiB (100MiB/s), 35s
    7,898 scanned, 0 errors, 0 skipped, 2,937 copied, 2.61GiB (36.6MiB/s), 40s
    7,898 scanned, 0 errors, 0 skipped, 2,969 copied, 3.09GiB (100.0MiB/s), 45s
    7,898 scanned, 0 errors, 0 skipped, 3,001 copied, 3.58GiB (100.0MiB/s), 50s
    7,898 scanned, 0 errors, 0 skipped, 3,298 copied, 4.01GiB (88.0MiB/s), 55s
    7,898 scanned, 0 errors, 0 skipped, 5,614 copied, 4.01GiB (679KiB/s), 1m0s
    7,898 scanned, 0 errors, 0 skipped, 7,879 copied, 4.02GiB (445KiB/s), 1m5s
    7,898 scanned, 0 errors, 0 skipped, 7,897 copied, 4.02GiB (63.2MiB/s), 1m5s
    참고 데이터 집계가 없는 경우 저장소를 사용하여 새 데이터를 생성합니다. aggr create 명령.
  3. 소스와 대상의 파일을 동기화합니다.

    C:\xcp>xcp sync -acl -fallback-user "DOMAIN\gabi" -fallback-group "DOMAIN\Group" \\10.61.77.189\performance_SMB_home_dirs \\10.61.77.56\performance_SMB_home_dirs
    XCP SMB 1.6; (c) 2020 NetApp, Inc.; Licensed to xxxx xxxx[NetApp Inc] until Mon Dec 31 00:00:00 2029
    10,796 scanned, 4,002 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 5s
    15,796 scanned, 8,038 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 10s
    15,796 scanned, 8,505 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 15s
    15,796 scanned, 8,707 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 20s
    15,796 scanned, 8,730 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 25s
    15,796 scanned, 8,749 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 30s
    15,796 scanned, 8,765 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 35s
    15,796 scanned, 8,786 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 40s
    15,796 scanned, 8,956 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 45s
    8 XCP v1.6 User Guide © 2020 NetApp, Inc. All rights reserved.
    Step Description
    15,796 scanned, 9,320 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 50s
    15,796 scanned, 9,339 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 55s
    15,796 scanned, 9,363 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m0s
    15,796 scanned, 10,019 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m5s
    15,796 scanned, 10,042 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m10s
    15,796 scanned, 10,059 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m15s
    15,796 scanned, 10,075 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m20s
    15,796 scanned, 10,091 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m25s
    15,796 scanned, 10,108 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m30s
    15,796 scanned, 10,929 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m35s
    15,796 scanned, 12,443 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m40s
    15,796 scanned, 13,963 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m45s
    15,796 scanned, 15,488 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m50s
    15,796 scanned, 15,796 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 1m51s
  4. 파일이 올바르게 복사되었는지 확인하세요.

    C:\xcp> xcp verify \\10.61.77.189\performance_SMB_home_dirs \\10.61.77.56\performance_SMB_home_dir
    XCP SMB 1.6; (c) 2020 NetApp, Inc.; Licensed to xxxx xxxx[NetApp Inc] until Mon Dec 31 00:00:00 2029
    8 compared, 8 same, 0 different, 0 missing, 5s
    24 compared, 24 same, 0 different, 0 missing, 10s
    41 compared, 41 same, 0 different, 0 missing, 15s
    63 compared, 63 same, 0 different, 0 missing, 20s
    86 compared, 86 same, 0 different, 0 missing, 25s
    423 compared, 423 same, 0 different, 0 missing, 30s
    691 compared, 691 same, 0 different, 0 missing, 35s
    1,226 compared, 1,226 same, 0 different, 0 missing, 40s
    1,524 compared, 1,524 same, 0 different, 0 missing, 45s
    1,547 compared, 1,547 same, 0 different, 0 missing, 50s
    1,564 compared, 1,564 same, 0 different, 0 missing, 55s
    2,026 compared, 2,026 same, 0 different, 0 missing, 1m0s
    2,045 compared, 2,045 same, 0 different, 0 missing, 1m5s
    2,061 compared, 2,061 same, 0 different, 0 missing, 1m10s
    2,081 compared, 2,081 same, 0 different, 0 missing, 1m15s
    2,098 compared, 2,098 same, 0 different, 0 missing, 1m20s
    2,116 compared, 2,116 same, 0 different, 0 missing, 1m25s
    3,232 compared, 3,232 same, 0 different, 0 missing, 1m30s
    4,817 compared, 4,817 same, 0 different, 0 missing, 1m35s
    6,267 compared, 6,267 same, 0 different, 0 missing, 1m40s
    7,844 compared, 7,844 same, 0 different, 0 missing, 1m45s
    7,898 compared, 7,898 same, 0 different, 0 missing, 1m45s,cifs