Skip to content

Is mixing logical sector size in the same PV safe?Β #181

@FilipeMaia

Description

@FilipeMaia

It's unclear to me if it's safe to mix different sector sizes (512 and 4096) in the same PV.
I have a VG made up of multiple mdadm RAID6 arrays. All the arrays have sector size of 512. I was adding another array and realized it has a sector size of 4096 (I got the appropriate error message during the vgextend).
I'm using a the VG to create a thin volume where I have an xfs filesystem with 4096 as sector size:

         =                       sectsz=4096  attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=1, rmapbt=0
         =                       reflink=1    bigtime=1 inobtcount=1 nrext64=0
data     =                       bsize=4096   blocks=432181084160, imaxpct=1
         =                       sunit=256    swidth=8192 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
log      =internal log           bsize=4096   blocks=521728, version=2
         =                       sectsz=4096  sunit=1 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

Is it safe to enable allow_mixed_block_sizes and combine the array? What situations are safe and which ones are not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions