Skip to content

fix: add azure nvme udev rules - #1753

Merged
frezbo merged 1 commit into
siderolabs:mainfrom
GitBluub:feat/azure-nvme-udev-rules
Nov 18, 2026
Merged

frezbo merged 1 commit into
siderolabs:mainfrom
GitBluub:feat/azure-nvme-udev-rules

Conversation

@GitBluub

@GitBluub GitBluub commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1752

Adds the remote NVMe part of the azure-vm-utils udev rules to systemd-udevd/files/66-azure.rules, so /dev/disk/azure/os and /dev/disk/azure/data/by-lun/ exist on MSFT NVMe Accelerator v1.0 disks (v6 and v7 flavors), and raises their queue/io_timeout to 240s like upstream. Basically copied the missing rules and more info of these rules is available in the issue.

The only difference with upstream is the LUN rule repeated for the 64 LUNs instead of computing nsid - 2 with /bin/sh, since it is not available on Talos. The cloud-init SCSI rules are unchanged, they now share the same ACTION/SUBSYSTEM filter as in azure-vm-utils.
Repeated 64 times because this is the max data disk attachment possible on azure VMs, if you have a better id to replace the /bin/sh to make a -2 its welcomed :D

Tested on Talos v1.14.5:

  • Standard_D2as_v7 (NVMe): same rules applied through a UdevRulesConfig document, links created.
  • Standard_D2as_v5 (SCSI): udevadm test gives the same links and properties with the current and the new 66-azure.rules for the OS disk, its partitions and a data disk.

Tested both PVCs with azuredisk-csi 1.36.3

@github-project-automation github-project-automation Bot moved this to To Do in Planning Nov 17, 2026
@siderolabs-project-bot siderolabs-project-bot Bot moved this from To Do to In Review in Planning Nov 17, 2026
Comment thread systemd-udevd/files/66-azure.rules Resolved
On Azure VM sizes exposing remote disks over NVMe (MSFT NVMe Accelerator
v1.0, v6 and v7 flavors), the Azure Disk CSI driver finds data disks
through /dev/disk/azure/data/by-lun/<lun>, created by the azure-vm-utils
udev rules: every volume mount failed with 'failed to find disk on lun'.

Add the remote NVMe part of these rules, with the rule repeated for the
64 LUNs instead of computing nsid - 2 with /bin/sh, not available on
Talos, and raise the I/O timeout of these disks to 240s like upstream.

Fixes #1752

Signed-off-by: GitBluub <louis.auzuret@gmail.com>
Signed-off-by: Noel Georgi <git@frezbo.dev>
@frezbo
frezbo force-pushed the feat/azure-nvme-udev-rules branch from 642bbc5 to 68f3256 Compare November 18, 2026 14:45
Comment thread systemd-udevd/files/66-azure.rules Resolved
Comment thread systemd-udevd/files/66-azure.rules Resolved
Comment thread systemd-udevd/files/66-azure.rules Resolved
@github-project-automation github-project-automation Bot moved this from In Review to Approved in Planning Nov 18, 2026
@frezbo
frezbo merged commit 68f3256 into siderolabs:main Nov 18, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in Planning Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Proposed
Status: Done

Development

Successfully merging this pull request may close these issues.

udevd: azure rules missing nvme rules

2 participants