====== SVM-DR ====== * FAS2650 ist das alte System. In diesem Beispiel der Source Cluster * Source vserver: filesshare_cifs * FAS2750 ist das neue System. In diesem Beispiel der Destination Cluster * Destination vserver: filesshare_cifs_DR_DR ===== Check ob es schon Intercluster Lifs gibt die passen würden (Destination + Source) ===== network interface show -role intercluster \\ ===== Wenn nicht legen wir welche an (Destination + Source) ===== network interface create -vserver FAS2750 -lif lif_intercluster_01 -service-policy default-intercluster -address 192.168.1.28 -netmask 255.255.255.0 -home-node FAS2750-n1 -home-port a0a-6 -status-admin up -failover-policy local-only -firewall-policy intercluster -auto-revert true -failover-group br_vlan_6 -is-dns-update-enabled false network interface create -vserver FAS2750 -lif lif_intercluster_02 -service-policy default-intercluster -address 192.168.1.29 -netmask 255.255.255.0 -home-node FAS2750-n2 -home-port a0a-6 -status-admin up -failover-policy local-only -firewall-policy intercluster -auto-revert true -failover-group br_vlan_6 -is-dns-update-enabled false \\ ===== Anlegen des Destination vservers für SVM-DR (Destination) ===== vserver create -vserver -subtype dp-destination -data-services data-iscsi,data-nfs,data-cifs,data-flexcache,data-nvme-tcp -foreground true Beispiel: vserver create -vserver filesshare_cifs_DR -subtype dp-destination -data-services data-iscsi,data-nfs,data-cifs,data-flexcache,data-nvme-tcp -foreground true \\ ===== Angeben auf welchen Aggregaten Vserver seine Daten ablegen darf ===== vserver modify -vserver -aggr-list Beispiel: vserver modify -vserver filesshare_cifs_DR -aggr-list aggr0_FAS2750_01 \\ ===== Passphrase erstellen für das cluster peering (Destination) ===== cluster peer create -generate-passphrase true -address-family ipv4 -offer-expiration 1d Beispiel: cluster peer create -generate-passphrase true -address-family ipv4 -offer-expiration 1d Notice: Passphrase: JhPXqiKlS8SbKmRfro43z4mF Expiration Time: 7/31/2024 08:12:56 +02:00 Initial Allowed Vserver Peers: - Intercluster LIF IP: 192.168.1.28 Peer Cluster Name: FAS2750 (temporary generated) Warning: make a note of the passphrase - it cannot be displayed again. \\ ===== Cluster Peering erstellen (Source) ===== cluster peer create -address-family ipv4 -peer-addrs Beispiel: FAS2650::> cluster peer create -address-family ipv4 -peer-addrs 192.168.1.28,192.168.1.29 Notice: Use a generated passphrase or choose a passphrase of 8 or more characters. To ensure the authenticity of the peering relationship, use a phrase or sequence of characters that would be hard to guess. Enter the passphrase: Confirm the passphrase: Notice: Clusters "FAS2650" and "FAS2750" are peered. \\ ===== Anzeigen des Peering's (Destination & Source) ===== cluster peer show -instance Beispiel: FAS2650::> cluster peer show -instance Peer Cluster Name: FAS2750 Remote Intercluster Addresses: 192.168.1.28, 192.168.1.29 Availability of the Remote Cluster: Available Remote Cluster Name: FAS2750 Active IP Addresses: 192.168.1.28, 192.168.1.29 Cluster Serial Number: 1-80-000011 Remote Cluster Nodes: FAS2750-n1, FAS2750-n2 Remote Cluster Health: true Unreachable Local Nodes: - Address Family of Relationship: ipv4 Authentication Status Administrative: use-authentication Authentication Status Operational: ok Last Update Time: 7/30/2024 08:22:00 IPspace for the Relationship: Default Proposed Setting for Encryption of Inter-Cluster Communication: - Encryption Protocol For Inter-Cluster Communication: tls-psk Algorithm By Which the PSK Was Derived: jpake \\ ===== Anzeigen Health Status vom Cluster Peer (Destination & Source) ===== cluster peer health show Beispiel: FAS2750::> cluster peer health show Node Cluster-Name Node-Name Ping-Status RDB-Health Cluster-Health Availability ---------- --------------------------- --------- --------------- ------------ FAS2750-n1 FAS2650 FAS2650-01 Data: interface_reachable ICMP: - true true true FAS2650-02 Data: interface_reachable ICMP: - true true true FAS2750-n2 FAS2650 FAS2650-01 Data: interface_reachable ICMP: - true true true FAS2650-02 Data: interface_reachable ICMP: - true true true 4 entries were displayed. \\ ===== Vserver peering Berechtigen (Source) ===== vserver peer permission create -peer-cluster -vserver -applications snapmirror Beispiel: vserver peer permission create -peer-cluster FAS2750 -vserver filesshare_cifs -applications snapmirror \\ ===== Vserver peering (Destination) ===== vserver peer create -vserver -peer-vserver -applications snapmirror -peer-cluster Beispiel: vserver peer create -vserver filesshare_cifs_DR -peer-vserver filesshare_cifs -applications snapmirror -peer-cluster FAS2650 \\ ===== Anzeigen des vserver Peerings (Destination & Source) ===== vserver peer show Peer Peer Peering Remote Vserver Vserver State Peer Cluster Applications Vserver ----------- ----------- ------------ ----------------- -------------- --------- filesshare_cifs_DR filesshare_cifs peered FAS2650 snapmirror filesshare_cifs \\ ===== Snapmirror zwischen den beiden vservern anlegen ===== Erstellen des Snapmirror's. Die Daten werden jede Stunde automatisch gesynct inkl. aller Snapshots der Source Seite. snapmirror create -source-path : -destination-path : -type XDP -schedule -throttle unlimited -policy -identity-preserve true Beispiel: snapmirror create -source-path filesshare_cifs: -destination-path filesshare_cifs_DR: -type XDP -schedule hourly -throttle unlimited -policy MirrorAllSnapshots -identity-preserve true \\ ===== Snapmirror anzeigen ===== snapmirror show Progress Source Destination Mirror Relationship Total Last Path Type Path State Status Progress Healthy Updated ----------- ---- ------------ ------- -------------- --------- ------- -------- filesshare_cifs: XDP filesshare_cifs_DR: Uninitialized Idle - true - \\ ===== Stoppen des vservers (Destination) ===== vserver stop \\ ===== Snapmirror Initialize / Starten (Destination) ===== snapmirror initialize -source-path filesshare_cifs: -destination-path filesshare_cifs_DR: Beispiel: snapmirror initialize -source-path filesshare_cifs: -destination-path filesshare_cifs_DR: \\ ===== Snapmirror check (Destination) ===== snapmirror show Hier muss man jetzt warten bis der Snapmirror einmal durch ist. Dach wird in dieser Config 1x pro Stunde wieder gesynct \\ ====== Cutover - DR Site online bringen ====== Möchte man die DR Seite online bringen und jetzt ein paar Schritte durch zu führen. Diese werden ab hier beschrieben \\ ===== Vserver stoppen (Source) ===== vserver stop -vserver Beispiel: vserver stop -vserver filesshare_cifs Ab jetzt ist das Service kurz nicht erreichbar \\ ===== Letzter Sync vor dem Cutoff (Destination) ===== snapmirror update -destination-path -source-path Beispiel: snapmirror update -destination-path filesshare_cifs_DR: -source-path filesshare_cifs: \\ Snapmirror lösen Snapmirror stillegen - ab jetzt werden keine neuen Job mehr ausgeführt snapmirror quiesce -destination-path -source-path Beispiel: snapmirror quiesce -destination-path filesshare_cifs_DR: -source-path filesshare_cifs: \\ Ein abort wird nur benötigt wenn noch ein Sync Job läuft: snapmirror abort -destination-path -source-path \\ Snapmirror aufbrechen damit die Destination Seite online gehen kann snapmirror break-destination-path -source-path Beispiel: snapmirror break -destination-path filesshare_cifs_DR: -source-path filesshare_cifs: \\ Vserver starten (Destination) vserver start -vserver Beispiel: vserver start -vserver filesshare_cifs_DR \\ ====== Aufräumen ====== Solle auf der Destination Seite alles online bleiben (Migration) muss jetzt noch aufgeräumt werden. ===== Snapmirror auflösen (Destination) ===== snapmirror show snapmirror delete -destination-path Beispiel: snapmirror delete -destination-path filesshare_cifs_DR: \\ ===== Snapmirror auflösen (Source) ===== snapmirror list-destinations snapmirror list-destinations -expand snapmirror release -destination-path Beispiel: snapmirror release -destination-path filesshare_cifs_DR: \\ ===== Vserver peering auflösung (Destination) ===== vserver peer show vserver peer delete -vserver -peer-vserver Beispiel: vserver peer delete -vserver filesshare_cifs_DR: -peer-vserver filesshare_cifs \\ ===== Cluster Peer ===== Die Cluster Peer Beziehung kann man bestehen lassen falls noch einmal etwas gebraucht wird. \\ Falls man diese jedoch auch auflösen möchte funktioniert dies so.\\ \\ Das auflösen muss man auf beiden Seiten machen. cluster peer show cluster peer delete cluster peer delete asdf asdf asdf