Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2816269pxv; Mon, 12 Jul 2021 02:35:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLafIO97HXzNSyLBp31HXVOczRyTi2HaceNiLDdsVHKAlbExpYt7v7KLQnBN4okkv+XFK8 X-Received: by 2002:aa7:c043:: with SMTP id k3mr62983584edo.160.1626082550536; Mon, 12 Jul 2021 02:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626082550; cv=none; d=google.com; s=arc-20160816; b=D3FcyrfyAwvvuG23oSBzuL9KAR9c0l+fh6Jbx3DIiHvoR/Oa6FN9G5k2RhADXI4a8H uhzWbV7Stdnn4iuSS371oObiLIzsCpFcBI0/H4kUl4oR1Yctqg4AJyAlj0nc44QJP/A/ H2/639Zh8mL+LxcTvW1oMlumCdPOieo3Wy4JxORTF1Lugz5ze1vHU/GTmivNbLRPaE9s tpRfBLu3lCHngAtyj04dizNPVodJxfz82Djj6KVeeX7bch7WdCyxfKvyCEahYxdeN6fs 3P5DWG9EosATbjEl5stL5TUNbfrpKgi/Xe8NRAr3LWPexLGPUgD0KhU8a/ZEKjJPUZnV NGng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gdA+S+3YSWLYResZwMQhyDJvMFxlp9J0PZNAibvseEU=; b=pWRgpj397tQ/eCUN9sZG7vryiLwxKwloL0uEa36TZ1/IqlsvR8F4kya09gTCOIHwuq kckee1oNlVaOZtXJ9kSrhT+suYH3OgaMMAnJ7fYmTl/+xKh3vybZGhzZKgRqvfUH5EVM Phjvun7aMBUwHB2xLkrNFNcCGLsBdJC4QIlHV5dXIXRAwK+DbeiZWHnybcN2gy39mFHl ZzrdOi4bdqUFAkaz4zbYRWAmU/N4uAl4fl3sHsM3W0YoJXCI56tYD2kosCpESZYmi4qB TY5v28HlTz1qPII9Ix70PLN2GNrSUtfacBu0tkTChIlVXB9eey+gjrFd5QY03FSil4ph ZyMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="URWCQ9H/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ho11si4419659ejc.106.2021.07.12.02.35.27; Mon, 12 Jul 2021 02:35:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="URWCQ9H/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236753AbhGLJhN (ORCPT + 99 others); Mon, 12 Jul 2021 05:37:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:50715 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236653AbhGLJhD (ORCPT ); Mon, 12 Jul 2021 05:37:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626082452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gdA+S+3YSWLYResZwMQhyDJvMFxlp9J0PZNAibvseEU=; b=URWCQ9H/BAqBhxSJm8RriRADhUJFhMaa7Iza8QAd/L/giBSy3IhHv7VSD+tLuUuIv10Z1+ mwpL1yY82utTQmbdZ9S4Ypd5pKgYEvrGZZLDJXp3eNUYINhZTvxT4g8+q01PyiqmUh5wSP sXq5J169l7n9VvqT+/mL7X24jOy2ta4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-588-DsTtSTTPN3Oc37bTxBzuIg-1; Mon, 12 Jul 2021 05:34:08 -0400 X-MC-Unique: DsTtSTTPN3Oc37bTxBzuIg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A7F0E800D62; Mon, 12 Jul 2021 09:34:06 +0000 (UTC) Received: from localhost (ovpn-112-230.ams2.redhat.com [10.36.112.230]) by smtp.corp.redhat.com (Postfix) with ESMTP id 98C5B604CF; Mon, 12 Jul 2021 09:34:02 +0000 (UTC) Date: Mon, 12 Jul 2021 10:34:01 +0100 From: Stefan Hajnoczi To: Wenchao Hao Cc: "James E.J. Bottomley" , "Martin K. Petersen" , "Michael S. Tsirkin" , Jason Wang , Paolo Bonzini , linux-scsi@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Zhiqiang Liu , Wu Bo , linfeilong@huawei.com, yuzhanzhan@huawei.com Subject: Re: [bug report]scsi: drive letter drift problem Message-ID: References: <7ae2293e-71a9-f68e-0bfb-b4a70ecf493e@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fuPUrc/TQtUWERHW" Content-Disposition: inline In-Reply-To: <7ae2293e-71a9-f68e-0bfb-b4a70ecf493e@huawei.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --fuPUrc/TQtUWERHW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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]. >=20 > Mostly, the device letter are assigned as following after reboot: > [0:0:0:0] --> sda > [0:0:1:0] --> sdb >=20 > While in rare cases, the device letter shown as following: > [0:0:0:0] --> sdb > [0:0:1:0] --> sda >=20 > 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 --fuPUrc/TQtUWERHW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmDsDIkACgkQnKSrs4Gr c8hdnQf/Rs2fRaJYaSbQa32JKf0l4C/g6F+qFtbfnjBx97dzW6wb0+PPyavNMGmp tWbISz6bIz3StkRv8oOstrJA1px9caorIZJTvXXBf036EJFtnOuZq9HF1enjybNw RLFknEaavVlj6ay2ZkdxkIwCjGJtUcU/U6lXFGrWkwqScP6TOmhnV+l7nkcH74Kq lffTF6TC6rqGMQNVpPzK4PueRMSuBzWL4TAol61w9o6pwGYnxCObOnQIF4QGj6cE LKY89s8dbJG8SEN1LkUrqsd9NkV9Kd4lT67QEJd/qoWCBXFmL4mbF+ceJ5B0kL13 RM9O4ybPKVXqiWhprpNon4qvBfwo3w== =0+Ee -----END PGP SIGNATURE----- --fuPUrc/TQtUWERHW--