顯示具有 NetApp 標籤的文章。 顯示所有文章
顯示具有 NetApp 標籤的文章。 顯示所有文章

How to use ndmpcopy to copy data between the same or different modes of Data ONTAP


客戶的 NetApp Volume Size 其實不大,約2TB左右,但是小檔非常多,應有上千萬個小檔。
這次要從舊的 8.1 7-mode 轉移到新的 9.6 ONTAP cluster
8.1 7-mode /vol/qtree => ndmpcopy => 9.6 ONTAP cluster /vol/qtree
由於版本差異過大無法使用snapmirror
第一次來試試看 Cluster Mode 下的 ndmpcopy

官方文件說明
How to run ndmpcopy in Clustered Data ONTAP

有兩個模式: vserver scope mode / node scope mode
顧名思義,一個走 vserver lif, 一個走 node mgmt lif
果然其中還是有陷阱,因為在 cluster shell 下無法執行 ndmpcopy 指令,需要透過 node run 去執行 ndmpcopy,所以就算是用 vserver scope mode,也還是會走到 node mgmt lif
而當 node mgmt lif 跟 vserver lif 不同網段時,就會發生connection failed 了,如下列這個 BugID 所述

BugID:467842 Local NDMPCopy fails when connection is attempted between routing groups

n2750::> node run -node n2750-01 ndmpcopy -sa ndmp:XXXXX -da ndmpuser:XXXXXXX 172.25.1.3:/vol/nas01/images 172.25.1.13:/svm_nfs/nas02/images

Ndmpcopy: Starting copy [ 1 ] ...
Ndmpcopy: Socket bind or connect for IP 172.25.1.13 failed
Ndmpcopy: Ensure that  node management or cluster management or intercluster IP of family type inet is present on the source filer
Ndmpcopy: Issue 'ndmpd on' on the source filer to enable NDMP request then retry the connection
Ndmpcopy: Done

n2750::> net int show
n2750
            inter_lif_1  up/up    172.20.1.11/24     n2750-01      a0a-50  true
            inter_lif_2  up/up    172.20.1.13/24     n2750-02      a0a-50  true
            n2750-01     up/up    10.97.11.173/24    n2750-01      e0M     true
            n2750-02     up/up    10.97.11.174/24    n2750-02      e0M     true
            n2750-clus_mgmt
                         up/up    10.97.11.171/24    n2750-01      e0M     true
svm_nfs
            NFS-25-1     up/up    172.25.1.13/24     n2750-01      a0a-100 true
            NFS-25-2     up/up    172.25.1.14/24     n2750-02      a0a-100 true

有兩個解決方式
* 在 svm 加一個 10.97 的 lif
* 在 node mgmt 加一個 172.25 的 lif

因為 172.25 這段是走 10g, 10.97 只有 1g 網路,所以我選擇第二個方式。另外,GUI 無法 create node lif, 只能透過 cluster shell 指令
n2750::> net int create -vserver n2750 -lif 172_mgmt -role node-mgmt -address 172.25.1.136 -netmask 255.255.255.0 -home-node n2750-01 -home-port a0a-100 -status-admin up

n2750::> net int show
n2750
            172_mgmt     up/up    172.25.1.136/24    n2750-01      a0a-100 true
            inter_lif_1  up/up    172.20.1.11/24     n2750-01      a0a-50  true
            inter_lif_2  up/up    172.20.1.13/24     n2750-02      a0a-50  true
            n2750-01     up/up    10.97.11.173/24    n2750-01      e0M     true
            n2750-02     up/up    10.97.11.174/24    n2750-02      e0M     true
            n2750-clus_mgmt
                         up/up    10.97.11.171/24    n2750-01      e0M     true
svm_nfs
            NFS-25-1     up/up    172.25.1.13/24     n2750-01      a0a-100 true
            NFS-25-2     up/up    172.25.1.14/24     n2750-02      a0a-100 true


然後 ndmpcopy 就可以順利運作了

n2750::> node run -node n2750-01 ndmpcopy -sa ndmp:XXXXXXX -da ndmpuser:XXXXXXX 172.25.1.2:/vol/nas01/event 172.25.1.13:/svm_nfs/NFS1_n1/event

