mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wenchao Hao <haowenchao@huawei.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Jason Wang" <jasowang@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>, <linux-scsi@vger.kernel.org>,
	<virtualization@lists.linux-foundation.org>,
	<linux-kernel@vger.kernel.org>,
	Zhiqiang Liu <liuzhiqiang26@huawei.com>,
	"Wu Bo" <wubo40@huawei.com>, <linfeilong@huawei.com>,
	<yuzhanzhan@huawei.com>
Subject: Re: [bug report]scsi: drive letter drift problem
Date: Tue, 13 Jul 2021 09:27:12 +0800	[thread overview]
Message-ID: <8d752421-310f-46d6-fbae-bd72a05d4021@huawei.com> (raw)
In-Reply-To: <YOwMiYRmGYskOn7A@stefanha-x1.localdomain>

On 2021/7/12 17:34, Stefan Hajnoczi wrote:
> On Mon, Jul 12, 2021 at 12:47:05PM +0800, Wenchao Hao wrote:
>> We deploy two SCSI disk in one SCSI host(virtio-scsi bus) for one machine,
>> whose ids are [0:0:0:0] and [0:0:1:0].
>>
>> Mostly, the device letter are assigned as following after reboot:
>> [0:0:0:0] --> sda
>> [0:0:1:0] --> sdb
>>
>> While in rare cases, the device letter shown as following:
>> [0:0:0:0] --> sdb
>> [0:0:1:0] --> sda
>>
>> Could we guarantee "sda" is assigned to [0:0:0:0] and "sdb" is assigned to
>> [0:0:1:0] or not?
>> If we can, then how?
> Is there a stable ID that you can use in /dev/disk/by-*?
>
> Stefan

Thanks, we found /dev/disk/by-path may be helpful


      reply	other threads:[~2021-07-13  1:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-12  4:47 Wenchao Hao
2021-07-12  9:34 ` Stefan Hajnoczi
2021-07-13  1:27   ` Wenchao Hao [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=8d752421-310f-46d6-fbae-bd72a05d4021@huawei.com \
    --to=haowenchao@huawei.com \
    --cc=jasowang@redhat.com \
    --cc=jejb@linux.ibm.com \
    --cc=linfeilong@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=liuzhiqiang26@huawei.com \
    --cc=martin.petersen@oracle.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=stefanha@redhat.com \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=wubo40@huawei.com \
    --cc=yuzhanzhan@huawei.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

all inboxes | Powered by JetHome®