All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@us.ibm.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: geometry of dm devices......
Date: Tue, 08 Aug 2006 15:08:40 -0700	[thread overview]
Message-ID: <44D90B68.3010401@us.ibm.com> (raw)
In-Reply-To: <1121230D3E3B6B4E9162069832D90A641BC0D2@XYUS-EX22.xyus.xyratex.com>


[-- Attachment #1.1: Type: text/plain, Size: 715 bytes --]

Peter Koutoupis wrote:

>> I understand the HDIO_GETGEO is an unsupported feature to dm 
>> devices....but under normal practices how would a normal end-user be 
>> able to obtain such geometry from a raw dm device?  I have read of 

Wow, I'm late to the game.  If your kernel/software are new enough, you
can set a dm device's geometry via the DM_DEV_SET_GEOMETRY_CMD ioctl.
iirc, the userland equivalent is:

# dmsetup setgeometry /dev/foo cyl head spt start

...after which HDIO_GETGEO should return nonzero values.

You'll need kernel 2.6.16+ and I think the requisite version of dmsetup
is 1.02.  And to my (very limited) knowledge of multipath, geometry is
not set up automatically.

--D


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2006-08-08 22:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-08 20:32 geometry of dm devices Peter Koutoupis
2006-08-08 22:08 ` Darrick J. Wong [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-10 11:38 Peter Koutoupis
2006-08-10 15:20 ` Darrick J. Wong
2006-08-02 16:26 Peter Koutoupis
2006-08-08 20:05 ` Benjamin Marzinski

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=44D90B68.3010401@us.ibm.com \
    --to=djwong@us.ibm.com \
    --cc=dm-devel@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 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.