linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] label sector and non 512 byte sectors
@ 2012-12-26 14:59 Phillip Susi
  2013-01-03 18:02 ` Alasdair G Kergon
  0 siblings, 1 reply; 3+ messages in thread
From: Phillip Susi @ 2012-12-26 14:59 UTC (permalink / raw)
  To: LVM general discussion and development

The man page for pvcreate states that the label goes in the second
sector.  That means it SHOULD be at an offset of 4096 bytes when using
4096 byte sectors, but apparently it is still at an offset of 512 bytes.
 Bug?

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

* Re: [linux-lvm] label sector and non 512 byte sectors
  2012-12-26 14:59 [linux-lvm] label sector and non 512 byte sectors Phillip Susi
@ 2013-01-03 18:02 ` Alasdair G Kergon
  2013-01-03 19:13   ` Stuart D Gathman
  0 siblings, 1 reply; 3+ messages in thread
From: Alasdair G Kergon @ 2013-01-03 18:02 UTC (permalink / raw)
  To: LVM general discussion and development

On Wed, Dec 26, 2012 at 09:59:00AM -0500, Phillip Susi wrote:
> The man page for pvcreate states that the label goes in the second
> sector.  That means it SHOULD be at an offset of 4096 bytes when using
> 4096 byte sectors, but apparently it is still at an offset of 512 bytes.
>  Bug?
 
We define a sector at 512 bytes. Always.

Some documentation could be improved to make that clearer.

Alasdair

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

* Re: [linux-lvm] label sector and non 512 byte sectors
  2013-01-03 18:02 ` Alasdair G Kergon
@ 2013-01-03 19:13   ` Stuart D Gathman
  0 siblings, 0 replies; 3+ messages in thread
From: Stuart D Gathman @ 2013-01-03 19:13 UTC (permalink / raw)
  To: LVM general discussion and development

On Jan 3, Alasdair G Kergon transmitted in part:

> On Wed, Dec 26, 2012 at 09:59:00AM -0500, Phillip Susi wrote:
>> The man page for pvcreate states that the label goes in the second
>> sector.  That means it SHOULD be at an offset of 4096 bytes when using
>> 4096 byte sectors, but apparently it is still at an offset of 512 bytes.
>>  Bug?
>
> We define a sector at 512 bytes. Always.
>
> Some documentation could be improved to make that clearer.

And current storage devices always define a logical sector as 512 bytes,
and the firmware takes care of the R/M/W (with caching) needed for
partial or unaligned writes.

The physical sector size is important when *aligning* LVM segments, filesystem
blocks, RAID clusters, etc.

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

end of thread, other threads:[~2013-01-03 19:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-26 14:59 [linux-lvm] label sector and non 512 byte sectors Phillip Susi
2013-01-03 18:02 ` Alasdair G Kergon
2013-01-03 19:13   ` Stuart D Gathman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).