All of lore.kernel.org
 help / color / mirror / Atom feed
From: L A Walsh <lkml@tlinx.org>
To: "Dr. David Alan Gilbert" <dave@treblig.org>
Cc: Karel Zak <kzak@redhat.com>, util-linux@vger.kernel.org
Subject: Re:why would 4k size for phys sector size read in kernel, go away?
Date: Fri, 15 Mar 2019 07:05:56 -0700	[thread overview]
Message-ID: <5C8BB144.1060305@tlinx.org> (raw)
In-Reply-To: <20190312181141.l3hj2gf5l4dxiniy@gallifrey>

On 3/12/2019 11:11 AM, Dr. David Alan Gilbert wrote:
>
>
> megacli is a special for LSI RAID controllers isn't it?
> If so, then perhaps the RAID controller is hiding some info depending
> on how it's configured and using a special to get the info from the controller.
>
> How about trying one of the SCSI utils, like sginfo -a ?
>   
It didn't show anything about blocksize logical or physical.

The only thing I see Megacli doing s searching through
/sys/, it seems to find the name of the controller,

then opening (FD3)
"/dev/megaraid_sas_ioctl_node

then issuing a bunch of

ioctl(3, MCE_GET_RECORD_LEN or MEMGETINFO or MTRRIOC_SET_ENTRY, 0x7cb9e0)

calls after which it dumps all the info about the disks in the RAIDS.
Of note.. these are disks in external enclosures that are
connected via the LSI controller.

Also of note, I am certain that the physical size of the blocks
for the 4K blocks used to show 4096 bytes as I had written
scripts to pull this information.

I also am fairly sure I remember seeing the temperatures listed
somewhere, but I didn't write a supporting script to display
that info.

While megacli does seem to use an ioctl of the device,
(haven't looked at source of driver yet) that doesn't negate that
sysfs USED to display the correct blocksize.  My minor concern is that
if the kernel doesn't know the real size of the blocks, no way
disk utils will know and have concerns about something eventually
getting it off by 1 or such.  Depending on what disk it is, I might
not notice it until it was a large pain to reformat it correctly.

FWIW, I've been unable to find a source for megacli...






      reply	other threads:[~2019-03-15 14:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-11 20:57 does util-linux have a 'report sector size' util? L A Walsh
2019-03-11 21:21 ` Dr. David Alan Gilbert
2019-03-11 21:34   ` L A Walsh
2019-03-12  8:21     ` Karel Zak
2019-03-12 15:02       ` L A Walsh
2019-03-12 18:11         ` Dr. David Alan Gilbert
2019-03-15 14:05           ` L A Walsh [this message]

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=5C8BB144.1060305@tlinx.org \
    --to=lkml@tlinx.org \
    --cc=dave@treblig.org \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    /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 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.