Ndmpcopy: Starting copy [ 13 ] ...
Ndmpcopy: 172.25.1.2: Notify: Connection established
Ndmpcopy: 172.25.1.13: Notify: Connection established
Ndmpcopy: 172.25.1.2: Connect: Authentication successful
Ndmpcopy: 172.25.1.13: Connect: Authentication successful
Ndmpcopy: 172.25.1.13: Log: Session identifier: 53249
Ndmpcopy: 172.25.1.13: Log: Session identifier for Restore : 53249
Ndmpcopy: 172.25.1.2: Log: DUMP: creating "/vol/nas01/../snapshot_for_backup.1686" snapshot.
Ndmpcopy: 172.25.1.2: Log: DUMP: Using Full Quota Tree Dump
Ndmpcopy: 172.25.1.2: Log: DUMP: Date of this level 0 dump: Thu Mar 19 22:48:19 2020.
Ndmpcopy: 172.25.1.2: Log: DUMP: Date of last level 0 dump: the epoch.
Ndmpcopy: 172.25.1.2: Log: DUMP: Dumping /vol/nas01/event to NDMP connection
Ndmpcopy: 172.25.1.2: Log: DUMP: mapping (Pass I)[regular files]
Ndmpcopy: 172.25.1.2: Log: DUMP: mapping (Pass II)[directories]
Ndmpcopy: 172.25.1.2: Log: DUMP: estimated 24853097 KB.
Ndmpcopy: 172.25.1.2: Log: DUMP: dumping (Pass III) [directories]
Ndmpcopy: 172.25.1.13: Log: RESTORE: Thu Mar 19 22:51:22 2020: Begin level 0 restore
Ndmpcopy: 172.25.1.13: Log: RESTORE: Thu Mar 19 22:51:23 2020: Reading directories from the backup
Ndmpcopy: 172.25.1.2: Log: DUMP: dumping (Pass IV) [regular files]
Ndmpcopy: 172.25.1.13: Log: RESTORE: Thu Mar 19 22:51:30 2020: Creating files and directories.
Ndmpcopy: 172.25.1.13: Log: RESTORE: Thu Mar 19 22:52:15 2020: Writing data to files.
Ndmpcopy: 172.25.1.2: Log: DUMP: Thu Mar 19 22:56:11 2020 : We have written 18944314 KB.
Ndmpcopy: 172.25.1.13: Log: RESTORE: Thu Mar 19 22:56:11 2020 : We have read 18944434 KB from the backup.
Ndmpcopy: 172.25.1.2: Log: ACL_START is '25464141824'
Ndmpcopy: 172.25.1.2: Log: DUMP: dumping (Pass V) [ACLs]
Ndmpcopy: 172.25.1.2: Log: DUMP: 24871424 KB
Ndmpcopy: 172.25.1.2: Log: DUMP: DUMP IS DONE
Ndmpcopy: 172.25.1.2: Log: DUMP: Deleting "/vol/nas01/../snapshot_for_backup.1686" snapshot.
Ndmpcopy: 172.25.1.2: Log: DUMP_DATE is '5879596595'
Ndmpcopy: 172.25.1.2: Notify: dump successful
Ndmpcopy: 172.25.1.13: Log: RESTORE: RESTORE IS DONE
Ndmpcopy: 172.25.1.13: Notify: restore successful
Ndmpcopy: Transfer successful [ 0 hours, 15 minutes, 34 seconds ]
Ndmpcopy: Done


NDMP 設定參考文件
How to use NDMP-based copy utilities (such as ndmpcopy) to copy data between the same or different modes of Data ONTAP



Netbackup Replication Director, Netapp Plugin for Netbackup

NetBackup 結合 NetApp snapshot 備份

NetBackup 7.5 Replication Director configuration demo
http://www.symantec.com/connect/videos/netbackup-75-replication-director-configuration-demo

Configuring NetApp for Replication Director
http://www.symantec.com/connect/videos/configuring-netapp-replication-director

NetBackup Replication Director Unifies End-to-End Management of Snapshots and Backup
http://www.symantec.com/connect/connect-view-protected-content/2579911

NetApp Simulator Disk Type List


