大网数据广告活动
磁盘与文件系统

Use Enhanced Log in Storage Replica

· 52CE 我爱测

Learn how to use Enhanced Log in Storage Replica and about the performance improvements it delivers to your replication groups.

Storage Replica in Windows Server uses a general-purpose logging service to replicate I/O to the secondary volume in any replication group. 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.

Enhanced Log vs. Traditional Log

Traditional Log is based on the Common Log File System (CLFS).

Enhanced Log avoids file system abstractions and their performance costs by using a raw format for logging I/O that needs to be replicated. Enhanced Log introduces an architecture that allows multiple I/O data records to be concurrently written to the secondary volume in a replication group, improving overall workload performance.

Important: There's no migration path from Storage Replica Traditional Log to Enhanced Log or vice versa. You must declare the log format when you create the Storage Replica partnership.

Enhanced Log deployment steps

To deploy a Storage Replica partnership that uses Enhanced Log:

  1. Create standard new CSV_ReFS formatted volumes for Storage Replica data/data replication on each site's storage pool:

    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
    
  2. Create a new virtual disk for Storage Replica logs and initialize the partition for each site:

    New-VirtualDisk -FriendlyName south-log -StoragePoolFriendlyName "Pool for Site South" -Size 16gb
    
    New-VirtualDisk -FriendlyName north-log -StoragePoolFriendlyName "Pool for Site North" -Size 16gb
    
  3. Identify the disk number of the partitions you initialized in Step 2 so you can assign a drive letter:

    Get-Disk
    

    On site 1:

    New-Partition -DiskNumber <Disk Number> -DriveLetter 'e' -UseMaximumSize
    

    On site 2:

    New-Partition -DiskNumber <Disk Number> -DriveLetter 'f' -UseMaximumSize
    
  4. Create the new Storage Replica partnership by using the -LogType Raw parameter to access Enhanced Log functionality:

    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] The -EnableCompression parameter is needed only if you intend to use Server Message Block (SMB) compression for Storage Replica traffic.

You can use -LogType FileBased to deploy the Storage Replica partnership by using the Traditional Log format.

Related content

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 5/13/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。