Change of sectorsize

donalddk

Member
Sep 4, 2019
5
0
21
43
Hi

I have an issue with the sectorsize of a CEPH RBD attached to a Windows VM.

I want to replicate from one Windows VM (on VMware) to an other Windows VM (on Proxmox) with the buildin storage-replication in windows. In order for that to work, the sectorsize must be the same on both Windows VMs.

Output from source VM (on VMware)

C:\Windows\system32>fsutil fsinfo refsinfo f:
REFS Volume Serial Number : 0x44c63f34c63f2618
REFS Version : 3.1
Number Sectors : 0x00000018fffa0000
Total Clusters : 0x0000000031fff400
Free Clusters : 0x0000000025fdfd43
Total Reserved : 0x0000000000333b7c
Bytes Per Sector : 512
Bytes Per Physical Sector : 4096
Bytes Per Cluster : 65536
Checksum Type: CHECKSUM_TYPE_NONE


Output from destination VM (on proxmox)

C:\Windows\system32>fsutil fsinfo refsinfo e:
REFS Volume Serial Number : 0xee72277772274425
REFS Version : 3.4
Number Sectors : 0x00000018fff80000
Total Clusters : 0x0000000031fff000
Free Clusters : 0x0000000031c29c37
Total Reserved : 0x0000000000333b77
Bytes Per Sector : 512
Bytes Per Physical Sector : 512
Bytes Per Cluster : 65536
Checksum Type: CHECKSUM_TYPE_NONE

How do i configure the proxmox VM to "Bytes Per Physical Sector" to 4096 instead of 512 ?

I have tried to add this to the config with no luck.

-device virtio-scsi-pci "logical_block_size=4096" physical_block_size=4096

Here is the VM config

agent: 1
bootdisk: scsi0
cores: 3
memory: 32768
name: VM
numa: 0
ostype: win10
scsi0: proxmox-rbd:vm-103-disk-0,size=60G
scsi1: proxmox-rbd:vm-103-disk-1,size=32G
scsi2: proxmox-rbd:vm-103-disk-2,size=54975380062208
scsihw: virtio-scsi-pci
sockets: 2
 
I have tried to add this to the config with no luck.

-device virtio-scsi-pci "logical_block_size=4096" physical_block_size=4096

Here is the VM config

agent: 1
bootdisk: scsi0
cores: 3
memory: 32768
name: VM
numa: 0
ostype: win10
scsi0: proxmox-rbd:vm-103-disk-0,size=60G
scsi1: proxmox-rbd:vm-103-disk-1,size=32G
scsi2: proxmox-rbd:vm-103-disk-2,size=54975380062208
scsihw: virtio-scsi-pci
sockets: 2


Works if you use virtio block for the respective disk and set global parameters (example assumes that it's the third disk):

Code:
agent: 1
bootdisk: scsi0
cores: 3
memory: 32768
name: VM
numa: 0
ostype: win10
scsi0: proxmox-rbd:vm-103-disk-0,size=60G
scsi1: proxmox-rbd:vm-103-disk-1,size=32G
virtio2: proxmox-rbd:vm-103-disk-2,size=54975380062208
args: -global virtio-blk-device.physical_block_size=4096 -global virtio-blk-device.logical_block_size=4096
scsihw: virtio-scsi-pci
sockets: 2

Since there is not too much experience with such a configuration issues cannot be excluded.
 
Thank you for your reply

when i set

args: -global virtio-blk-device.physical_block_size=4096 -global virtio-blk-device.logical_block_size=4096

i get this in windows

PS C:\Windows\system32> fsutil fsinfo refsinfo e:
REFS Volume Serial Number : 0x48565d03565cf2e4
REFS Version : 3.4
Number Sectors : 0x000000031fff4000
Total Clusters : 0x0000000031fff400
Free Clusters : 0x0000000031edd35d
Total Reserved : 0x0000000000080856
Bytes Per Sector : 4096
Bytes Per Physical Sector : 4096
Bytes Per Cluster : 65536
Checksum Type: CHECKSUM_TYPE_NONE


The other windows VM i am trying to replicate looks like this

PS C:\Windows\system32> fsutil fsinfo refsinfo e:
REFS Volume Serial Number : 0x287a00577a0023e2
REFS Version : 3.1
Number Sectors : 0x00000018fffa0000
Total Clusters : 0x0000000031fff400
Free Clusters : 0x000000001e9856c8
Total Reserved : 0x0000000000333b7c
Bytes Per Sector : 512
Bytes Per Physical Sector : 4096
Bytes Per Cluster : 65536
Checksum Type: CHECKSUM_TYPE_NONE

So "Bytes Per Sector" is still different - is there any way to manipulate that parameter?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!