Windows Server 中的存储复制功能使用通用日志服务将 I/O 操作复制到任何复制组中的辅助卷。 Beginning in Windows Server 2025, users can opt in to a higher performance logging service called Enhanced Log. To differentiate this redesigned logging service, we refer to the original logging service as Traditional Log.
增强型日志与传统日志
传统日志基于通用日志文件系统 (CLFS)。
增强型日志利用原始格式记录需要复制的 I/O,从而避开了文件系统抽象及其性能成本。 增强型日志引入了一种体系结构,允许将多个 I/O 数据记录并发写入复制组中的辅助卷,从而提高总体工作负荷性能。
Important
没有从存储副本传统日志到增强型日志的迁移路径,反之亦然。 创建存储副本合作关系时,必须声明日志格式。
增强型日志部署步骤
若要部署使用增强日志的存储副本伙伴关系,请执行以下步骤:
为每个站点的存储池上的存储副本数据/数据复制创建标准的新 CSV_ReFS 格式卷:
New-Volume -FriendlyName south-data -StoragePoolFriendlyName "Pool for Site South" -Size 1tb -FileSystem CSVFS_ReFS
New-Volume -FriendlyName north-data -StoragePoolFriendlyName "Pool for Site North" -Size 1tb -FileSystem CSVFS_ReFS
为存储副本日志创建新的虚拟磁盘,并初始化每个站点的分区:
New-VirtualDisk -FriendlyName south-log -StoragePoolFriendlyName "Pool for Site South" -Size 16gb
New-VirtualDisk -FriendlyName north-log -StoragePoolFriendlyName "Pool for Site North" -Size 16gb
确定在步骤 2 中初始化的分区的磁盘编号,以便分配驱动器字母:
Get-Disk
在站点 1:
New-Partition -DiskNumber <Disk Number> -DriveLetter 'e' -UseMaximumSize
在站点 2:
New-Partition -DiskNumber <Disk Number> -DriveLetter 'f' -UseMaximumSize
使用
-LogType Raw
参数创建新的存储副本伙伴关系,以使用增强型日志功能:New-SRPartnership -SourceComputerName <Source Computer Hostname> -SourceRGName <Source Replication Group Name> -SourceVolumeName 'C:\ClusterStorage\south-data\' -SourceLogVolumeName e: -DestinationComputerName <Destination Computer Name> -DestinationRGName <Destination Replication Group Name> -DestinationVolumeName 'C:\ClusterStorage\north-data\' -DestinationLogVolumeName f: -LogType Raw -EnableCompression
Note
-EnableCompression
仅当打算对存储副本流量使用服务器消息块(SMB)压缩时,才需要此参数。
可以使用 -LogType FileBased
以传统日志格式部署存储副本伙伴关系。