Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* How to setup nvme-loop with multipath
@ 2020-05-03 20:14 Dongli Zhang
  2020-05-06  6:30 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Dongli Zhang @ 2020-05-03 20:14 UTC (permalink / raw)
  To: linux-nvme

Hi nvme developers,

Would you please help confirm if it is feasible to support multi-path (indeed
shared namespace as id->cmic is always set for nvme-over-fabric) for nvme-loop
so that we would be able to have much more complex topology configuration for
nvme multi-path.

Below is my sample json file. While both disk1.img and disk2.img are belong to
'testnqn', disk3.img is belong to 'testnqn2'.

Is there any way to have disk2.img as shared namespace used by both 'testnqn'
and 'testnqn2'?

Thank you very much!


{
  "hosts": [
    {
      "nqn": "hostnqn"
    }
  ], 
  "ports": [
    {
      "addr": {
        "adrfam": "", 
        "traddr": "", 
        "treq": "not specified", 
        "trsvcid": "", 
        "trtype": "loop"
      }, 
      "portid": 1, 
      "referrals": [], 
      "subsystems": [
        "testnqn",
        "testnqn2"
      ]
    }
  ], 
  "subsystems": [
    {
      "allowed_hosts": [
        "hostnqn"
      ], 
      "attr": {
        "allow_any_host": "0"
      }, 
      "namespaces": [
        {
          "device": {
            "nguid": "ef90689c-6c46-d44c-89c1-4067801309a8", 
            "path": "/home/test/disk1.img"
          }, 
          "enable": 1, 
          "nsid": 1
        },
	{
          "device": {
            "nguid": "ef90689c-6c46-d44c-89c1-4067801309a2", 
            "path": "/home/test/disk2.img"
          }, 
          "enable": 1, 
          "nsid": 2
        }
      ], 
      "nqn": "testnqn"
    },
    {
      "allowed_hosts": [
        "hostnqn"
      ], 
      "attr": {
        "allow_any_host": "0"
      }, 
      "namespaces": [
	{
          "device": {
            "nguid": "ef90689c-6c46-d44c-89c1-4067801309a3", 
            "path": "/home/test/disk3.img"
          }, 
          "enable": 1, 
          "nsid": 1
        }
      ], 
      "nqn": "testnqn2"
    }
  ]
}

Dongli Zhang

_______________________________________________
linux-nvme mailing list
linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

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

end of thread, other threads:[~2020-05-06 18:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-03 20:14 How to setup nvme-loop with multipath Dongli Zhang
2020-05-06  6:30 ` Christoph Hellwig
2020-05-06 18:14   ` Dongli Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox