nguid for nvme over fabrics
Hi,
I am trying nvme over fabrics, and found this: nguid is set to 0s by default for all devices.
So, nguid can be same (0s in this case) for multiple devices. Is this valid ?
Also, same nguid for multiple devices could be set, by the above scenario.
No errors/warnings from either the nvme initiator/target.
From spec, I see this:
Namespace Globally Unique Identifier (NGUID): This field contains a 128-bit value that is
globally unique and assigned to the namespace when the namespace is created. This field
remains fixed throughout the life of the namespace and is preserved across namespace and
controller operations (e.g., controller reset, namespace format, etc.).
Signature · 2 lines
Regards Narasimhan V
Sagi Grimberg
maintainerQuoted 11 lines
Hi,
I am trying nvme over fabrics, and found this: nguid is set to 0s by default for all devices.
So, nguid can be same (0s in this case) for multiple devices. Is this valid ?
Also, same nguid for multiple devices could be set, by the above scenario. No errors/warnings from either the nvme initiator/target.
Quoted 8 lines
From spec, I see this:
Namespace Globally Unique Identifier (NGUID): This field contains a 128-bit value that is
globally? unique and assigned to? the? namespace? when? the? namespace is? created.? This? field
remains fixed throughout the life of the namespace and is preserved across namespace and
controller operations (e.g., controller reset,? namespace format, etc.).
We generate a UUID (which can be overwritten by the user)
Quoted 21 lines · Sagi Grimberg
Quoted 11 lines
Hi,
I am trying nvme over fabrics, and found this: nguid is set to 0s by default for all devices.
So, nguid can be same (0s in this case) for multiple devices. Is this valid ?
Also, same nguid for multiple devices could be set, by the above scenario.
No errors/warnings from either the nvme initiator/target.Quoted 9 lines
From spec, I see this:
Namespace Globally Unique Identifier (NGUID): This field contains a 128-bit value that is
globally? unique and assigned to? the? namespace? when? the? namespace is? created.? This? field
remains fixed throughout the life of the namespace and is preserved across namespace and
controller operations (e.g., controller reset,? namespace format, etc.).
Quoted 1 line
We generate a UUID (which can be overwritten by the user)
Shouldn't it be unique ?
I have instances where for NVMef, multiple devices can have same nguids. Which component should be responsible to generate nguid in NVMef ?
Signature · 2 lines
Regards Narasimhan V
Quoted 3 lines · Narasimhan V
Shouldn't it be unique ?
I have instances where for NVMef, multiple devices can have same nguids. Which component should be responsible to generate nguid in NVMef ?
You must only usea nguid if you have a ieee id, and then it is your responsibility to hand out ids based on that.
Which means that you generally should not set a nguid unless you are building an appliance and really know what you are doing.
Quoted 8 lines · Christoph Hellwig
Quoted 4 lines · Narasimhan V
Shouldn't it be unique ?
I have instances where for NVMef, multiple devices can have same nguids.
Which component should be responsible to generate nguid in NVMef ?You must only usea nguid if you have a ieee id, and then it is your responsibility to hand out ids based on that.
Thnaks Chris,
I get it now.
Quoted 4 lines
Which means that you generally should not set a nguid unless you are building an appliance and really know what you are doing.
For my confirmation, if we are setting duplicate nguids, it is user's responsibility, and system does not give any warning / error ?
Quoted 4 lines
_______________________________________________
Linux-nvme mailing list
Linux-nvme at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
Signature · 2 lines
Regards Narasimhan V