Linux Device Mapper development
 help / color / mirror / Atom feed
From: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
To: dm-devel@redhat.com
Subject: Where to read the WWID of a multipath device
Date: Wed, 20 Mar 2019 11:28:05 +0100	[thread overview]
Message-ID: <20190320102805.GA30538@canonical> (raw)

Hi,

The question is as indicated on title, what would be the best way to
get the WWID of a multipath device, something which would work on any
systems or storages.

My idea was to read /sys/block/dm-X/name but someone indicated to me
that may not be correct in some situation, like it seems that
/lib/udev/scsi_id would not be correct either.

To give a bit of context it's for an OpenStack library in Python.

Thanks,
s.

             reply	other threads:[~2019-03-20 10:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-20 10:28 Sahid Orentino Ferdjaoui [this message]
2019-03-21  7:57 ` Where to read the WWID of a multipath device Russell Weber
2019-03-21  9:06   ` Sahid Orentino Ferdjaoui

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=20190320102805.GA30538@canonical \
    --to=sahid.ferdjaoui@canonical.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox