todo
How to make block device NMVe assigned names persistent?
https://access.redhat.com/solutions/4763241
https://github.com/systemd/systemd/issues/31448
https://docs.netapp.com/us-en/ontap-sanhost/nvme_rhel_81.html#validate-nvmefc
SOLUTION VERIFIED - Updated June 14 2024 at 2:18 AM - English
Environment
Red Hat Enterprise Linux 8
Red Hat Enterprise Linux 7
NVMe storage (Non-Volatile Memory express)
Issue
How to write udev rule to create persistent name of NVMe devices?
udev rule for NVMe devices
Resolution
Get the ID_SERIAL_SHORT of nvme device.
Raw
$ udevadm info --query=all --path=/block/nvme1n1 | grep ID_SERIAL_SHORT
E: ID_SERIAL_SHORT=S4FVBS0M4652
Create udev rule file in directory /etc/udev/rules.d/ and may give some illustrative name like 99-nvmepersistent.rules
Add the below entry in rule file.
Raw
KERNEL"nvme[0-9]n[0-9]", SUBSYSTEM"block", ENV{DEVTYPE}"disk", ENV{ID_SERIAL_SHORT}"S4FVBS0M4652", SYMLINK+="NAME1"
Reload and trigger udev rules using below commands.
Raw
$ /sbin/udevadm control --reload-rules
$ /sbin/udevadm trigger --type=devices --action=change
udevadm info --query=all --name=/dev/nvme0n1
https://github.com/systemd/systemd/issues/1453
https://www.ibm.com/docs/en/linux-on-systems?topic=drivers-nvme
https://www.ibm.com/docs/en/linux-on-systems?topic=source-attributes-nvme
https://zhuanlan.zhihu.com/p/55299546
- kubevip 3个集群
- 中间件集群 kube-vip vip 是否变化? 决定申请Ip时使用静态IP 还是动态IP ?
- Node 内核参数问题
- dns 添加 server
- 新的k8s 集群部署
- nvme 磁盘
- kubevirt虚拟机文档
- 网络打通
- 跳板机
- D集群密码修改

浙公网安备 33010602011771号