1 00:00:01,240 --> 00:00:03,200 Lastly, we have Storage Replica. 2 00:00:03,200 --> 00:00:06,520 And Storage Replica is a disaster recovery solution, 3 00:00:06,520 --> 00:00:09,260 again, baked directly into Windows Server, 4 00:00:09,260 --> 00:00:13,700 where you can replicate entire volumes between servers or clusters. 5 00:00:13,700 --> 00:00:18,630 And you can configure that replication to be either synchronous or asynchronous. 6 00:00:18,630 --> 00:00:22,590 Synchronous means that every write operation on the primary won't be 7 00:00:22,590 --> 00:00:25,230 committed until it's committed on the secondary. 8 00:00:25,230 --> 00:00:28,620 This method assumes that you have a low latency network 9 00:00:28,620 --> 00:00:30,250 to be able to support that; otherwise, 10 00:00:30,250 --> 00:00:33,440 you're creating a blocking situation on the primary 11 00:00:33,440 --> 00:00:35,470 server or the primary cluster. 12 00:00:35,470 --> 00:00:38,480 If you want to risk potential data loss, 13 00:00:38,480 --> 00:00:40,640 you can do asynchronous Storage Replica, 14 00:00:40,640 --> 00:00:42,980 and this is data mirroring across, again, 15 00:00:42,980 --> 00:00:45,820 the use case is across a higher latency link. 16 00:00:45,820 --> 00:00:50,120 And the main business cases for using Storage Replica are, 17 00:00:50,120 --> 00:00:52,320 for instance, in failover clustering, 18 00:00:52,320 --> 00:00:54,830 you can do a stretched or replicated cluster, 19 00:00:54,830 --> 00:00:58,470 or you can just create redundancy for server storage. 20 00:00:58,470 --> 00:01:02,380 Microsoft says in their docs that the server‑to‑server Storage 21 00:01:02,380 --> 00:01:04,850 Replica idea could be used as a replacement, 22 00:01:04,850 --> 00:01:07,840 where you might have in the past used the distributed 23 00:01:07,840 --> 00:01:10,260 file system or DFSR replication. 24 00:01:10,260 --> 00:01:16,250 Storage Replica represents a way to do that, perhaps in a more streamlined way. 25 00:01:16,250 --> 00:01:19,750 I would say that Storage Replica in Windows Server is roughly 26 00:01:19,750 --> 00:01:24,190 analogous to the high availability ideas we have in Azure VMs with 27 00:01:24,190 --> 00:01:26,960 availability sets and availability zones. 28 00:01:26,960 --> 00:01:30,170 But note that all of this stuff that we're learning about in 29 00:01:30,170 --> 00:01:32,730 this lesson deals with Windows Server, 30 00:01:32,730 --> 00:01:35,420 regardless of whether we're in Azure or on‑prem. 31 00:01:35,420 --> 00:01:38,030 I mean, in Azure, you can mount disks. 32 00:01:38,030 --> 00:01:40,090 I've shown you how to do that previously. 33 00:01:40,090 --> 00:01:44,230 You can mount VHD files to your Azure VM, 34 00:01:44,230 --> 00:01:49,070 and then you sign into your VM, and you can initialize and format, 35 00:01:49,070 --> 00:01:52,480 create volumes with or without storage spaces. 36 00:01:52,480 --> 00:01:53,910 So the stuff we're learning here, 37 00:01:53,910 --> 00:01:56,920 although it seems like it's all Windows server on‑prem, 38 00:01:56,920 --> 00:01:59,280 you can implement this stuff in the cloud too. 39 00:01:59,280 --> 00:01:59,700 Of course, 40 00:01:59,700 --> 00:02:02,550 the cloud gives you extra options beyond what you 41 00:02:02,550 --> 00:02:04,330 get within the operating system. 42 00:02:04,330 --> 00:02:06,580 Let me show you three topology diagrams. 43 00:02:06,580 --> 00:02:10,830 Again, the attribution in the Microsoft Docs is in the lower, left corner. 44 00:02:10,830 --> 00:02:15,160 The idea is you could use Storage Replica within a single cluster where 45 00:02:15,160 --> 00:02:18,230 you need high availability for an entire cluster, 46 00:02:18,230 --> 00:02:22,960 particularly using another site, say as a disaster recovery region. 47 00:02:22,960 --> 00:02:26,920 So we're synchronizing the shared storage in New York in this example, 48 00:02:26,920 --> 00:02:31,250 and we're able to configure automatic failover to New Jersey because that 49 00:02:31,250 --> 00:02:35,290 shared storage subsystem is synchronized via Storage Replica. 50 00:02:35,290 --> 00:02:37,680 Another idea is cluster‑to‑cluster. 51 00:02:37,680 --> 00:02:41,250 Now this is where you've got two separate clusters, 52 00:02:41,250 --> 00:02:45,730 and maybe your Los Angeles cluster is your production one and Las 53 00:02:45,730 --> 00:02:48,670 Vegas is being used for test and development. 54 00:02:48,670 --> 00:02:49,550 You see what I mean? 55 00:02:49,550 --> 00:02:52,190 This does not support automatic failover, 56 00:02:52,190 --> 00:02:55,170 but you could do a manual failover if you wanted to. 57 00:02:55,170 --> 00:02:58,210 And lastly, independent of a failover cluster, 58 00:02:58,210 --> 00:03:01,890 you can always configure server‑to‑server Storage Replica, 59 00:03:01,890 --> 00:03:05,990 where you're replicating a volume from one machine to another. 60 00:03:05,990 --> 00:03:09,140 Notice that we're using the Server Message Block protocol. 61 00:03:09,140 --> 00:03:13,450 Now, the exam doesn't get into the networking and all of that and prerequisites. 62 00:03:13,450 --> 00:03:15,440 We're not going to go real deep on this. 63 00:03:15,440 --> 00:03:19,270 I'm going to do a demo of Storage Spaces and Storage Spaces Direct, 64 00:03:19,270 --> 00:03:21,980 but all I'm going to do with Storage Replica is give 65 00:03:21,980 --> 00:03:23,740 you what you need for the AZ‑800. 66 00:03:23,740 --> 00:03:27,270 And the main thing there is just understanding from a high 67 00:03:27,270 --> 00:03:29,500 view how you set up that replication. 68 00:03:29,500 --> 00:03:33,060 Now, in terms of tools to do this, you've always got PowerShell, 69 00:03:33,060 --> 00:03:34,590 that's what I'm going to show you, 70 00:03:34,590 --> 00:03:38,390 but you also can do Storage Replica in Windows Admin Center. 71 00:03:38,390 --> 00:03:40,780 I'm showing you some PowerShell here for two reasons. 72 00:03:40,780 --> 00:03:44,000 One, it's a primary way to configure Storage Replica. 73 00:03:44,000 --> 00:03:45,080 And number two, 74 00:03:45,080 --> 00:03:48,280 I want to remind you that you do need to know PowerShell to 75 00:03:48,280 --> 00:03:52,720 be successful on your AZ‑800 and AZ‑801 Windows Server 76 00:03:52,720 --> 00:03:54,870 Hybrid Administrator certification. 77 00:03:54,870 --> 00:03:57,960 And it's, I would say, an intermediate level of PowerShell. 78 00:03:57,960 --> 00:03:59,040 On the first line, 79 00:03:59,040 --> 00:04:02,920 I'm creating a variable called Servers that references my two nodes. 80 00:04:02,920 --> 00:04:06,030 This, again, is going to be outside of a failover cluster, 81 00:04:06,030 --> 00:04:10,070 just singleton server to singleton server volume replication. 82 00:04:10,070 --> 00:04:14,390 And then I'm using the PowerShell pipeline to do a ForEach loop, 83 00:04:14,390 --> 00:04:16,660 installing the appropriate Windows features. 84 00:04:16,660 --> 00:04:20,740 We'll need Storage‑Replica, FS‑FileServer, and we'll need to restart. 85 00:04:20,740 --> 00:04:22,780 Once we come back from the restart, 86 00:04:22,780 --> 00:04:25,440 we can test to make sure that these two servers, 87 00:04:25,440 --> 00:04:28,410 or clusters if you're doing cluster replica, 88 00:04:28,410 --> 00:04:31,170 support the volume replica feature. 89 00:04:31,170 --> 00:04:32,900 So we've got Test‑SRTopology, 90 00:04:32,900 --> 00:04:37,670 and you notice here that we've got the Source and DestinationVolumeName. 91 00:04:37,670 --> 00:04:40,900 In this code, I'm using v as the mount for that. 92 00:04:40,900 --> 00:04:43,350 But notice there's a Source and DestinationLogVolume, 93 00:04:43,350 --> 00:04:45,710 and that's, I'm denoting l. 94 00:04:45,710 --> 00:04:48,380 Note that you're going to have to have a separate 95 00:04:48,380 --> 00:04:51,680 volume to track transaction log entries. 96 00:04:51,680 --> 00:04:56,500 This is a transaction based, whether you're doing synchronous or asynchronous. 97 00:04:56,500 --> 00:05:00,370 The log volume should very much be solid state. 98 00:05:00,370 --> 00:05:03,700 This is directly from the Microsoft Docs because the 99 00:05:03,700 --> 00:05:05,970 replication for it to succeed, 100 00:05:05,970 --> 00:05:08,470 you need those entries shipped to the 101 00:05:08,470 --> 00:05:11,160 DestinationLogVolume as quickly as you can. 102 00:05:11,160 --> 00:05:13,500 So the log volume doesn't have to be huge. 103 00:05:13,500 --> 00:05:16,460 Eight gigs, I think, is the default log volume size. 104 00:05:16,460 --> 00:05:18,730 And remember, if you're using Storage Spaces, 105 00:05:18,730 --> 00:05:23,020 you can easily create tiered storage and create a right‑sized log 106 00:05:23,020 --> 00:05:25,810 volume for each source that you want to replicate. 107 00:05:25,810 --> 00:05:26,650 That's the test. 108 00:05:26,650 --> 00:05:27,970 And assuming that works, 109 00:05:27,970 --> 00:05:37,000 you then can use New‑SRPartnership to actually stand up the Storage Replica. Now let's do a demo and then wrap up.