All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Data alignment
@ 2010-03-19 18:13 Phillip Susi
  2010-03-19 18:36 ` Eugene Vilensky
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Phillip Susi @ 2010-03-19 18:13 UTC (permalink / raw)
  To: linux-lvm

I have been trying to get my logical volume to be aligned to a 512 KB
boundary on my SSD so it lines up with the flash erase block.  I thought
I could do this with pvcreate --dataalign 1024, but this caused the data
to be aligned to a 1024 sector boundary within the partition, which
itself starts on sector 63.  I then thought the --dataalignoffsest
switch would help, but specifying 63 there caused the data to be moved
to sector 1087.  I tried giving it -63, but was told that a negative
number is not allowed.  Why not?  How can I get the data to start on
sector 1024-63 of the partition so it ends up on pysical sector 1024 of
the disk?

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [linux-lvm] Data alignment
@ 2013-02-12 14:58 Phillip Susi
  2013-02-12 15:10 ` Mike Snitzer
  0 siblings, 1 reply; 14+ messages in thread
From: Phillip Susi @ 2013-02-12 14:58 UTC (permalink / raw)
  To: linux-lvm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have been getting warnings from mke2fs lately that my logical
volumes are not aligned properly.  I am using a raid5 array as a pv
and it has a 1.5 MB stripe width, so logical volumes should be aligned
to that, but it appears lvm is not doing this.

It looks like you can specify this alignment at pvcreate time, but I
don't think I did and it doesn't seem to have been picked up
automatically.  Is there a way to change this without rebuilding the vg?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRGliwAAoJEJrBOlT6nu75u38IANP/fcPpeXdzymKzDBmKFjJ/
hVSR0Ig8lcym3nbL9wCz/PIGRrta5j9M2lVrIoMP68iTcywqsyON7f+iPN3f20MO
v3Vjm0kRET4rw8inJE2g+6o5RlOAn+45vN6G6LtkncPFEo8MhxwHO2EMno3nql7Y
Ds5eFd9OjK8BkpUaMjzUJR61of5SL32HXTAm7mVMXSzV1IIzFvSMq8P5bzI6GGnx
mtoMqcND64+5AvU/FBnmB12k0MVNbnpLRvj1CZnhM8rrHu5cN921O1zK3M8rZ7sb
vk9GalquS+AuELBwLOiY2t6a5ebW2aWB4Yi2docdOjudeN1y7LrvgmNmhIbxE+k=
=C45A
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-02-12 15:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-19 18:13 [linux-lvm] Data alignment Phillip Susi
2010-03-19 18:36 ` Eugene Vilensky
2010-03-19 18:54   ` Phillip Susi
2010-03-19 19:54     ` Ray Morris
2010-03-19 21:20       ` Phillip Susi
2010-03-20  7:32     ` Luca Berra
2010-03-19 19:25 ` Mike Snitzer
2010-03-19 21:27   ` Phillip Susi
2010-03-19 22:21     ` Mike Snitzer
2010-03-19 23:11       ` Mike Snitzer
2010-03-25 12:54       ` [linux-lvm] Called while suspended Fredrik Skog
2010-03-20 23:02 ` [linux-lvm] Data alignment Stuart D. Gathman
2013-02-12 14:58 Phillip Susi
2013-02-12 15:10 ` Mike Snitzer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.