From mboxrd@z Thu Jan 1 00:00:00 1970 From: keith.busch@intel.com (Keith Busch) Date: Wed, 7 Nov 2018 09:24:58 -0700 Subject: Question regarding dual-port NVMe drives naming. In-Reply-To: <20181107155241.ynvixi56i44zeakz@yadro.com> References: <20181107155241.ynvixi56i44zeakz@yadro.com> Message-ID: <20181107162457.GA15835@localhost.localdomain> On Wed, Nov 07, 2018@06:52:41PM +0300, ???? ???????? wrote: > Hello, > recently I started to use dual-port NVMe drives and faced with behaviour different to single-port drives. > > Dual-port drives have [virtual] Expansion ROM at 3ff083000000 [disabled] [size=128K] while single-port drives does not have expansion ROMs. > In naming of dual-port drives there are new names in sysfs like nvme1c1n1. > Also all dual-port drives in sysfs are located in virtual directory like they don't have any parent bus. > > Could somebody explain this difference or give the direction where to dig? You are using a relatively recent kernel with CONFIG_NVME_MULTIPATH set. This option exposes nvme block devices under their nvme subsystem abstraction rather than under the controller so you see only one block handle per-namespace. The subsystem is presented as a virtual device. The individual block paths are hidden from the user, but the topology is visible in sysfs, like the nvme1c1n1 in your example.