Re: "Data alignment must not exceed device size."

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 10.4.2018 v 16:49 Richard W.M. Jones napsal(a):
On Tue, Apr 10, 2018 at 04:43:12PM +0200, Zdenek Kabelac wrote:
Dne 10.4.2018 v 16:00 Richard W.M. Jones napsal(a):
On Tue, Apr 10, 2018 at 09:47:30AM +0100, Richard W.M. Jones wrote:
Recently in Fedora something changed that stops us from creating small
LVs for testing.

An example failure with a 64 MB partitioned disk:

# parted -s -- /dev/sda mklabel msdos mkpart primary 128s -128s
Warning: The resulting partition is not properly aligned for best performance: 128s % 65535s != 0s
# lvm pvcreate --force /dev/sda1
   /dev/sda1: Data alignment must not exceed device size.
   Format-specific initialisation of physical volume /dev/sda1 failed.
   Failed to setup physical volume "/dev/sda1".

Interestingly the alignment properties of the virtio-scsi virtual disk
has changed.  On the working system:


Hi

Could you please retest first with official final release of 4.16 kernel.

Same thing with 4.16.0-300.fc28.x86_64:

<rescue> cat /sys/block/sda/queue/minimum_io_size
33553920


Forget to mention in my previous post - you should be able to override these
bad values reported from kernel with command line 'man pvcreate' options:
--dataalignment & --dataalignmentoffset


Regards

Zdenek

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux