Hmm, indeed. Looks like with commit 35fd01f05ca2932a0174c8f7c35cb7e8625c58d5 the order was changed and my older comment in the other bug is no longer valid (sorry about that):
Yes, I think this may be the only thing for multi-path then: when we are matching a device against a set of parameters in a uevent, we currently have a requirement for ID_WWN, ID_SERIAL and ID_SERIAL_SHORT to match. The latter two seem to contain controller-related information while in the multi-path case accessing a namespace is possible through any controller.
I will ask for a full `udevadm info -q all -n /dev/nvme0n1` output tomorrow so that we can see which values are present there for a namespace in the multipath case.
Hmm, indeed. Looks like with commit 35fd01f05ca2932 a0174c8f7c35cb7 e8625c58d5 the order was changed and my older comment in the other bug is no longer valid (sorry about that):
- byid_keys = ['ID_SERIAL', 'ID_WWN_ WITH_EXTENSION' ] WITH_EXTENSION' , 'ID_WWN',
+ byid_keys = ['ID_WWN_
+ 'ID_SERIAL', 'ID_SERIAL_SHORT']
cat /etc/udev/ rules.d/ nvme0n1- renamed. rules ="add|change" , ENV{DEVTYPE} =="disk" , ENV{ID_ WWN}==" nvme.8086- 6e766d656330- 51454d55204e564 d65204374726c- 00000001" , ENV{ID_ SERIAL} =="QEMU NVMe Ctrl_nvmec0", ENV{ID_ SERIAL_ SHORT}= ="nvmec0" , SYMLINK+ ="disk/ by-dname/ nvme0n1- renamed"
# Written by curtin
SUBSYSTEM=="block", ACTION=
udevadm info -q all -n /dev/nvme0n1
https:/ /paste. ubuntu. com/p/x6x2vRJXJ 2/
E: ID_SERIAL=QEMU NVMe Ctrl_nvmec1 SHORT=nvmec1 nvme.8086- 6e766d656331- 51454d55204e564 d65204374726c- 00000001
E: ID_SERIAL_
E: ID_WWN=
> Is this related at all to the request?
Yes, I think this may be the only thing for multi-path then: when we are matching a device against a set of parameters in a uevent, we currently have a requirement for ID_WWN, ID_SERIAL and ID_SERIAL_SHORT to match. The latter two seem to contain controller-related information while in the multi-path case accessing a namespace is possible through any controller.
I will ask for a full `udevadm info -q all -n /dev/nvme0n1` output tomorrow so that we can see which values are present there for a namespace in the multipath case.