All of lore.kernel.org
 help / color / mirror / Atom feed
* [bug report]scsi: drive letter drift problem
@ 2021-07-12  4:47 Wenchao Hao
  2021-07-12  9:34   ` Stefan Hajnoczi
  0 siblings, 1 reply; 4+ messages in thread
From: Wenchao Hao @ 2021-07-12  4:47 UTC (permalink / raw)
  To: James E.J. Bottomley, Martin K. Petersen, Michael S. Tsirkin,
	Jason Wang, Paolo Bonzini, Stefan Hajnoczi, linux-scsi,
	virtualization, linux-kernel
  Cc: Zhiqiang Liu, Wu Bo, linfeilong, yuzhanzhan, haowenchao

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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report]scsi: drive letter drift problem
  2021-07-12  4:47 [bug report]scsi: drive letter drift problem Wenchao Hao
@ 2021-07-12  9:34   ` Stefan Hajnoczi
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2021-07-12  9:34 UTC (permalink / raw)
  To: Wenchao Hao
  Cc: James E.J. Bottomley, Martin K. Petersen, Michael S. Tsirkin,
	Jason Wang, Paolo Bonzini, linux-scsi, virtualization,
	linux-kernel, Zhiqiang Liu, Wu Bo, linfeilong, yuzhanzhan

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report]scsi: drive letter drift problem
@ 2021-07-12  9:34   ` Stefan Hajnoczi
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2021-07-12  9:34 UTC (permalink / raw)
  To: Wenchao Hao
  Cc: Wu Bo, Martin K. Petersen, linux-scsi, Michael S. Tsirkin,
	James E.J. Bottomley, linux-kernel, virtualization, linfeilong,
	Zhiqiang Liu, yuzhanzhan, Paolo Bonzini


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

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

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report]scsi: drive letter drift problem
  2021-07-12  9:34   ` Stefan Hajnoczi
  (?)
@ 2021-07-13  1:27   ` Wenchao Hao
  -1 siblings, 0 replies; 4+ messages in thread
From: Wenchao Hao @ 2021-07-13  1:27 UTC (permalink / raw)
  To: Stefan Hajnoczi
  Cc: James E.J. Bottomley, Martin K. Petersen, Michael S. Tsirkin,
	Jason Wang, Paolo Bonzini, linux-scsi, virtualization,
	linux-kernel, Zhiqiang Liu, Wu Bo, linfeilong, yuzhanzhan

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-13  1:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12  4:47 [bug report]scsi: drive letter drift problem Wenchao Hao
2021-07-12  9:34 ` Stefan Hajnoczi
2021-07-12  9:34   ` Stefan Hajnoczi
2021-07-13  1:27   ` Wenchao Hao

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.