Type Vendor ID Product ID       Usable Size[B] Actual Size[B]  Zero  BPS   RPM
  0  NETAPP__  VD-16MB_________     16,777,216     38,273,024   No   512  10000
  1  NETAPP__  VD-35MB_________     35,913,728     57,409,536   No   512  10000
  2  NETAPP__  VD-50MB_________     52,428,800     73,924,608   No   512  10000
  3  NETAPP__  VD-100MB________    104,857,600    126,353,408   No   512  10000
  4  NETAPP__  VD-500MB________    524,288,000    545,783,808   No   512  10000
  5  NETAPP__  VD-1000MB_______  1,048,576,000  1,070,071,808   No   512  10000
  6  NETAPP__  VD-16MB-FZ______     16,777,216     38,273,024   Yes  512  15000
  7  NETAPP__  VD-35MB-FZ______     35,913,728     57,409,536   Yes  512  15000
  8  NETAPP__  VD-50MB-FZ______     52,428,800     73,924,608   Yes  512  15000
  9  NETAPP__  VD-100MB-FZ_____    104,857,600    126,353,408   Yes  512  15000
 10  NETAPP__  VD-500MB-FZ_____    524,288,000    545,783,808   Yes  512  15000
 11  NETAPP__  VD-1000MB-FZ____  1,048,576,000  1,070,071,808   Yes  512  15000
 12  NETAPP__  VD-16MB-520_____     16,777,216     38,273,024   No   520  10000
 13  NETAPP__  VD-35MB-520_____     35,913,728     57,409,536   No   520  10000
 14  NETAPP__  VD-50MB-520_____     52,428,800     73,924,608   No   520  10000
 15  NETAPP__  VD-100MB-520____    104,857,600    126,353,408   No   520  10000
 16  NETAPP__  VD-500MB-520____    524,288,000    545,783,808   No   520  10000
 17  NETAPP__  VD-1000MB-520___  1,048,576,000  1,070,071,808   No   520  10000
 18  NETAPP__  VD-16MB-FZ-520__     16,777,216     38,273,024   Yes  520  15000
 19  NETAPP__  VD-35MB-FZ-520__     35,913,728     57,409,536   Yes  520  15000
 20  NETAPP__  VD-50MB-FZ-520__     52,428,800     73,924,608   Yes  520  15000
 21  NETAPP__  VD-100MB-FZ-520_    104,857,600    126,353,408   Yes  520  15000
 22  NETAPP__  VD-500MB-FZ-520_    524,288,000    545,783,808   Yes  520  15000
 23  NETAPP__  VD-1000MB-FZ-520  1,048,576,000  1,070,071,808   Yes  520  15000
 24  NETAPP__  VD-16MB-FZ-ATA__     16,777,216     51,388,416   Yes  512   7200
 25  NETAPP__  VD-35MB-FZ-ATA__     36,700,160     73,801,728   Yes  512   7200
 26  NETAPP__  VD-50MB-FZ-ATA__     52,428,800     91,496,448   Yes  512   7200
 27  NETAPP__  VD-100MB-FZ-ATA_    104,857,600    150,478,848   Yes  512   7200
 28  NETAPP__  VD-500MB-FZ-ATA_    524,288,000    622,338,048   Yes  512   7200
 29  NETAPP__  VD-1000MB-FZ-ATA  1,048,576,000  1,212,162,048   Yes  512   7200
 30  NETAPP__  VD-2000MB-FZ-520  2,097,512,000  2,119,007,808   Yes  520  15000
 31  NETAPP__  VD-4000MB-FZ-520  4,194,304,000  4,215,799,808   Yes  520  15000
 32  NETAPP__  VD-2000MB-FZ-ATA  2,097,512,000  2,391,810,048   Yes  512   7200
 33  NETAPP__  VD-4000MB-FZ-ATA  4,194,304,000  4,751,106,048   Yes  512   7200
 34  NETAPP__  VD-100MB-SS-512_    104,857,600    126,353,408   Yes  512  15000
 35  NETAPP__  VD-500MB-SS-520_    524,288,000    545,783,808   Yes  520  15000
 36  NETAPP__  VD-9000MB-FZ-520  9,437,184,000  9,458,679,808   Yes  520  15000
 37  NETAPP__  VD-9000MB-FZ-ATA  9,437,184,000 10,649,346,048   Yes  512   7200


add 5 disks type 34 at controller 1


fas01% sudo vsim_makedisks -n 5 -t 34 -a 1
Creating ,disks/v1.33:NETAPP__:VD-100MB-SS-512_:97135314:261248
Creating ,disks/v1.34:NETAPP__:VD-100MB-SS-512_:97135315:261248
Creating ,disks/v1.35:NETAPP__:VD-100MB-SS-512_:97135316:261248
Creating ,disks/v1.36:NETAPP__:VD-100MB-SS-512_:97135317:261248
Creating ,disks/v1.37:NETAPP__:VD-100MB-SS-512_:97135318:261248
Shelf file Shelf:DiskShelf14 updated

VMware SRM with NetApp SRA



How to manually send AutoSupport files to NetApp


How to manually send AutoSupport files to NetApp
https://kb.netapp.com/support/index?page=content&id=1010077

Generate an autosupport manually:
filter>  options autosupport.doit now


但是很多客戶是在內部網路無法直接對外發信
若是可以直接抓下來是最好了

開啟 ftpd
filter>  options ftpd.enable on

ftp to NetApp controller
cd /etc/log/autosupport

抓完檔案記得關閉 ftpd
filter>  options ftpd.enable off