linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@redhat.com>
To: Les Mikesell <lesmikesell@gmail.com>
Cc: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Advanced Format disks mixed with regular disks?
Date: Wed, 16 Mar 2011 20:18:01 -0400	[thread overview]
Message-ID: <20110317001800.GA4207@redhat.com> (raw)
In-Reply-To: <20110317000229.GA4099@redhat.com>

On Wed, Mar 16 2011 at  8:02pm -0400,
Mike Snitzer <snitzer@redhat.com> wrote:

> On Wed, Mar 16 2011 at  7:11pm -0400,
> Les Mikesell <lesmikesell@gmail.com> wrote:
> 
> > On 3/16/2011 5:55 PM, Mike Snitzer wrote:
> > >
> > >>On 3/14/2011 1:17 PM, Mike Snitzer wrote:
> > >>>Both LVM2 and Device Mapper have been updated to accommodate stacking
> > >>>such a mix of drives.
> > >>>
> > >>>See this for a bit more detail:
> > >>>http://people.redhat.com/msnitzer/docs/io-limits.txt
> > >>>
> > >>>Particularly, the "Stacking I/O Limits" section.
> > >>>
> > >>>The concern raised for partial (4k) writes to the 512b drive was
> > >>>discussed a bit more here: http://lkml.org/lkml/2010/2/22/295
> > >>
> > >>Unfortunately this does not help with the WD EARS model drives ( are
> > >>there any other 4kb sector drives on the market now? ), since they lie
> > >>and report that they have 512 byte sectors.
> > >
> > >I'm not following what you're saying.  The kernel's blk_stack_limits()
> > >infrastructure accounts for "desktop" class 4K devices too (4K physical,
> > >512b logical) -- as does DM and lvm2.
> > >
> > >If given:
> > >
> > >"desktop" class drive:
> > >physical_block_size=4096
> > >logical_block_size=512
> > >minimum_io_size=4096
> > >optimal_io_size=0
> > 
> > How does the kernel know about the physical_block_size when the
> > device reports itself as 512?  And they handle 512 byte writes, just
> > very slowly.
> 
> The drive exports the information as part of its response to the
> IDENTIFY DEVICE (for ATA) or READ CAPACITY (for SCSI) command -- it
> splits out the physical and logical block sizes along with other
> attributes.  The kernel's SCSI (and libata) layer issues these commands
> to the drive.

I just got Phillips' mail that the drive lies and reports 512/512.
(and I read your mail too quickly).

So yeah, the WD EARS drives are scary.  Best for WD to defend or explain
them.

Mike

  reply	other threads:[~2011-03-17  0:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-14 16:47 [linux-lvm] Advanced Format disks mixed with regular disks? Ron Johnson
2011-03-14 17:17 ` Mike Snitzer
2011-03-14 17:32   ` Les Mikesell
2011-03-14 18:02     ` Mike Snitzer
2011-03-14 18:09       ` Ron Johnson
2011-03-14 19:13   ` Ron Johnson
2011-03-14 20:00     ` Mike Snitzer
2011-03-15  8:02       ` Karel Zak
2011-03-15 14:24         ` Stuart D. Gathman
2011-03-15 17:36           ` Stuart D. Gathman
2011-03-15  0:15     ` John Drescher
2011-03-16 20:45   ` Phillip Susi
2011-03-16 22:55     ` Mike Snitzer
2011-03-16 23:11       ` Les Mikesell
2011-03-17  0:02         ` Mike Snitzer
2011-03-17  0:18           ` Mike Snitzer [this message]
2011-03-17  0:12       ` Phillip Susi
2011-03-17  0:39         ` Martin K. Petersen
2011-03-17 14:21           ` hansbkk
2011-03-17 23:47           ` Ron Johnson
2011-03-22 10:23             ` Karel Zak
2011-03-22 16:51               ` Les Mikesell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110317001800.GA4207@redhat.com \
    --to=snitzer@redhat.com \
    --cc=lesmikesell@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).